Salome HOME
Update copyright information
[modules/geom.git] / src / GEOMImpl / GEOMImpl_I3DPrimOperations.hxx
1 //  Copyright (C) 2007-2008  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
41   Standard_EXPORT Handle(GEOM_Object) MakeCylinderRH       (double theR, double theH);
42   Standard_EXPORT Handle(GEOM_Object) MakeCylinderPntVecRH (Handle(GEOM_Object) thePnt,
43                                             Handle(GEOM_Object) theVec,
44                                             double theR, double theH);
45
46   Standard_EXPORT Handle(GEOM_Object) MakeConeR1R2H       (double theR1, double theR2, double theH);
47   Standard_EXPORT Handle(GEOM_Object) MakeConePntVecR1R2H (Handle(GEOM_Object) thePnt,
48                                            Handle(GEOM_Object) theVec,
49                                            double theR1, double theR2, double theH);
50
51   Standard_EXPORT Handle(GEOM_Object) MakeSphereR    (double theR);
52   Standard_EXPORT Handle(GEOM_Object) MakeSpherePntR (Handle(GEOM_Object) thePnt, double theR);
53
54   Standard_EXPORT Handle(GEOM_Object) MakeTorusRR (double theRMajor, double theRMinor);
55
56   Standard_EXPORT Handle(GEOM_Object) MakeTorusPntVecRR (Handle(GEOM_Object) thePnt,
57                                          Handle(GEOM_Object) theVec,
58                                          double theRMajor, double theRMinor);
59
60   Standard_EXPORT Handle(GEOM_Object) MakePrismVecH (Handle(GEOM_Object) theBase,
61                                      Handle(GEOM_Object) theVec, double theH);
62
63   Standard_EXPORT Handle(GEOM_Object) MakePrismVecH2Ways (Handle(GEOM_Object) theBase,
64                                               Handle(GEOM_Object) theVec, double theH);
65
66   Standard_EXPORT Handle(GEOM_Object) MakePrismTwoPnt (Handle(GEOM_Object) theBase,
67                                        Handle(GEOM_Object) thePoint1,
68                                        Handle(GEOM_Object) thePoint2);
69
70   Standard_EXPORT Handle(GEOM_Object) MakePrismTwoPnt2Ways (Handle(GEOM_Object) theBase,
71                                        Handle(GEOM_Object) thePoint1,
72                                        Handle(GEOM_Object) thePoint2);
73
74   Standard_EXPORT Handle(GEOM_Object) MakePipe (Handle(GEOM_Object) theBase,
75                                 Handle(GEOM_Object) thePath);
76
77   Standard_EXPORT Handle(GEOM_Object) MakeRevolutionAxisAngle (Handle(GEOM_Object) theBase,
78                                                Handle(GEOM_Object) theAxis,
79                                                double theAngle);
80
81   Standard_EXPORT Handle(GEOM_Object) MakeRevolutionAxisAngle2Ways (Handle(GEOM_Object) theBase,
82                                                                     Handle(GEOM_Object) theAxis,
83                                                                     double theAngle);
84
85   Standard_EXPORT Handle(GEOM_Object) MakeSolidShell (Handle(GEOM_Object) theShell);
86
87   Standard_EXPORT Handle(GEOM_Object) MakeFilling (Handle(GEOM_Object) theShape, int theMinDeg, int theMaxDeg, double theTol2D, double theTol3D, int theNbIter, bool isApprox);
88
89   Standard_EXPORT Handle(GEOM_Object) MakeThruSections(const Handle(TColStd_HSequenceOfTransient)& theSeqSections,
90                                                        bool theModeSolid,
91                                                        double thePreci,
92                                                        bool theRuled);
93
94   Standard_EXPORT Handle(GEOM_Object) MakePipeWithDifferentSections(
95                 const Handle(TColStd_HSequenceOfTransient)& theBases,
96                 const Handle(TColStd_HSequenceOfTransient)& theLocations,
97                 const Handle(GEOM_Object)& thePath,
98                 bool theWithContact,
99                 bool theWithCorrections);
100
101   Standard_EXPORT Handle(GEOM_Object) MakePipeWithShellSections(
102                 const Handle(TColStd_HSequenceOfTransient)& theBases,
103                 const Handle(TColStd_HSequenceOfTransient)& theSubBases,
104                 const Handle(TColStd_HSequenceOfTransient)& theLocations,
105                 const Handle(GEOM_Object)& thePath,
106                 bool theWithContact,
107                 bool theWithCorrections);
108
109   Standard_EXPORT Handle(GEOM_Object) MakePipeShellsWithoutPath(
110                 const Handle(TColStd_HSequenceOfTransient)& theBases,
111                 const Handle(TColStd_HSequenceOfTransient)& theLocations);
112
113   Standard_EXPORT Handle(GEOM_Object) MakePipeBiNormalAlongVector (Handle(GEOM_Object) theBase,
114                                                                    Handle(GEOM_Object) thePath,
115                                                                    Handle(GEOM_Object) theVec);
116
117 };
118
119 #endif