]> SALOME platform Git repositories - modules/geom.git/blob - src/GEOMImpl/GEOMImpl_I3DPrimOperations.hxx
Salome HOME
0016757: EDF 546 GEOM : Add Face and Disc in geom primitives
[modules/geom.git] / src / GEOMImpl / GEOMImpl_I3DPrimOperations.hxx
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 _GEOMImpl_I3DPrimOperations_HXX_
22 #define _GEOMImpl_I3DPrimOperations_HXX_
23
24 #include "Utils_SALOME_Exception.hxx"
25 #include "GEOM_IOperations.hxx"
26 #include "GEOM_Engine.hxx"
27 #include "GEOM_Object.hxx"
28 #include <TDocStd_Document.hxx>
29 #include <TColStd_HSequenceOfTransient.hxx>
30
31 class GEOMImpl_I3DPrimOperations : public GEOM_IOperations {
32  public:
33   Standard_EXPORT GEOMImpl_I3DPrimOperations(GEOM_Engine* theEngine, int theDocID);
34   Standard_EXPORT ~GEOMImpl_I3DPrimOperations();
35
36   Standard_EXPORT Handle(GEOM_Object) MakeBoxDXDYDZ (double theDX, double theDY, double theDZ);
37   Standard_EXPORT Handle(GEOM_Object) MakeBoxTwoPnt (Handle(GEOM_Object) thePnt1,
38                                                      Handle(GEOM_Object) thePnt2);
39   Standard_EXPORT Handle(GEOM_Object) MakeFaceHW (double theH, double theW);
40   Standard_EXPORT Handle(GEOM_Object) MakeFacePlaneHW (Handle(GEOM_Object) theFace,
41                                                        double theH, double theW);
42   Standard_EXPORT Handle(GEOM_Object) MakeDiskThreePnt (Handle(GEOM_Object) thePnt1,
43                                                         Handle(GEOM_Object) thePnt2,
44                                                         Handle(GEOM_Object) thePnt3);
45   Standard_EXPORT Handle(GEOM_Object) MakeDiskPntVecR (Handle(GEOM_Object) thePnt1,
46                                                        Handle(GEOM_Object) theVec,
47                                                        double theR);
48   Standard_EXPORT Handle(GEOM_Object) MakeCylinderRH       (double theR, double theH);
49   Standard_EXPORT Handle(GEOM_Object) MakeCylinderPntVecRH (Handle(GEOM_Object) thePnt,
50                                             Handle(GEOM_Object) theVec,
51                                             double theR, double theH);
52
53   Standard_EXPORT Handle(GEOM_Object) MakeConeR1R2H       (double theR1, double theR2, double theH);
54   Standard_EXPORT Handle(GEOM_Object) MakeConePntVecR1R2H (Handle(GEOM_Object) thePnt,
55                                            Handle(GEOM_Object) theVec,
56                                            double theR1, double theR2, double theH);
57
58   Standard_EXPORT Handle(GEOM_Object) MakeSphereR    (double theR);
59   Standard_EXPORT Handle(GEOM_Object) MakeSpherePntR (Handle(GEOM_Object) thePnt, double theR);
60
61   Standard_EXPORT Handle(GEOM_Object) MakeTorusRR (double theRMajor, double theRMinor);
62
63   Standard_EXPORT Handle(GEOM_Object) MakeTorusPntVecRR (Handle(GEOM_Object) thePnt,
64                                          Handle(GEOM_Object) theVec,
65                                          double theRMajor, double theRMinor);
66
67   Standard_EXPORT Handle(GEOM_Object) MakePrismVecH (Handle(GEOM_Object) theBase,
68                                      Handle(GEOM_Object) theVec, double theH);
69
70   Standard_EXPORT Handle(GEOM_Object) MakePrismVecH2Ways (Handle(GEOM_Object) theBase,
71                                               Handle(GEOM_Object) theVec, double theH);
72
73   Standard_EXPORT Handle(GEOM_Object) MakePrismTwoPnt (Handle(GEOM_Object) theBase,
74                                        Handle(GEOM_Object) thePoint1,
75                                        Handle(GEOM_Object) thePoint2);
76
77   Standard_EXPORT Handle(GEOM_Object) MakePrismTwoPnt2Ways (Handle(GEOM_Object) theBase,
78                                        Handle(GEOM_Object) thePoint1,
79                                        Handle(GEOM_Object) thePoint2);
80
81   Standard_EXPORT Handle(GEOM_Object) MakePrismDXDYDZ (Handle(GEOM_Object) theBase,
82                                      double theDX, double theDY, double theDZ);
83
84   Standard_EXPORT Handle(GEOM_Object) MakePrismDXDYDZ2Ways (Handle(GEOM_Object) theBase,
85                                      double theDX, double theDY, double theDZ);
86
87   Standard_EXPORT Handle(GEOM_Object) MakePipe (Handle(GEOM_Object) theBase,
88                                 Handle(GEOM_Object) thePath);
89
90   Standard_EXPORT Handle(GEOM_Object) MakeRevolutionAxisAngle (Handle(GEOM_Object) theBase,
91                                                Handle(GEOM_Object) theAxis,
92                                                double theAngle);
93
94   Standard_EXPORT Handle(GEOM_Object) MakeRevolutionAxisAngle2Ways (Handle(GEOM_Object) theBase,
95                                                                     Handle(GEOM_Object) theAxis,
96                                                                     double theAngle);
97
98   Standard_EXPORT Handle(GEOM_Object) MakeSolidShell (Handle(GEOM_Object) theShell);
99
100   Standard_EXPORT Handle(GEOM_Object) MakeFilling (Handle(GEOM_Object) theShape, int theMinDeg, int theMaxDeg, double theTol2D, double theTol3D, int theNbIter, bool isApprox);
101
102   Standard_EXPORT Handle(GEOM_Object) MakeThruSections(const Handle(TColStd_HSequenceOfTransient)& theSeqSections,
103                                                        bool theModeSolid,
104                                                        double thePreci,
105                                                        bool theRuled);
106
107   Standard_EXPORT Handle(GEOM_Object) MakePipeWithDifferentSections(
108                 const Handle(TColStd_HSequenceOfTransient)& theBases,
109                 const Handle(TColStd_HSequenceOfTransient)& theLocations,
110                 const Handle(GEOM_Object)& thePath,
111                 bool theWithContact,
112                 bool theWithCorrections);
113
114   Standard_EXPORT Handle(GEOM_Object) MakePipeWithShellSections(
115                 const Handle(TColStd_HSequenceOfTransient)& theBases,
116                 const Handle(TColStd_HSequenceOfTransient)& theSubBases,
117                 const Handle(TColStd_HSequenceOfTransient)& theLocations,
118                 const Handle(GEOM_Object)& thePath,
119                 bool theWithContact,
120                 bool theWithCorrections);
121
122   Standard_EXPORT Handle(GEOM_Object) MakePipeShellsWithoutPath(
123                 const Handle(TColStd_HSequenceOfTransient)& theBases,
124                 const Handle(TColStd_HSequenceOfTransient)& theLocations);
125
126 };
127
128 #endif