Salome HOME
acee1fdfc12a91904b0de662c2c8bf15f9291e60
[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/
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 MakePrismTwoPnt (GEOM::GEOM_Object_ptr theBase,
85                                          GEOM::GEOM_Object_ptr thePoint1,
86                                          GEOM::GEOM_Object_ptr thePoint2);
87
88   GEOM::GEOM_Object_ptr MakePipe (GEOM::GEOM_Object_ptr theBase,
89                                   GEOM::GEOM_Object_ptr thePath);
90
91   GEOM::GEOM_Object_ptr MakeRevolutionAxisAngle (GEOM::GEOM_Object_ptr theBase,
92                                                  GEOM::GEOM_Object_ptr theAxis,
93                                                  CORBA::Double theAngle);
94
95   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);
96
97   ::GEOMImpl_I3DPrimOperations* GetOperations()
98   { return (::GEOMImpl_I3DPrimOperations*)GetImpl(); }
99 };
100
101 #endif