1 // Copyright (C) 2007-2016 CEA/DEN, EDF R&D, OPEN CASCADE
3 // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
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.
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.
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
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
23 #ifndef _GEOM_IBasicOperations_i_HeaderFile
24 #define _GEOM_IBasicOperations_i_HeaderFile
26 #include "GEOMImpl_Gen.hxx"
28 #include <SALOMEconfig.h>
30 #include CORBA_SERVER_HEADER(GEOM_Gen)
31 #include "GEOM_IOperations_i.hh"
32 #include "GEOM_Object_i.hh"
34 #include "GEOMImpl_IBasicOperations.hxx"
36 class GEOM_I_EXPORT GEOM_IBasicOperations_i :
37 public virtual POA_GEOM::GEOM_IBasicOperations,
38 public virtual GEOM_IOperations_i
41 GEOM_IBasicOperations_i (PortableServer::POA_ptr thePOA,
42 GEOM::GEOM_Gen_ptr theEngine,
43 ::GEOMImpl_IBasicOperations* theImpl);
44 ~GEOM_IBasicOperations_i();
46 GEOM::GEOM_Object_ptr MakePointXYZ (CORBA::Double theX,
50 GEOM::GEOM_Object_ptr MakePointWithReference (GEOM::GEOM_Object_ptr theReference,
55 GEOM::GEOM_Object_ptr MakePointOnCurve
56 (GEOM::GEOM_Object_ptr theCurve,
57 CORBA::Double theParameter,
58 CORBA::Boolean takeOrientationIntoAccount);
60 GEOM::GEOM_Object_ptr MakePointOnCurveByLength (GEOM::GEOM_Object_ptr theCurve,
61 CORBA::Double theLength,
62 GEOM::GEOM_Object_ptr theStartPoint);
64 GEOM::GEOM_Object_ptr MakePointOnCurveByCoord (GEOM::GEOM_Object_ptr theCurve,
65 CORBA::Double theXParameter,
66 CORBA::Double theYParameter,
67 CORBA::Double theZParameter);
69 GEOM::GEOM_Object_ptr MakePointOnSurface (GEOM::GEOM_Object_ptr theSurface,
70 CORBA::Double theUParameter,
71 CORBA::Double theVParameter);
73 GEOM::GEOM_Object_ptr MakePointOnSurfaceByCoord (GEOM::GEOM_Object_ptr theSurface,
74 CORBA::Double theXParameter,
75 CORBA::Double theYParameter,
76 CORBA::Double theZParameter);
78 GEOM::GEOM_Object_ptr MakePointOnFace (GEOM::GEOM_Object_ptr theFace);
80 GEOM::GEOM_Object_ptr MakePointOnLinesIntersection (GEOM::GEOM_Object_ptr theLine1,
81 GEOM::GEOM_Object_ptr theLine2);
83 GEOM::GEOM_Object_ptr MakeTangentOnCurve (GEOM::GEOM_Object_ptr theRefCurve,
84 CORBA::Double theParameter);
86 GEOM::GEOM_Object_ptr MakeVectorDXDYDZ (CORBA::Double theDX,
90 GEOM::GEOM_Object_ptr MakeVectorTwoPnt (GEOM::GEOM_Object_ptr thePnt1,
91 GEOM::GEOM_Object_ptr thePnt2);
93 GEOM::GEOM_Object_ptr MakeLine (GEOM::GEOM_Object_ptr thePnt,
94 GEOM::GEOM_Object_ptr theDir);
96 GEOM::GEOM_Object_ptr MakeLineTwoPnt (GEOM::GEOM_Object_ptr thePnt1,
97 GEOM::GEOM_Object_ptr thePnt2);
99 GEOM::GEOM_Object_ptr MakeLineTwoFaces (GEOM::GEOM_Object_ptr theFace1,
100 GEOM::GEOM_Object_ptr theFace2);
102 GEOM::GEOM_Object_ptr MakePlaneThreePnt (GEOM::GEOM_Object_ptr thePnt1,
103 GEOM::GEOM_Object_ptr thePnt2,
104 GEOM::GEOM_Object_ptr thePnt3,
105 CORBA::Double theTrimSize);
107 GEOM::GEOM_Object_ptr MakePlanePntVec (GEOM::GEOM_Object_ptr thePnt,
108 GEOM::GEOM_Object_ptr theVec,
109 CORBA::Double theTrimSize);
111 GEOM::GEOM_Object_ptr MakePlaneFace (GEOM::GEOM_Object_ptr theFace,
112 CORBA::Double theTrimSize);
114 GEOM::GEOM_Object_ptr MakePlane2Vec (GEOM::GEOM_Object_ptr theVec1,
115 GEOM::GEOM_Object_ptr theVec2,
116 CORBA::Double theTrimSize);
118 GEOM::GEOM_Object_ptr MakePlaneLCS (GEOM::GEOM_Object_ptr theLCS,
119 CORBA::Double theTrimSize,
120 CORBA::Double theOrientation );
122 GEOM::GEOM_Object_ptr MakeMarker (CORBA::Double theOX , CORBA::Double theOY , CORBA::Double theOZ,
123 CORBA::Double theXDX, CORBA::Double theXDY, CORBA::Double theXDZ,
124 CORBA::Double theYDX, CORBA::Double theYDY, CORBA::Double theYDZ);
126 GEOM::GEOM_Object_ptr MakeMarkerFromShape (GEOM::GEOM_Object_ptr theShape);
128 GEOM::GEOM_Object_ptr MakeMarkerPntTwoVec (GEOM::GEOM_Object_ptr theOrigin, GEOM::GEOM_Object_ptr theXVec, GEOM::GEOM_Object_ptr theYVec);
130 GEOM::GEOM_Object_ptr MakeTangentPlaneOnFace (GEOM::GEOM_Object_ptr theFace,
131 CORBA::Double theParameterU,
132 CORBA::Double theParameterV,
133 CORBA::Double theTrimSize);
135 ::GEOMImpl_IBasicOperations* GetOperations() { return (::GEOMImpl_IBasicOperations*)GetImpl(); }