Salome HOME
To implement issue 0019962: MakePipeBiNormalAlongAxis implementation.
[modules/geom.git] / src / GEOMImpl / GEOMImpl_IBasicOperations.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_IBasicOperations_HXX_
22 #define _GEOMImpl_IBasicOperations_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
30 class GEOMImpl_IBasicOperations : public GEOM_IOperations {
31  public:
32   Standard_EXPORT GEOMImpl_IBasicOperations(GEOM_Engine* theEngine, int theDocID);
33   Standard_EXPORT ~GEOMImpl_IBasicOperations();
34
35   // Point
36   Standard_EXPORT Handle(GEOM_Object) MakePointXYZ (double theX, double theY, double theZ);
37
38   Standard_EXPORT Handle(GEOM_Object) MakePointWithReference (Handle(GEOM_Object) theReference,
39                                               double theX, double theY, double theZ);
40
41   Standard_EXPORT Handle(GEOM_Object) MakePointOnCurve (Handle(GEOM_Object) theCurve,
42                                         double theParameter);
43
44   Standard_EXPORT Handle(GEOM_Object) MakePointOnLinesIntersection
45                                       (Handle(GEOM_Object) theLine1, Handle(GEOM_Object) theLine2);
46
47   Standard_EXPORT Handle(GEOM_Object) MakePointOnSurface (Handle(GEOM_Object) theSurface,
48                                                           double theUParameter,
49                                                           double theVParameter);
50
51   // Vector
52   Standard_EXPORT Handle(GEOM_Object) MakeVectorDXDYDZ (double theDX, double theDY, double theDZ);
53
54   Standard_EXPORT Handle(GEOM_Object) MakeVectorTwoPnt (Handle(GEOM_Object) thePnt1,
55                                         Handle(GEOM_Object) thePnt2);
56
57   Standard_EXPORT Handle(GEOM_Object) MakeTangentOnCurve(const Handle(GEOM_Object)& theCurve, 
58                                                          double theParameter);
59
60   // Line
61   Standard_EXPORT Handle(GEOM_Object) MakeLineTwoPnt (Handle(GEOM_Object) thePnt1,
62                                       Handle(GEOM_Object) thePnt2);
63
64   Standard_EXPORT Handle(GEOM_Object) MakeLineTwoFaces (Handle(GEOM_Object) theFace1,
65                                       Handle(GEOM_Object) theFace2);
66
67   Standard_EXPORT Handle(GEOM_Object) MakeLine (Handle(GEOM_Object) thePnt,
68                                 Handle(GEOM_Object) theDir);
69
70   // Plane
71   Standard_EXPORT Handle(GEOM_Object) MakePlaneThreePnt (Handle(GEOM_Object) thePnt1,
72                                          Handle(GEOM_Object) thePnt2,
73                                          Handle(GEOM_Object) thePnt3,
74                                          double theSize);
75
76   Standard_EXPORT Handle(GEOM_Object) MakePlanePntVec (Handle(GEOM_Object) thePnt,
77                                        Handle(GEOM_Object) theVec,
78                                        double theSize);
79
80   Standard_EXPORT Handle(GEOM_Object) MakePlaneFace (Handle(GEOM_Object) theFace, double theSize);
81
82   // Marker
83   Standard_EXPORT Handle(GEOM_Object) MakeMarker (double theOX,  double theOY,  double theOZ,
84                                   double theXDX, double theXDY, double theXDZ,
85                                   double theYDX, double theYDY, double theYDZ);
86
87   Standard_EXPORT Handle(GEOM_Object) MakeTangentPlaneOnFace(const Handle(GEOM_Object)& theFace,
88                                                              double theParamU,
89                                                              double theParamV,
90                                                              double theSize);
91
92 };
93
94 #endif