Salome HOME
Merge from V6_main 13/12/2012
[modules/geom.git] / src / GEOM_I / GEOM_I3DPrimOperations_i.hh
1 // Copyright (C) 2007-2012  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.
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 #ifndef _GEOM_I3DPrimOperations_i_HeaderFile
23 #define _GEOM_I3DPrimOperations_i_HeaderFile
24
25 #include "GEOMImpl_Gen.hxx"
26
27 #include <SALOMEconfig.h>
28
29 #include CORBA_SERVER_HEADER(GEOM_Gen)
30 #include "GEOM_IOperations_i.hh"
31 #include "GEOM_Object_i.hh"
32
33 #include "GEOMImpl_I3DPrimOperations.hxx"
34
35 class GEOM_I_EXPORT GEOM_I3DPrimOperations_i :
36     public virtual POA_GEOM::GEOM_I3DPrimOperations,
37     public virtual GEOM_IOperations_i
38 {
39  public:
40   GEOM_I3DPrimOperations_i (PortableServer::POA_ptr thePOA, GEOM::GEOM_Gen_ptr theEngine,
41                             ::GEOMImpl_I3DPrimOperations* theImpl);
42   ~GEOM_I3DPrimOperations_i();
43
44   GEOM::GEOM_Object_ptr MakeBoxDXDYDZ (CORBA::Double theDX,
45                                        CORBA::Double theDY,
46                                        CORBA::Double theDZ);
47
48   GEOM::GEOM_Object_ptr MakeBoxTwoPnt (GEOM::GEOM_Object_ptr thePnt1,
49                                        GEOM::GEOM_Object_ptr thePnt2);
50                                     
51   GEOM::GEOM_Object_ptr MakeFaceHW (CORBA::Double theH,
52                                     CORBA::Double theW,
53                                     CORBA::Short  theOrientation);
54
55   GEOM::GEOM_Object_ptr MakeFaceObjHW (GEOM::GEOM_Object_ptr theObj,
56                                        CORBA::Double theH,
57                                        CORBA::Double theW);
58
59   GEOM::GEOM_Object_ptr MakeDiskPntVecR (GEOM::GEOM_Object_ptr theCenter,
60                                          GEOM::GEOM_Object_ptr theVector,
61                                          double theR);
62
63   GEOM::GEOM_Object_ptr MakeDiskThreePnt (GEOM::GEOM_Object_ptr thePnt1,
64                                           GEOM::GEOM_Object_ptr thePnt2,
65                                           GEOM::GEOM_Object_ptr thePnt3);
66
67   GEOM::GEOM_Object_ptr MakeDiskR (CORBA::Double theR,
68                                    CORBA::Short  theOrientation);
69
70   GEOM::GEOM_Object_ptr MakeCylinderRH (CORBA::Double theR,
71                                         CORBA::Double theH);
72
73   GEOM::GEOM_Object_ptr MakeCylinderPntVecRH (GEOM::GEOM_Object_ptr thePnt,
74                                               GEOM::GEOM_Object_ptr theVec,
75                                               CORBA::Double theR,
76                                               CORBA::Double theH);
77
78   GEOM::GEOM_Object_ptr MakeConeR1R2H (CORBA::Double theR1,
79                                        CORBA::Double theR2,
80                                        CORBA::Double theH);
81
82   GEOM::GEOM_Object_ptr MakeConePntVecR1R2H (GEOM::GEOM_Object_ptr thePnt,
83                                              GEOM::GEOM_Object_ptr theVec,
84                                              CORBA::Double theR1,
85                                              CORBA::Double theR2,
86                                              CORBA::Double theH);
87
88   GEOM::GEOM_Object_ptr MakeSphereR (CORBA::Double theR);
89
90   GEOM::GEOM_Object_ptr MakeSpherePntR (GEOM::GEOM_Object_ptr thePnt,
91                                         CORBA::Double theR);
92
93   GEOM::GEOM_Object_ptr MakeTorusRR (CORBA::Double theRMajor,
94                                      CORBA::Double theRMinor);
95
96   GEOM::GEOM_Object_ptr MakeTorusPntVecRR (GEOM::GEOM_Object_ptr theCenter,
97                                            GEOM::GEOM_Object_ptr theVector,
98                                            CORBA::Double theRMajor,
99                                            CORBA::Double theRMinor);
100
101   GEOM::GEOM_Object_ptr MakePrismVecH (GEOM::GEOM_Object_ptr theBase,
102                                        GEOM::GEOM_Object_ptr theVec,
103                                        CORBA::Double theH);
104
105   GEOM::GEOM_Object_ptr MakePrismVecH2Ways (GEOM::GEOM_Object_ptr theBase,
106                                             GEOM::GEOM_Object_ptr theVec,
107                                             CORBA::Double theH);
108
109   GEOM::GEOM_Object_ptr MakePrismVecHWithScaling (GEOM::GEOM_Object_ptr theBase,
110                                                   GEOM::GEOM_Object_ptr theVec,
111                                                   CORBA::Double theH,
112                                                   CORBA::Double theScaleFactor);
113
114   GEOM::GEOM_Object_ptr MakePrismTwoPnt (GEOM::GEOM_Object_ptr theBase,
115                                          GEOM::GEOM_Object_ptr thePoint1,
116                                          GEOM::GEOM_Object_ptr thePoint2);
117
118   GEOM::GEOM_Object_ptr MakePrismTwoPnt2Ways (GEOM::GEOM_Object_ptr theBase,
119                                               GEOM::GEOM_Object_ptr thePoint1,
120                                               GEOM::GEOM_Object_ptr thePoint2);
121
122   GEOM::GEOM_Object_ptr MakePrismTwoPntWithScaling (GEOM::GEOM_Object_ptr theBase,
123                                                     GEOM::GEOM_Object_ptr thePoint1,
124                                                     GEOM::GEOM_Object_ptr thePoint2,
125                                                     CORBA::Double         theScaleFactor);
126
127   GEOM::GEOM_Object_ptr MakePrismDXDYDZ (GEOM::GEOM_Object_ptr theBase,
128                                          CORBA::Double         theDX,
129                                          CORBA::Double         theDY,
130                                          CORBA::Double         theDZ);
131   GEOM::GEOM_Object_ptr MakePrismDXDYDZ2Ways (GEOM::GEOM_Object_ptr theBase,
132                                               CORBA::Double         theDX,
133                                               CORBA::Double         theDY,
134                                               CORBA::Double         theDZ);
135   GEOM::GEOM_Object_ptr MakePrismDXDYDZWithScaling (GEOM::GEOM_Object_ptr theBase,
136                                                     CORBA::Double         theDX,
137                                                     CORBA::Double         theDY,
138                                                     CORBA::Double         theDZ,
139                                                     CORBA::Double         theScaleFactor);
140   
141   GEOM::GEOM_Object_ptr MakeDraftPrism (GEOM::GEOM_Object_ptr theInitShape,
142                                         GEOM::GEOM_Object_ptr theBase,
143                                         CORBA::Double         theHeight,
144                                         CORBA::Double         theAngle,
145                                         CORBA::Boolean        theFuse);
146                             
147   GEOM::GEOM_Object_ptr MakePipe (GEOM::GEOM_Object_ptr theBase,
148                                   GEOM::GEOM_Object_ptr thePath);
149
150   GEOM::GEOM_Object_ptr MakeRevolutionAxisAngle (GEOM::GEOM_Object_ptr theBase,
151                                                  GEOM::GEOM_Object_ptr theAxis,
152                                                  CORBA::Double theAngle);
153
154   GEOM::GEOM_Object_ptr MakeRevolutionAxisAngle2Ways (GEOM::GEOM_Object_ptr theBase,
155                                                       GEOM::GEOM_Object_ptr theAxis,
156                                                       CORBA::Double theAngle);
157
158   GEOM::GEOM_Object_ptr MakeFilling(GEOM::GEOM_Object_ptr theShape,
159                                     CORBA::Long theMinDeg, CORBA::Long theMaxDeg,
160                                     CORBA::Double theTol2D, CORBA::Double theTol3D,
161                                     CORBA::Long theNbIter,
162                                     GEOM::filling_oper_method theMethod,
163                                     CORBA::Boolean theApprox);
164
165   GEOM::GEOM_Object_ptr MakeThruSections(const GEOM::ListOfGO& theSeqSections,
166                                          CORBA::Boolean theModeSolid,
167                                          CORBA::Double thePreci,
168                                          CORBA::Boolean theRuled);
169   
170   GEOM::GEOM_Object_ptr MakePipeWithDifferentSections(const GEOM::ListOfGO& theBases,
171                                                       const GEOM::ListOfGO& theLocations,
172                                                       GEOM::GEOM_Object_ptr thePath,
173                                                       CORBA::Boolean theWithContact,
174                                                       CORBA::Boolean theWithCorrections);
175
176   GEOM::GEOM_Object_ptr MakePipeWithShellSections(const GEOM::ListOfGO& theBases,
177                                                   const GEOM::ListOfGO& theSubBases,
178                                                   const GEOM::ListOfGO& theLocations,
179                                                   GEOM::GEOM_Object_ptr thePath,
180                                                   CORBA::Boolean theWithContact,
181                                                   CORBA::Boolean theWithCorrections);
182
183   GEOM::GEOM_Object_ptr MakePipeShellsWithoutPath(const GEOM::ListOfGO& theBases,
184                                                   const GEOM::ListOfGO& theLocations);
185
186   GEOM::GEOM_Object_ptr MakePipeBiNormalAlongVector (GEOM::GEOM_Object_ptr theBase,
187                                                      GEOM::GEOM_Object_ptr thePath,
188                                                      GEOM::GEOM_Object_ptr theVec);
189
190   GEOM::GEOM_Object_ptr RestorePath (GEOM::GEOM_Object_ptr theShape,
191                                      GEOM::GEOM_Object_ptr theBase1,
192                                      GEOM::GEOM_Object_ptr theBase2);
193   GEOM::GEOM_Object_ptr RestorePathEdges (GEOM::GEOM_Object_ptr theShape,
194                                           const GEOM::ListOfGO& theBase1,
195                                           const GEOM::ListOfGO& theBase2);
196
197   ::GEOMImpl_I3DPrimOperations* GetOperations()
198   { return (::GEOMImpl_I3DPrimOperations*)GetImpl(); }
199 };
200
201 #endif