Salome HOME
Changes for bug NPAL15938.
[modules/geom.git] / src / GEOM_I / GEOM_I3DPrimOperations_i.hh
1 // Copyright (C) 2005  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
2 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
3 // 
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.
8 // 
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.
13 //
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
17 //
18 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
19 //
20
21 #ifndef _GEOM_I3DPrimOperations_i_HeaderFile
22 #define _GEOM_I3DPrimOperations_i_HeaderFile
23
24 #include "GEOMImpl_Gen.hxx"
25
26 #include <SALOMEconfig.h>
27
28 #include CORBA_SERVER_HEADER(GEOM_Gen)
29 #include "GEOM_IOperations_i.hh"
30 #include "GEOM_Object_i.hh"
31
32 #include "GEOMImpl_I3DPrimOperations.hxx"
33
34 class GEOM_I_EXPORT GEOM_I3DPrimOperations_i :
35     public virtual POA_GEOM::GEOM_I3DPrimOperations,
36     public virtual GEOM_IOperations_i
37 {
38  public:
39   GEOM_I3DPrimOperations_i (PortableServer::POA_ptr thePOA, GEOM::GEOM_Gen_ptr theEngine,
40                             ::GEOMImpl_I3DPrimOperations* theImpl);
41   ~GEOM_I3DPrimOperations_i();
42
43   GEOM::GEOM_Object_ptr MakeBoxDXDYDZ (CORBA::Double theDX,
44                                        CORBA::Double theDY,
45                                        CORBA::Double theDZ);
46
47   GEOM::GEOM_Object_ptr MakeBoxTwoPnt (GEOM::GEOM_Object_ptr thePnt1,
48                                        GEOM::GEOM_Object_ptr thePnt2);
49
50   GEOM::GEOM_Object_ptr MakeCylinderRH (CORBA::Double theR,
51                                         CORBA::Double theH);
52
53   GEOM::GEOM_Object_ptr MakeCylinderPntVecRH (GEOM::GEOM_Object_ptr thePnt,
54                                               GEOM::GEOM_Object_ptr theVec,
55                                               CORBA::Double theR,
56                                               CORBA::Double theH);
57
58   GEOM::GEOM_Object_ptr MakeConeR1R2H (CORBA::Double theR1,
59                                        CORBA::Double theR2,
60                                        CORBA::Double theH);
61
62   GEOM::GEOM_Object_ptr MakeConePntVecR1R2H (GEOM::GEOM_Object_ptr thePnt,
63                                              GEOM::GEOM_Object_ptr theVec,
64                                              CORBA::Double theR1,
65                                              CORBA::Double theR2,
66                                              CORBA::Double theH);
67
68   GEOM::GEOM_Object_ptr MakeSphereR (CORBA::Double theR);
69
70   GEOM::GEOM_Object_ptr MakeSpherePntR (GEOM::GEOM_Object_ptr thePnt,
71                                         CORBA::Double theR);
72
73   GEOM::GEOM_Object_ptr MakeTorusRR (CORBA::Double theRMajor,
74                                      CORBA::Double theRMinor);
75
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);
80
81   GEOM::GEOM_Object_ptr MakePrismVecH (GEOM::GEOM_Object_ptr theBase,
82                                        GEOM::GEOM_Object_ptr theVec,
83                                        CORBA::Double theH);
84
85   GEOM::GEOM_Object_ptr MakePrismVecH2Ways (GEOM::GEOM_Object_ptr theBase,
86                                             GEOM::GEOM_Object_ptr theVec,
87                                             CORBA::Double theH);
88
89   GEOM::GEOM_Object_ptr MakePrismTwoPnt (GEOM::GEOM_Object_ptr theBase,
90                                          GEOM::GEOM_Object_ptr thePoint1,
91                                          GEOM::GEOM_Object_ptr thePoint2);
92
93   GEOM::GEOM_Object_ptr MakePrismTwoPnt2Ways (GEOM::GEOM_Object_ptr theBase,
94                                               GEOM::GEOM_Object_ptr thePoint1,
95                                               GEOM::GEOM_Object_ptr thePoint2);
96
97   GEOM::GEOM_Object_ptr MakePipe (GEOM::GEOM_Object_ptr theBase,
98                                   GEOM::GEOM_Object_ptr thePath);
99
100   GEOM::GEOM_Object_ptr MakeRevolutionAxisAngle (GEOM::GEOM_Object_ptr theBase,
101                                                  GEOM::GEOM_Object_ptr theAxis,
102                                                  CORBA::Double theAngle);
103
104   GEOM::GEOM_Object_ptr MakeRevolutionAxisAngle2Ways (GEOM::GEOM_Object_ptr theBase,
105                                                       GEOM::GEOM_Object_ptr theAxis,
106                                                       CORBA::Double theAngle);
107
108   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);
109
110   GEOM::GEOM_Object_ptr MakeThruSections(const GEOM::ListOfGO& theSeqSections,
111                                          CORBA::Boolean theModeSolid,
112                                          CORBA::Double thePreci,
113                                          CORBA::Boolean theRuled);
114   
115   GEOM::GEOM_Object_ptr MakePipeWithDifferentSections(const GEOM::ListOfGO& theBases,
116                                                       const GEOM::ListOfGO& theLocations,
117                                                       GEOM::GEOM_Object_ptr thePath,
118                                                       CORBA::Boolean theWithContact,
119                                                       CORBA::Boolean theWithCorrections);
120
121   GEOM::GEOM_Object_ptr MakePipeWithShellSections(const GEOM::ListOfGO& theBases,
122                                                   const GEOM::ListOfGO& theSubBases,
123                                                   const GEOM::ListOfGO& theLocations,
124                                                   GEOM::GEOM_Object_ptr thePath,
125                                                   CORBA::Boolean theWithContact,
126                                                   CORBA::Boolean theWithCorrections);
127
128   GEOM::GEOM_Object_ptr MakePipeShellsWithoutPath(const GEOM::ListOfGO& theBases,
129                                                   const GEOM::ListOfGO& theLocations);
130
131   ::GEOMImpl_I3DPrimOperations* GetOperations()
132   { return (::GEOMImpl_I3DPrimOperations*)GetImpl(); }
133 };
134
135 #endif