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