Salome HOME
Join modifications from branch BR_DEBUG_3_2_0b1
[modules/geom.git] / src / GEOM_I / GEOM_IBasicOperations_i.hh
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 _GEOM_IBasicOperations_i_HeaderFile
22 #define _GEOM_IBasicOperations_i_HeaderFile
23
24
25 #include <SALOMEconfig.h>
26
27 #include CORBA_SERVER_HEADER(GEOM_Gen)
28 #include "GEOM_IOperations_i.hh"
29 #include "GEOM_Object_i.hh"
30
31 #include "GEOMImpl_IBasicOperations.hxx"
32
33 class GEOM_IBasicOperations_i :
34     public virtual POA_GEOM::GEOM_IBasicOperations,
35     public virtual GEOM_IOperations_i
36 {
37  public:
38    GEOM_IBasicOperations_i (PortableServer::POA_ptr thePOA,
39                             GEOM::GEOM_Gen_ptr theEngine,
40                             ::GEOMImpl_IBasicOperations* theImpl);
41    ~GEOM_IBasicOperations_i();
42
43    GEOM::GEOM_Object_ptr MakePointXYZ (CORBA::Double theX,
44                                        CORBA::Double theY,
45                                        CORBA::Double theZ);
46
47    GEOM::GEOM_Object_ptr MakePointWithReference (GEOM::GEOM_Object_ptr theReference,
48                                                  CORBA::Double theX,
49                                                  CORBA::Double theY,
50                                                  CORBA::Double theZ);
51
52    GEOM::GEOM_Object_ptr MakePointOnCurve (GEOM::GEOM_Object_ptr theCurve,
53                                            CORBA::Double theParameter);
54
55    GEOM::GEOM_Object_ptr MakeTangentOnCurve (GEOM::GEOM_Object_ptr theRefCurve,
56                                              CORBA::Double theParameter);
57
58    GEOM::GEOM_Object_ptr MakeVectorDXDYDZ (CORBA::Double theDX,
59                                            CORBA::Double theDY,
60                                            CORBA::Double theDZ);
61
62    GEOM::GEOM_Object_ptr MakeVectorTwoPnt (GEOM::GEOM_Object_ptr thePnt1,
63                                            GEOM::GEOM_Object_ptr thePnt2);
64
65    GEOM::GEOM_Object_ptr MakeLine (GEOM::GEOM_Object_ptr thePnt,
66                                    GEOM::GEOM_Object_ptr theDir);
67
68    GEOM::GEOM_Object_ptr MakeLineTwoPnt (GEOM::GEOM_Object_ptr thePnt1,
69                                          GEOM::GEOM_Object_ptr thePnt2);
70
71    GEOM::GEOM_Object_ptr MakePlaneThreePnt (GEOM::GEOM_Object_ptr thePnt1,
72                                             GEOM::GEOM_Object_ptr thePnt2,
73                                             GEOM::GEOM_Object_ptr thePnt3,
74                                             CORBA::Double theTrimSize);
75
76    GEOM::GEOM_Object_ptr MakePlanePntVec (GEOM::GEOM_Object_ptr thePnt,
77                                           GEOM::GEOM_Object_ptr theVec,
78                                           CORBA::Double theTrimSize);
79
80    GEOM::GEOM_Object_ptr MakePlaneFace (GEOM::GEOM_Object_ptr theFace,
81                                         CORBA::Double theTrimSize);
82
83    GEOM::GEOM_Object_ptr MakeMarker (CORBA::Double theOX , CORBA::Double theOY , CORBA::Double theOZ,
84                                      CORBA::Double theXDX, CORBA::Double theXDY, CORBA::Double theXDZ,
85                                      CORBA::Double theYDX, CORBA::Double theYDY, CORBA::Double theYDZ);
86
87    GEOM::GEOM_Object_ptr MakeTangentPlaneOnFace (GEOM::GEOM_Object_ptr theFace, 
88                                                  CORBA::Double theParameterU,
89                                                  CORBA::Double theParameterV,
90                                                  CORBA::Double theTrimSize);
91
92    ::GEOMImpl_IBasicOperations* GetOperations() { return (::GEOMImpl_IBasicOperations*)GetImpl(); }
93 };
94
95 #endif