Salome HOME
Merge from V6_main_20120808 08Aug12
[modules/geom.git] / src / GEOM_I / GEOM_IBasicOperations_i.hh
1 // Copyright (C) 2007-2012  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
23 #ifndef _GEOM_IBasicOperations_i_HeaderFile
24 #define _GEOM_IBasicOperations_i_HeaderFile
25
26 #include "GEOMImpl_Gen.hxx"
27
28 #include <SALOMEconfig.h>
29
30 #include CORBA_SERVER_HEADER(GEOM_Gen)
31 #include "GEOM_IOperations_i.hh"
32 #include "GEOM_Object_i.hh"
33
34 #include "GEOMImpl_IBasicOperations.hxx"
35
36 class GEOM_I_EXPORT GEOM_IBasicOperations_i :
37     public virtual POA_GEOM::GEOM_IBasicOperations,
38     public virtual GEOM_IOperations_i
39 {
40  public:
41    GEOM_IBasicOperations_i (PortableServer::POA_ptr thePOA,
42                             GEOM::GEOM_Gen_ptr theEngine,
43                             ::GEOMImpl_IBasicOperations* theImpl);
44    ~GEOM_IBasicOperations_i();
45
46    GEOM::GEOM_Object_ptr MakePointXYZ (CORBA::Double theX,
47                                        CORBA::Double theY,
48                                        CORBA::Double theZ);
49
50    GEOM::GEOM_Object_ptr MakePointWithReference (GEOM::GEOM_Object_ptr theReference,
51                                                  CORBA::Double theX,
52                                                  CORBA::Double theY,
53                                                  CORBA::Double theZ);
54
55    GEOM::GEOM_Object_ptr MakePointOnCurve (GEOM::GEOM_Object_ptr theCurve,
56                                            CORBA::Double theParameter);
57
58    GEOM::GEOM_Object_ptr MakePointOnCurveByLength (GEOM::GEOM_Object_ptr theCurve,
59                                                    CORBA::Double         theLength,
60                                                    GEOM::GEOM_Object_ptr theStartPoint);
61
62    GEOM::GEOM_Object_ptr MakePointOnCurveByCoord (GEOM::GEOM_Object_ptr theCurve,
63                                                   CORBA::Double theXParameter,
64                                                   CORBA::Double theYParameter,
65                                                   CORBA::Double theZParameter);
66
67    GEOM::GEOM_Object_ptr MakePointOnSurface (GEOM::GEOM_Object_ptr theSurface,
68                                              CORBA::Double theUParameter,
69                                              CORBA::Double theVParameter);
70
71    GEOM::GEOM_Object_ptr MakePointOnSurfaceByCoord (GEOM::GEOM_Object_ptr theSurface,
72                                                     CORBA::Double theXParameter,
73                                                     CORBA::Double theYParameter,
74                                                     CORBA::Double theZParameter);
75
76    GEOM::GEOM_Object_ptr MakePointOnLinesIntersection (GEOM::GEOM_Object_ptr theLine1,
77                                                        GEOM::GEOM_Object_ptr theLine2);
78
79    GEOM::GEOM_Object_ptr MakeTangentOnCurve (GEOM::GEOM_Object_ptr theRefCurve,
80                                              CORBA::Double theParameter);
81
82    GEOM::GEOM_Object_ptr MakeVectorDXDYDZ (CORBA::Double theDX,
83                                            CORBA::Double theDY,
84                                            CORBA::Double theDZ);
85
86    GEOM::GEOM_Object_ptr MakeVectorTwoPnt (GEOM::GEOM_Object_ptr thePnt1,
87                                            GEOM::GEOM_Object_ptr thePnt2);
88
89    GEOM::GEOM_Object_ptr MakeLine (GEOM::GEOM_Object_ptr thePnt,
90                                    GEOM::GEOM_Object_ptr theDir);
91
92    GEOM::GEOM_Object_ptr MakeLineTwoPnt (GEOM::GEOM_Object_ptr thePnt1,
93                                          GEOM::GEOM_Object_ptr thePnt2);
94
95    GEOM::GEOM_Object_ptr MakeLineTwoFaces (GEOM::GEOM_Object_ptr theFace1,
96                                            GEOM::GEOM_Object_ptr theFace2);
97
98    GEOM::GEOM_Object_ptr MakePlaneThreePnt (GEOM::GEOM_Object_ptr thePnt1,
99                                             GEOM::GEOM_Object_ptr thePnt2,
100                                             GEOM::GEOM_Object_ptr thePnt3,
101                                             CORBA::Double theTrimSize);
102
103    GEOM::GEOM_Object_ptr MakePlanePntVec (GEOM::GEOM_Object_ptr thePnt,
104                                           GEOM::GEOM_Object_ptr theVec,
105                                           CORBA::Double theTrimSize);
106
107    GEOM::GEOM_Object_ptr MakePlaneFace (GEOM::GEOM_Object_ptr theFace,
108                                         CORBA::Double theTrimSize);
109                                         
110    GEOM::GEOM_Object_ptr MakePlane2Vec (GEOM::GEOM_Object_ptr theVec1,
111                                           GEOM::GEOM_Object_ptr theVec2,
112                                           CORBA::Double theTrimSize);
113                                           
114    GEOM::GEOM_Object_ptr MakePlaneLCS (GEOM::GEOM_Object_ptr theLCS,
115                                        CORBA::Double theTrimSize,
116                                        CORBA::Double theOrientation );
117
118    GEOM::GEOM_Object_ptr MakeMarker (CORBA::Double theOX , CORBA::Double theOY , CORBA::Double theOZ,
119                                      CORBA::Double theXDX, CORBA::Double theXDY, CORBA::Double theXDZ,
120                                      CORBA::Double theYDX, CORBA::Double theYDY, CORBA::Double theYDZ);
121
122    GEOM::GEOM_Object_ptr MakeMarkerFromShape (GEOM::GEOM_Object_ptr theShape);
123    
124    GEOM::GEOM_Object_ptr MakeMarkerPntTwoVec (GEOM::GEOM_Object_ptr theOrigin, GEOM::GEOM_Object_ptr theXVec, GEOM::GEOM_Object_ptr theYVec);
125
126    GEOM::GEOM_Object_ptr MakeTangentPlaneOnFace (GEOM::GEOM_Object_ptr theFace, 
127                                                  CORBA::Double theParameterU,
128                                                  CORBA::Double theParameterV,
129                                                  CORBA::Double theTrimSize);
130
131    ::GEOMImpl_IBasicOperations* GetOperations() { return (::GEOMImpl_IBasicOperations*)GetImpl(); }
132 };
133
134 #endif