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 MakeCylinderRH (CORBA::Double theR,
53 GEOM::GEOM_Object_ptr MakeCylinderPntVecRH (GEOM::GEOM_Object_ptr thePnt,
54 GEOM::GEOM_Object_ptr theVec,
58 GEOM::GEOM_Object_ptr MakeConeR1R2H (CORBA::Double theR1,
62 GEOM::GEOM_Object_ptr MakeConePntVecR1R2H (GEOM::GEOM_Object_ptr thePnt,
63 GEOM::GEOM_Object_ptr theVec,
68 GEOM::GEOM_Object_ptr MakeSphereR (CORBA::Double theR);
70 GEOM::GEOM_Object_ptr MakeSpherePntR (GEOM::GEOM_Object_ptr thePnt,
73 GEOM::GEOM_Object_ptr MakeTorusRR (CORBA::Double theRMajor,
74 CORBA::Double theRMinor);
76 GEOM::GEOM_Object_ptr MakeTorusPntVecRR (GEOM::GEOM_Object_ptr theCenter,
77 GEOM::GEOM_Object_ptr theVector,
78 CORBA::Double theRMajor,
79 CORBA::Double theRMinor);
81 GEOM::GEOM_Object_ptr MakePrismVecH (GEOM::GEOM_Object_ptr theBase,
82 GEOM::GEOM_Object_ptr theVec,
85 GEOM::GEOM_Object_ptr MakePrismTwoPnt (GEOM::GEOM_Object_ptr theBase,
86 GEOM::GEOM_Object_ptr thePoint1,
87 GEOM::GEOM_Object_ptr thePoint2);
89 GEOM::GEOM_Object_ptr MakePipe (GEOM::GEOM_Object_ptr theBase,
90 GEOM::GEOM_Object_ptr thePath);
92 GEOM::GEOM_Object_ptr MakeRevolutionAxisAngle (GEOM::GEOM_Object_ptr theBase,
93 GEOM::GEOM_Object_ptr theAxis,
94 CORBA::Double theAngle);
96 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);
98 GEOM::GEOM_Object_ptr MakeThruSections(const GEOM::ListOfGO& theSeqSections,
99 CORBA::Boolean theModeSolid,
100 CORBA::Double thePreci,
101 CORBA::Boolean theRuled);
103 GEOM::GEOM_Object_ptr MakePipeWithDifferentSections(const GEOM::ListOfGO& theBases,
104 const GEOM::ListOfGO& theLocations,
105 GEOM::GEOM_Object_ptr thePath,
106 CORBA::Boolean theWithContact,
107 CORBA::Boolean theWithCorrections);
109 GEOM::GEOM_Object_ptr MakePipeWithShellSections(const GEOM::ListOfGO& theBases,
110 const GEOM::ListOfGO& theSubBases,
111 const GEOM::ListOfGO& theLocations,
112 GEOM::GEOM_Object_ptr thePath,
113 CORBA::Boolean theWithContact,
114 CORBA::Boolean theWithCorrections);
116 ::GEOMImpl_I3DPrimOperations* GetOperations()
117 { return (::GEOMImpl_I3DPrimOperations*)GetImpl(); }