Salome HOME
test integration for 0019050: EDF 521 GEOM SMESH : Improve selection process in the...
[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 MakeFaceHW (CORBA::Double theH,
51                                     CORBA::Double theW,
52                                     CORBA::Short  theOrientation);
53
54   GEOM::GEOM_Object_ptr MakeFaceObjHW (GEOM::GEOM_Object_ptr theObj,
55                                        CORBA::Double theH,
56                                        CORBA::Double theW);
57
58   GEOM::GEOM_Object_ptr MakeDiskPntVecR (GEOM::GEOM_Object_ptr theCenter,
59                                          GEOM::GEOM_Object_ptr theVector,
60                                          double theR);
61
62   GEOM::GEOM_Object_ptr MakeDiskThreePnt (GEOM::GEOM_Object_ptr thePnt1,
63                                           GEOM::GEOM_Object_ptr thePnt2,
64                                           GEOM::GEOM_Object_ptr thePnt3);
65
66   GEOM::GEOM_Object_ptr MakeDiskR (CORBA::Double theR,
67                                    CORBA::Short  theOrientation);
68
69   GEOM::GEOM_Object_ptr MakeCylinderRH (CORBA::Double theR,
70                                         CORBA::Double theH);
71
72   GEOM::GEOM_Object_ptr MakeCylinderPntVecRH (GEOM::GEOM_Object_ptr thePnt,
73                                               GEOM::GEOM_Object_ptr theVec,
74                                               CORBA::Double theR,
75                                               CORBA::Double theH);
76
77   GEOM::GEOM_Object_ptr MakeConeR1R2H (CORBA::Double theR1,
78                                        CORBA::Double theR2,
79                                        CORBA::Double theH);
80
81   GEOM::GEOM_Object_ptr MakeConePntVecR1R2H (GEOM::GEOM_Object_ptr thePnt,
82                                              GEOM::GEOM_Object_ptr theVec,
83                                              CORBA::Double theR1,
84                                              CORBA::Double theR2,
85                                              CORBA::Double theH);
86
87   GEOM::GEOM_Object_ptr MakeSphereR (CORBA::Double theR);
88
89   GEOM::GEOM_Object_ptr MakeSpherePntR (GEOM::GEOM_Object_ptr thePnt,
90                                         CORBA::Double theR);
91
92   GEOM::GEOM_Object_ptr MakeTorusRR (CORBA::Double theRMajor,
93                                      CORBA::Double theRMinor);
94
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);
99
100   GEOM::GEOM_Object_ptr MakePrismVecH (GEOM::GEOM_Object_ptr theBase,
101                                        GEOM::GEOM_Object_ptr theVec,
102                                        CORBA::Double theH);
103
104   GEOM::GEOM_Object_ptr MakePrismVecH2Ways (GEOM::GEOM_Object_ptr theBase,
105                                             GEOM::GEOM_Object_ptr theVec,
106                                             CORBA::Double theH);
107
108   GEOM::GEOM_Object_ptr MakePrismTwoPnt (GEOM::GEOM_Object_ptr theBase,
109                                          GEOM::GEOM_Object_ptr thePoint1,
110                                          GEOM::GEOM_Object_ptr thePoint2);
111
112   GEOM::GEOM_Object_ptr MakePrismTwoPnt2Ways (GEOM::GEOM_Object_ptr theBase,
113                                               GEOM::GEOM_Object_ptr thePoint1,
114                                               GEOM::GEOM_Object_ptr thePoint2);
115
116   GEOM::GEOM_Object_ptr MakePrismDXDYDZ (GEOM::GEOM_Object_ptr theBase,
117                                          CORBA::Double         theDX,
118                                          CORBA::Double         theDY,
119                                          CORBA::Double         theDZ);
120   GEOM::GEOM_Object_ptr MakePrismDXDYDZ2Ways (GEOM::GEOM_Object_ptr theBase,
121                                               CORBA::Double         theDX,
122                                               CORBA::Double         theDY,
123                                               CORBA::Double         theDZ);
124
125   GEOM::GEOM_Object_ptr MakePipe (GEOM::GEOM_Object_ptr theBase,
126                                   GEOM::GEOM_Object_ptr thePath);
127
128   GEOM::GEOM_Object_ptr MakeRevolutionAxisAngle (GEOM::GEOM_Object_ptr theBase,
129                                                  GEOM::GEOM_Object_ptr theAxis,
130                                                  CORBA::Double theAngle);
131
132   GEOM::GEOM_Object_ptr MakeRevolutionAxisAngle2Ways (GEOM::GEOM_Object_ptr theBase,
133                                                       GEOM::GEOM_Object_ptr theAxis,
134                                                       CORBA::Double theAngle);
135
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);
137
138   GEOM::GEOM_Object_ptr MakeThruSections(const GEOM::ListOfGO& theSeqSections,
139                                          CORBA::Boolean theModeSolid,
140                                          CORBA::Double thePreci,
141                                          CORBA::Boolean theRuled);
142   
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);
148
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);
155
156   GEOM::GEOM_Object_ptr MakePipeShellsWithoutPath(const GEOM::ListOfGO& theBases,
157                                                   const GEOM::ListOfGO& theLocations);
158
159   ::GEOMImpl_I3DPrimOperations* GetOperations()
160   { return (::GEOMImpl_I3DPrimOperations*)GetImpl(); }
161 };
162
163 #endif