Version: 9.16.0
GEOMImpl_IBasicOperations.hxx
Go to the documentation of this file.
1// Copyright (C) 2007-2026 CEA, EDF, 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_IBasicOperations_HXX_
24#define _GEOMImpl_IBasicOperations_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
33 public:
34 Standard_EXPORT GEOMImpl_IBasicOperations(GEOM_Engine* theEngine);
35 Standard_EXPORT ~GEOMImpl_IBasicOperations();
36
37 // Point
38 Standard_EXPORT Handle(GEOM_Object) MakePointXYZ (double theX, double theY, double theZ);
39
40 Standard_EXPORT Handle(GEOM_Object) MakePointWithReference (Handle(GEOM_Object) theReference,
41 double theX, double theY, double theZ);
42
43 Standard_EXPORT Handle(GEOM_Object) MakePointOnCurve
44 (Handle(GEOM_Object) theCurve,
47
48 Standard_EXPORT Handle(GEOM_Object) MakePointOnCurveByLength (Handle(GEOM_Object) theCurve,
49 double theLength,
50 Handle(GEOM_Object) theStartPoint);
51
52 Standard_EXPORT Handle(GEOM_Object) MakePointOnCurveByCoord (Handle(GEOM_Object) theCurve,
53 double theXParam,
54 double theYParam,
55 double theZParam);
56
57 Standard_EXPORT Handle(GEOM_Object) MakePointOnLinesIntersection
58 (Handle(GEOM_Object) theLine1, Handle(GEOM_Object) theLine2);
59
60 Standard_EXPORT Handle(GEOM_Object) MakePointOnSurface (Handle(GEOM_Object) theSurface,
63
64 Standard_EXPORT Handle(GEOM_Object) MakePointOnSurfaceByCoord (Handle(GEOM_Object) theSurface,
65 double theXParam,
66 double theYParam,
67 double theZParam);
68
69 Standard_EXPORT Handle(GEOM_Object) MakePointOnFace (Handle(GEOM_Object) theFace,
71
72 // Vector
73 Standard_EXPORT Handle(GEOM_Object) MakeVectorDXDYDZ (double theDX, double theDY, double theDZ);
74
75 Standard_EXPORT Handle(GEOM_Object) MakeVectorTwoPnt (Handle(GEOM_Object) thePnt1,
76 Handle(GEOM_Object) thePnt2);
77
78 Standard_EXPORT Handle(GEOM_Object) MakeTangentOnCurve(const Handle(GEOM_Object)& theCurve,
79 double theParameter);
80
81 // Line
82 Standard_EXPORT Handle(GEOM_Object) MakeLineTwoPnt (Handle(GEOM_Object) thePnt1,
83 Handle(GEOM_Object) thePnt2);
84
85 Standard_EXPORT Handle(GEOM_Object) MakeLineTwoFaces (Handle(GEOM_Object) theFace1,
86 Handle(GEOM_Object) theFace2);
87
88 Standard_EXPORT Handle(GEOM_Object) MakeLine (Handle(GEOM_Object) thePnt,
89 Handle(GEOM_Object) theDir);
90
91 // Plane
92 Standard_EXPORT Handle(GEOM_Object) MakePlaneThreePnt (Handle(GEOM_Object) thePnt1,
93 Handle(GEOM_Object) thePnt2,
94 Handle(GEOM_Object) thePnt3,
95 double theSize);
96
97 Standard_EXPORT Handle(GEOM_Object) MakePlanePntVec (Handle(GEOM_Object) thePnt,
98 Handle(GEOM_Object) theVec,
99 double theSize);
100
101 Standard_EXPORT Handle(GEOM_Object) MakePlaneFace (Handle(GEOM_Object) theFace, double theSize);
102
103 Standard_EXPORT Handle(GEOM_Object) MakePlane2Vec (Handle(GEOM_Object) theVec1,
104 Handle(GEOM_Object) theVec2,
105 double theSize);
106
107 Standard_EXPORT Handle(GEOM_Object) MakePlaneLCS (Handle(GEOM_Object) theFace, double theSize, int theOrientation);
108
109 // Marker
110 Standard_EXPORT Handle(GEOM_Object) MakeMarker (double theOX, double theOY, double theOZ,
111 double theXDX, double theXDY, double theXDZ,
112 double theYDX, double theYDY, double theYDZ);
113
114 Standard_EXPORT Handle(GEOM_Object) MakeMarkerFromShape (const Handle(GEOM_Object)& theShape);
115
116 Standard_EXPORT Handle(GEOM_Object) MakeMarkerPntTwoVec (const Handle(GEOM_Object)& theOrigin,
117 const Handle(GEOM_Object)& theXVec,
118 const Handle(GEOM_Object)& theYVec);
119
120 Standard_EXPORT Handle(GEOM_Object) MakeTangentPlaneOnFace(const Handle(GEOM_Object)& theFace,
121 double theParamU,
122 double theParamV,
123 double theSize);
124
125 private:
126 // Private methods
127
131 {
138 };
139
140 Handle(GEOM_Object) makePointOnGeom
141 (Handle(GEOM_Object) theGeomObj,
142 double theParam1,
143 double theParam2,
144 double theParam3,
147 const bool takeOrientationIntoAccount = false,
148 Handle(GEOM_Object) theRefPoint = 0);
149};
150
151#endif
Definition: GEOMImpl_IBasicOperations.hxx:32
Standard_EXPORT double double theDZ
Definition: GEOMImpl_IBasicOperations.hxx:73
Standard_EXPORT Handle(GEOM_Object) MakePlaneLCS(Handle(GEOM_Object) theFace
Standard_EXPORT double theParamU
Definition: GEOMImpl_IBasicOperations.hxx:121
double double double const PointLocation theLocation
Definition: GEOMImpl_IBasicOperations.hxx:145
Standard_EXPORT Handle(GEOM_Object) theVec
Standard_EXPORT Handle(GEOM_Object) thePnt3
Standard_EXPORT Handle(GEOM_Object) MakePointOnSurfaceByCoord(Handle(GEOM_Object) theSurface
Standard_EXPORT double double theOZ
Definition: GEOMImpl_IBasicOperations.hxx:110
Standard_EXPORT double double theParamV
Definition: GEOMImpl_IBasicOperations.hxx:122
Standard_EXPORT double bool takeOrientationIntoAccount
Definition: GEOMImpl_IBasicOperations.hxx:46
Standard_EXPORT double double double theXDX
Definition: GEOMImpl_IBasicOperations.hxx:111
Standard_EXPORT double double double double theXDY
Definition: GEOMImpl_IBasicOperations.hxx:111
Standard_EXPORT const const Handle(GEOM_Object) &theYVec)
double theParam1
Definition: GEOMImpl_IBasicOperations.hxx:142
Standard_EXPORT Handle(GEOM_Object) MakePlaneThreePnt(Handle(GEOM_Object) thePnt1
Standard_EXPORT const Handle(GEOM_Object) &theXVec
Standard_EXPORT Handle(GEOM_Object) MakeMarker(double theOX
Standard_EXPORT double double double double double double double theYDY
Definition: GEOMImpl_IBasicOperations.hxx:112
Standard_EXPORT Handle(GEOM_Object) MakePointOnCurve(Handle(GEOM_Object) theCurve
Standard_EXPORT double double double theZParam
Definition: GEOMImpl_IBasicOperations.hxx:55
Standard_EXPORT double theLength
Definition: GEOMImpl_IBasicOperations.hxx:49
double double theParam2
Definition: GEOMImpl_IBasicOperations.hxx:143
Standard_EXPORT Handle(GEOM_Object) MakePlanePntVec(Handle(GEOM_Object) thePnt
Standard_EXPORT double double double double double double double double theYDZ
Definition: GEOMImpl_IBasicOperations.hxx:112
Standard_EXPORT double theSize
Definition: GEOMImpl_IBasicOperations.hxx:95
Standard_EXPORT double double double double double double theYDX
Definition: GEOMImpl_IBasicOperations.hxx:112
Standard_EXPORT double double double double double theXDZ
Definition: GEOMImpl_IBasicOperations.hxx:111
Standard_EXPORT Handle(GEOM_Object) thePnt2)
PointLocation
Enumeration describes point position on geometric object (curve or surface) Point location can be det...
Definition: GEOMImpl_IBasicOperations.hxx:131
@ PointOn_SurfaceByCoord
Definition: GEOMImpl_IBasicOperations.hxx:136
@ PointOn_CurveByParam
Definition: GEOMImpl_IBasicOperations.hxx:132
@ PointOn_SurfaceByParam
Definition: GEOMImpl_IBasicOperations.hxx:135
@ PointOn_CurveByLength
Definition: GEOMImpl_IBasicOperations.hxx:134
@ PointOn_CurveByCoord
Definition: GEOMImpl_IBasicOperations.hxx:133
@ PointOn_Face
Definition: GEOMImpl_IBasicOperations.hxx:137
Standard_EXPORT Handle(GEOM_Object) MakePointOnCurveByLength(Handle(GEOM_Object) theCurve
Standard_EXPORT int theNumberOfPnts
Definition: GEOMImpl_IBasicOperations.hxx:70
Standard_EXPORT Handle(GEOM_Object) MakePlane2Vec(Handle(GEOM_Object) theVec1
double double double theParam3
Definition: GEOMImpl_IBasicOperations.hxx:144
Standard_EXPORT Handle(GEOM_Object) MakePointOnFace(Handle(GEOM_Object) theFace
Standard_EXPORT double theParameter
Definition: GEOMImpl_IBasicOperations.hxx:45
Standard_EXPORT Handle(GEOM_Object) MakePointOnSurface(Handle(GEOM_Object) theSurface
Standard_EXPORT double theX
Definition: GEOMImpl_IBasicOperations.hxx:41
Standard_EXPORT double theY
Definition: GEOMImpl_IBasicOperations.hxx:38
Standard_EXPORT Handle(GEOM_Object) theFace2)
Standard_EXPORT GEOMImpl_IBasicOperations(GEOM_Engine *theEngine)
Definition: GEOMImpl_IBasicOperations.cxx:59
Standard_EXPORT Handle(GEOM_Object) theLine2)
Standard_EXPORT Handle(GEOM_Object) MakePointXYZ(double theX
Standard_EXPORT double theUParameter
Definition: GEOMImpl_IBasicOperations.hxx:61
Standard_EXPORT Handle(GEOM_Object) MakeTangentPlaneOnFace(const Handle(GEOM_Object) &theFace
Standard_EXPORT Handle(GEOM_Object) MakePlaneFace(Handle(GEOM_Object) theFace
Standard_EXPORT Handle(GEOM_Object) MakeMarkerFromShape(const Handle(GEOM_Object) &theShape)
Standard_EXPORT double double theZ
Definition: GEOMImpl_IBasicOperations.hxx:38
Standard_EXPORT Handle(GEOM_Object) theVec2
double double double const PointLocation int const bool Handle(GEOM_Object) theRefPoint=0)
Standard_EXPORT double Handle(GEOM_Object) theStartPoint)
Standard_EXPORT Handle(GEOM_Object) MakePointWithReference(Handle(GEOM_Object) theReference
Standard_EXPORT Handle(GEOM_Object) MakeVectorTwoPnt(Handle(GEOM_Object) thePnt1
Standard_EXPORT Handle(GEOM_Object) MakeTangentOnCurve(const Handle(GEOM_Object) &theCurve
Standard_EXPORT Handle(GEOM_Object) thePnt2
Standard_EXPORT double theXParam
Definition: GEOMImpl_IBasicOperations.hxx:53
Standard_EXPORT Handle(GEOM_Object) MakeVectorDXDYDZ(double theDX
Standard_EXPORT Handle(GEOM_Object) MakeLineTwoPnt(Handle(GEOM_Object) thePnt1
Standard_EXPORT double theDY
Definition: GEOMImpl_IBasicOperations.hxx:73
Standard_EXPORT ~GEOMImpl_IBasicOperations()
Definition: GEOMImpl_IBasicOperations.cxx:70
Standard_EXPORT double double theYParam
Definition: GEOMImpl_IBasicOperations.hxx:54
Standard_EXPORT Handle(GEOM_Object) theDir)
Standard_EXPORT Handle(GEOM_Object) MakeMarkerPntTwoVec(const Handle(GEOM_Object) &theOrigin
Standard_EXPORT double theOY
Definition: GEOMImpl_IBasicOperations.hxx:110
Standard_EXPORT double double theVParameter
Definition: GEOMImpl_IBasicOperations.hxx:62
Standard_EXPORT Handle(GEOM_Object) MakeLineTwoFaces(Handle(GEOM_Object) theFace1
Handle(GEOM_Object) makePointOnGeom(Handle(GEOM_Object) theGeomObj
Standard_EXPORT double int theOrientation
Definition: GEOMImpl_IBasicOperations.hxx:107
Standard_EXPORT Handle(GEOM_Object) MakePointOnLinesIntersection(Handle(GEOM_Object) theLine1
Standard_EXPORT Handle(GEOM_Object) MakeLine(Handle(GEOM_Object) thePnt
Standard_EXPORT Handle(GEOM_Object) MakePointOnCurveByCoord(Handle(GEOM_Object) theCurve
Definition: GEOM_Engine.hxx:91
Definition: GEOM_IOperations.hxx:40