Salome HOME
NPAL 16548, 16820, 16218, 16547
[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
25 #include <SALOMEconfig.h>
26
27 #include CORBA_SERVER_HEADER(GEOM_Gen)
28 #include "GEOM_IOperations_i.hh"
29 #include "GEOM_Object_i.hh"
30
31 #include "GEOMImpl_I3DPrimOperations.hxx"
32
33 class GEOM_I3DPrimOperations_i :
34     public virtual POA_GEOM::GEOM_I3DPrimOperations,
35     public virtual GEOM_IOperations_i
36 {
37  public:
38   GEOM_I3DPrimOperations_i (PortableServer::POA_ptr thePOA, GEOM::GEOM_Gen_ptr theEngine,
39                             ::GEOMImpl_I3DPrimOperations* theImpl);
40   ~GEOM_I3DPrimOperations_i();
41
42   GEOM::GEOM_Object_ptr MakeBoxDXDYDZ (CORBA::Double theDX,
43                                        CORBA::Double theDY,
44                                        CORBA::Double theDZ);
45
46   GEOM::GEOM_Object_ptr MakeBoxTwoPnt (GEOM::GEOM_Object_ptr thePnt1,
47                                        GEOM::GEOM_Object_ptr thePnt2);
48
49   GEOM::GEOM_Object_ptr MakeCylinderRH (CORBA::Double theR,
50                                         CORBA::Double theH);
51
52   GEOM::GEOM_Object_ptr MakeCylinderPntVecRH (GEOM::GEOM_Object_ptr thePnt,
53                                               GEOM::GEOM_Object_ptr theVec,
54                                               CORBA::Double theR,
55                                               CORBA::Double theH);
56
57   GEOM::GEOM_Object_ptr MakeConeR1R2H (CORBA::Double theR1,
58                                        CORBA::Double theR2,
59                                        CORBA::Double theH);
60
61   GEOM::GEOM_Object_ptr MakeConePntVecR1R2H (GEOM::GEOM_Object_ptr thePnt,
62                                              GEOM::GEOM_Object_ptr theVec,
63                                              CORBA::Double theR1,
64                                              CORBA::Double theR2,
65                                              CORBA::Double theH);
66
67   GEOM::GEOM_Object_ptr MakeSphereR (CORBA::Double theR);
68
69   GEOM::GEOM_Object_ptr MakeSpherePntR (GEOM::GEOM_Object_ptr thePnt,
70                                         CORBA::Double theR);
71
72   GEOM::GEOM_Object_ptr MakeTorusRR (CORBA::Double theRMajor,
73                                      CORBA::Double theRMinor);
74
75   GEOM::GEOM_Object_ptr MakeTorusPntVecRR (GEOM::GEOM_Object_ptr theCenter,
76                                            GEOM::GEOM_Object_ptr theVector,
77                                            CORBA::Double theRMajor,
78                                            CORBA::Double theRMinor);
79
80   GEOM::GEOM_Object_ptr MakePrismVecH (GEOM::GEOM_Object_ptr theBase,
81                                        GEOM::GEOM_Object_ptr theVec,
82                                        CORBA::Double theH);
83
84   GEOM::GEOM_Object_ptr MakePrismVecH2Ways (GEOM::GEOM_Object_ptr theBase,
85                                             GEOM::GEOM_Object_ptr theVec,
86                                             CORBA::Double theH);
87
88   GEOM::GEOM_Object_ptr MakePrismTwoPnt (GEOM::GEOM_Object_ptr theBase,
89                                          GEOM::GEOM_Object_ptr thePoint1,
90                                          GEOM::GEOM_Object_ptr thePoint2);
91
92   GEOM::GEOM_Object_ptr MakePrismTwoPnt2Ways (GEOM::GEOM_Object_ptr theBase,
93                                               GEOM::GEOM_Object_ptr thePoint1,
94                                               GEOM::GEOM_Object_ptr thePoint2);
95
96   GEOM::GEOM_Object_ptr MakePipe (GEOM::GEOM_Object_ptr theBase,
97                                   GEOM::GEOM_Object_ptr thePath);
98
99   GEOM::GEOM_Object_ptr MakeRevolutionAxisAngle (GEOM::GEOM_Object_ptr theBase,
100                                                  GEOM::GEOM_Object_ptr theAxis,
101                                                  CORBA::Double theAngle);
102
103   GEOM::GEOM_Object_ptr MakeRevolutionAxisAngle2Ways (GEOM::GEOM_Object_ptr theBase,
104                                                       GEOM::GEOM_Object_ptr theAxis,
105                                                       CORBA::Double theAngle);
106
107   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);
108
109   GEOM::GEOM_Object_ptr MakeThruSections(const GEOM::ListOfGO& theSeqSections,
110                                          CORBA::Boolean theModeSolid,
111                                          CORBA::Double thePreci,
112                                          CORBA::Boolean theRuled);
113   
114   GEOM::GEOM_Object_ptr MakePipeWithDifferentSections(const GEOM::ListOfGO& theBases,
115                                                       const GEOM::ListOfGO& theLocations,
116                                                       GEOM::GEOM_Object_ptr thePath,
117                                                       CORBA::Boolean theWithContact,
118                                                       CORBA::Boolean theWithCorrections);
119
120   GEOM::GEOM_Object_ptr MakePipeWithShellSections(const GEOM::ListOfGO& theBases,
121                                                   const GEOM::ListOfGO& theSubBases,
122                                                   const GEOM::ListOfGO& theLocations,
123                                                   GEOM::GEOM_Object_ptr thePath,
124                                                   CORBA::Boolean theWithContact,
125                                                   CORBA::Boolean theWithCorrections);
126
127   GEOM::GEOM_Object_ptr MakePipeShellsWithoutPath(const GEOM::ListOfGO& theBases,
128                                                   const GEOM::ListOfGO& theLocations);
129
130   ::GEOMImpl_I3DPrimOperations* GetOperations()
131   { return (::GEOMImpl_I3DPrimOperations*)GetImpl(); }
132 };
133
134 #endif