1 // Copyright (C) 2007-2014 CEA/DEN, EDF R&D, OPEN CASCADE
3 // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
6 // This library is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU Lesser General Public
8 // License as published by the Free Software Foundation; either
9 // version 2.1 of the License, or (at your option) any later version.
11 // This library is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 // Lesser General Public License for more details.
16 // You should have received a copy of the GNU Lesser General Public
17 // License along with this library; if not, write to the Free Software
18 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
23 #ifndef _GEOM_I3DPrimOperations_i_HeaderFile
24 #define _GEOM_I3DPrimOperations_i_HeaderFile
26 #include "GEOMImpl_Gen.hxx"
28 #include <SALOMEconfig.h>
30 #include CORBA_SERVER_HEADER(GEOM_Gen)
31 #include "GEOM_IOperations_i.hh"
32 #include "GEOM_Object_i.hh"
34 #include "GEOMImpl_I3DPrimOperations.hxx"
36 class GEOM_I_EXPORT GEOM_I3DPrimOperations_i :
37 public virtual POA_GEOM::GEOM_I3DPrimOperations,
38 public virtual GEOM_IOperations_i
41 GEOM_I3DPrimOperations_i (PortableServer::POA_ptr thePOA, GEOM::GEOM_Gen_ptr theEngine,
42 ::GEOMImpl_I3DPrimOperations* theImpl);
43 ~GEOM_I3DPrimOperations_i();
45 GEOM::GEOM_Object_ptr MakeBoxDXDYDZ (CORBA::Double theDX,
49 GEOM::GEOM_Object_ptr MakeBoxTwoPnt (GEOM::GEOM_Object_ptr thePnt1,
50 GEOM::GEOM_Object_ptr thePnt2);
52 GEOM::GEOM_Object_ptr MakeFaceHW (CORBA::Double theH,
54 CORBA::Short theOrientation);
56 GEOM::GEOM_Object_ptr MakeFaceObjHW (GEOM::GEOM_Object_ptr theObj,
60 GEOM::GEOM_Object_ptr MakeDiskPntVecR (GEOM::GEOM_Object_ptr theCenter,
61 GEOM::GEOM_Object_ptr theVector,
64 GEOM::GEOM_Object_ptr MakeDiskThreePnt (GEOM::GEOM_Object_ptr thePnt1,
65 GEOM::GEOM_Object_ptr thePnt2,
66 GEOM::GEOM_Object_ptr thePnt3);
68 GEOM::GEOM_Object_ptr MakeDiskR (CORBA::Double theR,
69 CORBA::Short theOrientation);
71 GEOM::GEOM_Object_ptr MakeCylinderRH (CORBA::Double theR,
74 GEOM::GEOM_Object_ptr MakeCylinderPntVecRH (GEOM::GEOM_Object_ptr thePnt,
75 GEOM::GEOM_Object_ptr theVec,
79 GEOM::GEOM_Object_ptr MakeConeR1R2H (CORBA::Double theR1,
83 GEOM::GEOM_Object_ptr MakeConePntVecR1R2H (GEOM::GEOM_Object_ptr thePnt,
84 GEOM::GEOM_Object_ptr theVec,
89 GEOM::GEOM_Object_ptr MakeSphereR (CORBA::Double theR);
91 GEOM::GEOM_Object_ptr MakeSpherePntR (GEOM::GEOM_Object_ptr thePnt,
94 GEOM::GEOM_Object_ptr MakeTorusRR (CORBA::Double theRMajor,
95 CORBA::Double theRMinor);
97 GEOM::GEOM_Object_ptr MakeTorusPntVecRR (GEOM::GEOM_Object_ptr theCenter,
98 GEOM::GEOM_Object_ptr theVector,
99 CORBA::Double theRMajor,
100 CORBA::Double theRMinor);
102 GEOM::GEOM_Object_ptr MakePrismVecH (GEOM::GEOM_Object_ptr theBase,
103 GEOM::GEOM_Object_ptr theVec,
106 GEOM::GEOM_Object_ptr MakePrismVecH2Ways (GEOM::GEOM_Object_ptr theBase,
107 GEOM::GEOM_Object_ptr theVec,
110 GEOM::GEOM_Object_ptr MakePrismVecHWithScaling (GEOM::GEOM_Object_ptr theBase,
111 GEOM::GEOM_Object_ptr theVec,
113 CORBA::Double theScaleFactor);
115 GEOM::GEOM_Object_ptr MakePrismTwoPnt (GEOM::GEOM_Object_ptr theBase,
116 GEOM::GEOM_Object_ptr thePoint1,
117 GEOM::GEOM_Object_ptr thePoint2);
119 GEOM::GEOM_Object_ptr MakePrismTwoPnt2Ways (GEOM::GEOM_Object_ptr theBase,
120 GEOM::GEOM_Object_ptr thePoint1,
121 GEOM::GEOM_Object_ptr thePoint2);
123 GEOM::GEOM_Object_ptr MakePrismTwoPntWithScaling (GEOM::GEOM_Object_ptr theBase,
124 GEOM::GEOM_Object_ptr thePoint1,
125 GEOM::GEOM_Object_ptr thePoint2,
126 CORBA::Double theScaleFactor);
128 GEOM::GEOM_Object_ptr MakePrismDXDYDZ (GEOM::GEOM_Object_ptr theBase,
131 CORBA::Double theDZ);
132 GEOM::GEOM_Object_ptr MakePrismDXDYDZ2Ways (GEOM::GEOM_Object_ptr theBase,
135 CORBA::Double theDZ);
136 GEOM::GEOM_Object_ptr MakePrismDXDYDZWithScaling (GEOM::GEOM_Object_ptr theBase,
140 CORBA::Double theScaleFactor);
142 GEOM::GEOM_Object_ptr MakeDraftPrism (GEOM::GEOM_Object_ptr theInitShape,
143 GEOM::GEOM_Object_ptr theBase,
144 CORBA::Double theHeight,
145 CORBA::Double theAngle,
146 CORBA::Boolean theFuse);
148 GEOM::GEOM_Object_ptr MakePipe (GEOM::GEOM_Object_ptr theBase,
149 GEOM::GEOM_Object_ptr thePath);
151 GEOM::GEOM_Object_ptr MakeRevolutionAxisAngle (GEOM::GEOM_Object_ptr theBase,
152 GEOM::GEOM_Object_ptr theAxis,
153 CORBA::Double theAngle);
155 GEOM::GEOM_Object_ptr MakeRevolutionAxisAngle2Ways (GEOM::GEOM_Object_ptr theBase,
156 GEOM::GEOM_Object_ptr theAxis,
157 CORBA::Double theAngle);
159 GEOM::GEOM_Object_ptr MakeFilling(GEOM::GEOM_Object_ptr theShape,
160 CORBA::Long theMinDeg, CORBA::Long theMaxDeg,
161 CORBA::Double theTol2D, CORBA::Double theTol3D,
162 CORBA::Long theNbIter,
163 GEOM::filling_oper_method theMethod,
164 CORBA::Boolean theApprox);
166 GEOM::GEOM_Object_ptr MakeThruSections(const GEOM::ListOfGO& theSeqSections,
167 CORBA::Boolean theModeSolid,
168 CORBA::Double thePreci,
169 CORBA::Boolean theRuled);
171 GEOM::GEOM_Object_ptr MakePipeWithDifferentSections(const GEOM::ListOfGO& theBases,
172 const GEOM::ListOfGO& theLocations,
173 GEOM::GEOM_Object_ptr thePath,
174 CORBA::Boolean theWithContact,
175 CORBA::Boolean theWithCorrections);
177 GEOM::GEOM_Object_ptr MakePipeWithShellSections(const GEOM::ListOfGO& theBases,
178 const GEOM::ListOfGO& theSubBases,
179 const GEOM::ListOfGO& theLocations,
180 GEOM::GEOM_Object_ptr thePath,
181 CORBA::Boolean theWithContact,
182 CORBA::Boolean theWithCorrections);
184 GEOM::GEOM_Object_ptr MakePipeShellsWithoutPath(const GEOM::ListOfGO& theBases,
185 const GEOM::ListOfGO& theLocations);
187 GEOM::GEOM_Object_ptr MakePipeBiNormalAlongVector (GEOM::GEOM_Object_ptr theBase,
188 GEOM::GEOM_Object_ptr thePath,
189 GEOM::GEOM_Object_ptr theVec);
191 GEOM::GEOM_Object_ptr MakeThickening (GEOM::GEOM_Object_ptr theObject,
192 CORBA::Double theOffset,
193 CORBA::Boolean isCopy);
195 GEOM::GEOM_Object_ptr RestorePath (GEOM::GEOM_Object_ptr theShape,
196 GEOM::GEOM_Object_ptr theBase1,
197 GEOM::GEOM_Object_ptr theBase2);
198 GEOM::GEOM_Object_ptr RestorePathEdges (GEOM::GEOM_Object_ptr theShape,
199 const GEOM::ListOfGO& theBase1,
200 const GEOM::ListOfGO& theBase2);
202 ::GEOMImpl_I3DPrimOperations* GetOperations()
203 { return (::GEOMImpl_I3DPrimOperations*)GetImpl(); }