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