1 // Copyright (C) 2005 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
2 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
4 // This library is free software; you can redistribute it and/or
5 // modify it under the terms of the GNU Lesser General Public
6 // License as published by the Free Software Foundation; either
7 // version 2.1 of the License.
9 // This library is distributed in the hope that it will be useful
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 // Lesser General Public License for more details.
14 // You should have received a copy of the GNU Lesser General Public
15 // License along with this library; if not, write to the Free Software
16 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 #ifndef _GEOM_I3DPrimOperations_i_HeaderFile
22 #define _GEOM_I3DPrimOperations_i_HeaderFile
24 #include "GEOMImpl_Gen.hxx"
26 #include <SALOMEconfig.h>
28 #include CORBA_SERVER_HEADER(GEOM_Gen)
29 #include "GEOM_IOperations_i.hh"
30 #include "GEOM_Object_i.hh"
32 #include "GEOMImpl_I3DPrimOperations.hxx"
34 class GEOM_I_EXPORT GEOM_I3DPrimOperations_i :
35 public virtual POA_GEOM::GEOM_I3DPrimOperations,
36 public virtual GEOM_IOperations_i
39 GEOM_I3DPrimOperations_i (PortableServer::POA_ptr thePOA, GEOM::GEOM_Gen_ptr theEngine,
40 ::GEOMImpl_I3DPrimOperations* theImpl);
41 ~GEOM_I3DPrimOperations_i();
43 GEOM::GEOM_Object_ptr MakeBoxDXDYDZ (CORBA::Double theDX,
47 GEOM::GEOM_Object_ptr MakeBoxTwoPnt (GEOM::GEOM_Object_ptr thePnt1,
48 GEOM::GEOM_Object_ptr thePnt2);
50 GEOM::GEOM_Object_ptr MakeFaceHW (CORBA::Double theH,
52 CORBA::Short theOrientation);
54 GEOM::GEOM_Object_ptr MakeFaceObjHW (GEOM::GEOM_Object_ptr theObj,
58 GEOM::GEOM_Object_ptr MakeDiskPntVecR (GEOM::GEOM_Object_ptr theCenter,
59 GEOM::GEOM_Object_ptr theVector,
62 GEOM::GEOM_Object_ptr MakeDiskThreePnt (GEOM::GEOM_Object_ptr thePnt1,
63 GEOM::GEOM_Object_ptr thePnt2,
64 GEOM::GEOM_Object_ptr thePnt3);
66 GEOM::GEOM_Object_ptr MakeDiskR (CORBA::Double theR,
67 CORBA::Short theOrientation);
69 GEOM::GEOM_Object_ptr MakeCylinderRH (CORBA::Double theR,
72 GEOM::GEOM_Object_ptr MakeCylinderPntVecRH (GEOM::GEOM_Object_ptr thePnt,
73 GEOM::GEOM_Object_ptr theVec,
77 GEOM::GEOM_Object_ptr MakeConeR1R2H (CORBA::Double theR1,
81 GEOM::GEOM_Object_ptr MakeConePntVecR1R2H (GEOM::GEOM_Object_ptr thePnt,
82 GEOM::GEOM_Object_ptr theVec,
87 GEOM::GEOM_Object_ptr MakeSphereR (CORBA::Double theR);
89 GEOM::GEOM_Object_ptr MakeSpherePntR (GEOM::GEOM_Object_ptr thePnt,
92 GEOM::GEOM_Object_ptr MakeTorusRR (CORBA::Double theRMajor,
93 CORBA::Double theRMinor);
95 GEOM::GEOM_Object_ptr MakeTorusPntVecRR (GEOM::GEOM_Object_ptr theCenter,
96 GEOM::GEOM_Object_ptr theVector,
97 CORBA::Double theRMajor,
98 CORBA::Double theRMinor);
100 GEOM::GEOM_Object_ptr MakePrismVecH (GEOM::GEOM_Object_ptr theBase,
101 GEOM::GEOM_Object_ptr theVec,
104 GEOM::GEOM_Object_ptr MakePrismVecH2Ways (GEOM::GEOM_Object_ptr theBase,
105 GEOM::GEOM_Object_ptr theVec,
108 GEOM::GEOM_Object_ptr MakePrismTwoPnt (GEOM::GEOM_Object_ptr theBase,
109 GEOM::GEOM_Object_ptr thePoint1,
110 GEOM::GEOM_Object_ptr thePoint2);
112 GEOM::GEOM_Object_ptr MakePrismTwoPnt2Ways (GEOM::GEOM_Object_ptr theBase,
113 GEOM::GEOM_Object_ptr thePoint1,
114 GEOM::GEOM_Object_ptr thePoint2);
116 GEOM::GEOM_Object_ptr MakePrismDXDYDZ (GEOM::GEOM_Object_ptr theBase,
119 CORBA::Double theDZ);
120 GEOM::GEOM_Object_ptr MakePrismDXDYDZ2Ways (GEOM::GEOM_Object_ptr theBase,
123 CORBA::Double theDZ);
125 GEOM::GEOM_Object_ptr MakePipe (GEOM::GEOM_Object_ptr theBase,
126 GEOM::GEOM_Object_ptr thePath);
128 GEOM::GEOM_Object_ptr MakeRevolutionAxisAngle (GEOM::GEOM_Object_ptr theBase,
129 GEOM::GEOM_Object_ptr theAxis,
130 CORBA::Double theAngle);
132 GEOM::GEOM_Object_ptr MakeRevolutionAxisAngle2Ways (GEOM::GEOM_Object_ptr theBase,
133 GEOM::GEOM_Object_ptr theAxis,
134 CORBA::Double theAngle);
136 GEOM::GEOM_Object_ptr MakeFilling(GEOM::GEOM_Object_ptr theShape, CORBA::Long theMinDeg, CORBA::Long theMaxDeg, CORBA::Double theTol2D, CORBA::Double theTol3D, CORBA::Long theNbIter, CORBA::Boolean theApprox);
138 GEOM::GEOM_Object_ptr MakeThruSections(const GEOM::ListOfGO& theSeqSections,
139 CORBA::Boolean theModeSolid,
140 CORBA::Double thePreci,
141 CORBA::Boolean theRuled);
143 GEOM::GEOM_Object_ptr MakePipeWithDifferentSections(const GEOM::ListOfGO& theBases,
144 const GEOM::ListOfGO& theLocations,
145 GEOM::GEOM_Object_ptr thePath,
146 CORBA::Boolean theWithContact,
147 CORBA::Boolean theWithCorrections);
149 GEOM::GEOM_Object_ptr MakePipeWithShellSections(const GEOM::ListOfGO& theBases,
150 const GEOM::ListOfGO& theSubBases,
151 const GEOM::ListOfGO& theLocations,
152 GEOM::GEOM_Object_ptr thePath,
153 CORBA::Boolean theWithContact,
154 CORBA::Boolean theWithCorrections);
156 GEOM::GEOM_Object_ptr MakePipeShellsWithoutPath(const GEOM::ListOfGO& theBases,
157 const GEOM::ListOfGO& theLocations);
159 ::GEOMImpl_I3DPrimOperations* GetOperations()
160 { return (::GEOMImpl_I3DPrimOperations*)GetImpl(); }