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