]> SALOME platform Git repositories - modules/geom.git/blob - src/GEOM_I/GEOM_I3DPrimOperations_i.hh
Salome HOME
Start potring to the VTK OpenGL2 backend.
[modules/geom.git] / src / GEOM_I / GEOM_I3DPrimOperations_i.hh
1 // Copyright (C) 2007-2016  CEA/DEN, EDF R&D, OPEN CASCADE
2 //
3 // Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
5 //
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.
10 //
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.
15 //
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
19 //
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 //
22
23 #ifndef _GEOM_I3DPrimOperations_i_HeaderFile
24 #define _GEOM_I3DPrimOperations_i_HeaderFile
25
26 #include "GEOMImpl_Gen.hxx"
27
28 #include <SALOMEconfig.h>
29
30 #include CORBA_SERVER_HEADER(GEOM_Gen)
31 #include "GEOM_IOperations_i.hh"
32 #include "GEOM_Object_i.hh"
33
34 #include "GEOMImpl_I3DPrimOperations.hxx"
35
36 class GEOM_I_EXPORT GEOM_I3DPrimOperations_i :
37     public virtual POA_GEOM::GEOM_I3DPrimOperations,
38     public virtual GEOM_IOperations_i
39 {
40  public:
41   GEOM_I3DPrimOperations_i (PortableServer::POA_ptr thePOA, GEOM::GEOM_Gen_ptr theEngine,
42                             ::GEOMImpl_I3DPrimOperations* theImpl);
43   ~GEOM_I3DPrimOperations_i();
44
45   GEOM::GEOM_Object_ptr MakeBoxDXDYDZ (CORBA::Double theDX,
46                                        CORBA::Double theDY,
47                                        CORBA::Double theDZ);
48
49   GEOM::GEOM_Object_ptr MakeBoxTwoPnt (GEOM::GEOM_Object_ptr thePnt1,
50                                        GEOM::GEOM_Object_ptr thePnt2);
51                                     
52   GEOM::GEOM_Object_ptr MakeFaceHW (CORBA::Double theH,
53                                     CORBA::Double theW,
54                                     CORBA::Short  theOrientation);
55
56   GEOM::GEOM_Object_ptr MakeFaceObjHW (GEOM::GEOM_Object_ptr theObj,
57                                        CORBA::Double theH,
58                                        CORBA::Double theW);
59
60   GEOM::GEOM_Object_ptr MakeDiskPntVecR (GEOM::GEOM_Object_ptr theCenter,
61                                          GEOM::GEOM_Object_ptr theVector,
62                                          double theR);
63
64   GEOM::GEOM_Object_ptr MakeDiskThreePnt (GEOM::GEOM_Object_ptr thePnt1,
65                                           GEOM::GEOM_Object_ptr thePnt2,
66                                           GEOM::GEOM_Object_ptr thePnt3);
67
68   GEOM::GEOM_Object_ptr MakeDiskR (CORBA::Double theR,
69                                    CORBA::Short  theOrientation);
70
71   GEOM::GEOM_Object_ptr MakeCylinderRH (CORBA::Double theR,
72                                         CORBA::Double theH);
73
74   GEOM::GEOM_Object_ptr MakeCylinderPntVecRH (GEOM::GEOM_Object_ptr thePnt,
75                                               GEOM::GEOM_Object_ptr theVec,
76                                               CORBA::Double theR,
77                                               CORBA::Double theH);
78                                               
79   GEOM::GEOM_Object_ptr MakeCylinderRHA (CORBA::Double theR,
80                                          CORBA::Double theH,
81                                          CORBA::Double theA);
82
83   GEOM::GEOM_Object_ptr MakeCylinderPntVecRHA (GEOM::GEOM_Object_ptr thePnt,
84                                                GEOM::GEOM_Object_ptr theVec,
85                                                CORBA::Double theR,
86                                                CORBA::Double theH,
87                                                CORBA::Double theA);                                           
88
89   GEOM::GEOM_Object_ptr MakeConeR1R2H (CORBA::Double theR1,
90                                        CORBA::Double theR2,
91                                        CORBA::Double theH);
92
93   GEOM::GEOM_Object_ptr MakeConePntVecR1R2H (GEOM::GEOM_Object_ptr thePnt,
94                                              GEOM::GEOM_Object_ptr theVec,
95                                              CORBA::Double theR1,
96                                              CORBA::Double theR2,
97                                              CORBA::Double theH);
98
99   GEOM::GEOM_Object_ptr MakeSphereR (CORBA::Double theR);
100
101   GEOM::GEOM_Object_ptr MakeSpherePntR (GEOM::GEOM_Object_ptr thePnt,
102                                         CORBA::Double theR);
103
104   GEOM::GEOM_Object_ptr MakeTorusRR (CORBA::Double theRMajor,
105                                      CORBA::Double theRMinor);
106
107   GEOM::GEOM_Object_ptr MakeTorusPntVecRR (GEOM::GEOM_Object_ptr theCenter,
108                                            GEOM::GEOM_Object_ptr theVector,
109                                            CORBA::Double theRMajor,
110                                            CORBA::Double theRMinor);
111
112   GEOM::GEOM_Object_ptr MakePrismVecH (GEOM::GEOM_Object_ptr theBase,
113                                        GEOM::GEOM_Object_ptr theVec,
114                                        CORBA::Double theH);
115
116   GEOM::GEOM_Object_ptr MakePrismVecH2Ways (GEOM::GEOM_Object_ptr theBase,
117                                             GEOM::GEOM_Object_ptr theVec,
118                                             CORBA::Double theH);
119
120   GEOM::GEOM_Object_ptr MakePrismVecHWithScaling (GEOM::GEOM_Object_ptr theBase,
121                                                   GEOM::GEOM_Object_ptr theVec,
122                                                   CORBA::Double theH,
123                                                   CORBA::Double theScaleFactor);
124
125   GEOM::GEOM_Object_ptr MakePrismTwoPnt (GEOM::GEOM_Object_ptr theBase,
126                                          GEOM::GEOM_Object_ptr thePoint1,
127                                          GEOM::GEOM_Object_ptr thePoint2);
128
129   GEOM::GEOM_Object_ptr MakePrismTwoPnt2Ways (GEOM::GEOM_Object_ptr theBase,
130                                               GEOM::GEOM_Object_ptr thePoint1,
131                                               GEOM::GEOM_Object_ptr thePoint2);
132
133   GEOM::GEOM_Object_ptr MakePrismTwoPntWithScaling (GEOM::GEOM_Object_ptr theBase,
134                                                     GEOM::GEOM_Object_ptr thePoint1,
135                                                     GEOM::GEOM_Object_ptr thePoint2,
136                                                     CORBA::Double         theScaleFactor);
137
138   GEOM::GEOM_Object_ptr MakePrismDXDYDZ (GEOM::GEOM_Object_ptr theBase,
139                                          CORBA::Double         theDX,
140                                          CORBA::Double         theDY,
141                                          CORBA::Double         theDZ);
142   GEOM::GEOM_Object_ptr MakePrismDXDYDZ2Ways (GEOM::GEOM_Object_ptr theBase,
143                                               CORBA::Double         theDX,
144                                               CORBA::Double         theDY,
145                                               CORBA::Double         theDZ);
146   GEOM::GEOM_Object_ptr MakePrismDXDYDZWithScaling (GEOM::GEOM_Object_ptr theBase,
147                                                     CORBA::Double         theDX,
148                                                     CORBA::Double         theDY,
149                                                     CORBA::Double         theDZ,
150                                                     CORBA::Double         theScaleFactor);
151   
152   GEOM::GEOM_Object_ptr MakeDraftPrism (GEOM::GEOM_Object_ptr theInitShape,
153                                         GEOM::GEOM_Object_ptr theBase,
154                                         CORBA::Double         theHeight,
155                                         CORBA::Double         theAngle,
156                                         CORBA::Boolean        theFuse,
157                                         CORBA::Boolean        theInvert);
158
159   GEOM::ListOfGO* MakePipe (GEOM::GEOM_Object_ptr theBase,
160                             GEOM::GEOM_Object_ptr thePath,
161                             CORBA::Boolean        IsGenerateGroups);
162
163   GEOM::GEOM_Object_ptr MakeRevolutionAxisAngle (GEOM::GEOM_Object_ptr theBase,
164                                                  GEOM::GEOM_Object_ptr theAxis,
165                                                  CORBA::Double theAngle);
166
167   GEOM::GEOM_Object_ptr MakeRevolutionAxisAngle2Ways (GEOM::GEOM_Object_ptr theBase,
168                                                       GEOM::GEOM_Object_ptr theAxis,
169                                                       CORBA::Double theAngle);
170
171   GEOM::GEOM_Object_ptr MakeFilling(const GEOM::ListOfGO& theContours,
172                                     CORBA::Long theMinDeg, CORBA::Long theMaxDeg,
173                                     CORBA::Double theTol2D, CORBA::Double theTol3D,
174                                     CORBA::Long theNbIter,
175                                     GEOM::filling_oper_method theMethod,
176                                     CORBA::Boolean theApprox);
177
178   GEOM::GEOM_Object_ptr MakeThruSections(const GEOM::ListOfGO& theSeqSections,
179                                          CORBA::Boolean theModeSolid,
180                                          CORBA::Double thePreci,
181                                          CORBA::Boolean theRuled);
182
183   GEOM::ListOfGO* MakePipeWithDifferentSections
184                            (const GEOM::ListOfGO        &theBases,
185                             const GEOM::ListOfGO        &theLocations,
186                                   GEOM::GEOM_Object_ptr  thePath,
187                                   CORBA::Boolean         theWithContact,
188                                   CORBA::Boolean         theWithCorrections,
189                                   CORBA::Boolean         IsBySteps,
190                                   CORBA::Boolean         IsGenerateGroups);
191
192   GEOM::ListOfGO* MakePipeWithShellSections
193                            (const GEOM::ListOfGO        &theBases,
194                             const GEOM::ListOfGO        &theSubBases,
195                             const GEOM::ListOfGO        &theLocations,
196                                   GEOM::GEOM_Object_ptr  thePath,
197                                   CORBA::Boolean         theWithContact,
198                                   CORBA::Boolean         theWithCorrections,
199                                   CORBA::Boolean         IsGenerateGroups);
200
201   GEOM::ListOfGO* MakePipeShellsWithoutPath
202                            (const GEOM::ListOfGO &theBases,
203                             const GEOM::ListOfGO &theLocations,
204                                   CORBA::Boolean  IsGenerateGroups);
205
206   GEOM::ListOfGO* MakePipeBiNormalAlongVector
207                            (GEOM::GEOM_Object_ptr theBase,
208                             GEOM::GEOM_Object_ptr thePath,
209                             GEOM::GEOM_Object_ptr theVec,
210                             CORBA::Boolean        IsGenerateGroups);
211
212   GEOM::GEOM_Object_ptr MakeThickening (GEOM::GEOM_Object_ptr   theObject,
213                                         const GEOM::ListOfLong &theFacesIDs,
214                                         CORBA::Double           theOffset,
215                                         CORBA::Boolean          isCopy,
216                                         CORBA::Boolean          theInside);
217
218   GEOM::GEOM_Object_ptr RestorePath (GEOM::GEOM_Object_ptr theShape,
219                                      GEOM::GEOM_Object_ptr theBase1,
220                                      GEOM::GEOM_Object_ptr theBase2);
221   GEOM::GEOM_Object_ptr RestorePathEdges (GEOM::GEOM_Object_ptr theShape,
222                                           const GEOM::ListOfGO& theBase1,
223                                           const GEOM::ListOfGO& theBase2);
224
225   ::GEOMImpl_I3DPrimOperations* GetOperations()
226   { return (::GEOMImpl_I3DPrimOperations*)GetImpl(); }
227 };
228
229 #endif