Salome HOME
Copyrights update
[modules/geom.git] / src / GEOM_I / GEOM_IShapesOperations_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/
19 //
20
21 #ifndef _GEOM_IShapesOperations_i_HeaderFile
22 #define _GEOM_IShapesOperations_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_IShapesOperations.hxx"
32
33 class GEOM_IShapesOperations_i :
34     public virtual POA_GEOM::GEOM_IShapesOperations,
35     public virtual GEOM_IOperations_i
36 {
37  public:
38   GEOM_IShapesOperations_i (PortableServer::POA_ptr       thePOA,
39                             GEOM::GEOM_Gen_ptr            theEngine,
40                             ::GEOMImpl_IShapesOperations* theImpl);
41   ~GEOM_IShapesOperations_i();
42
43   GEOM::GEOM_Object_ptr MakeEdge (GEOM::GEOM_Object_ptr thePnt1,
44                                   GEOM::GEOM_Object_ptr thePnt2);
45
46   GEOM::GEOM_Object_ptr MakeWire (const GEOM::ListOfGO& theEdgesAndWires);
47
48   GEOM::GEOM_Object_ptr MakeFace (GEOM::GEOM_Object_ptr theWire,
49                                   CORBA::Boolean  isPlanarWanted);
50
51   GEOM::GEOM_Object_ptr MakeFaceWires (const GEOM::ListOfGO& theWires,
52                                        CORBA::Boolean  isPlanarWanted);
53
54   GEOM::GEOM_Object_ptr MakeShell (const GEOM::ListOfGO& theFacesAndShells);
55
56   GEOM::GEOM_Object_ptr MakeSolidShell (GEOM::GEOM_Object_ptr theShell);
57
58   GEOM::GEOM_Object_ptr MakeSolidShells (const GEOM::ListOfGO& theShells);
59
60   GEOM::GEOM_Object_ptr MakeCompound (const GEOM::ListOfGO& theShapes);
61
62   GEOM::GEOM_Object_ptr MakeGlueFaces (GEOM::GEOM_Object_ptr theShape,
63                                        CORBA::Double         theTolerance);
64
65   GEOM::ListOfGO* MakeExplode (GEOM::GEOM_Object_ptr theShape,
66                                CORBA::Long           theShapeType,
67                                CORBA::Boolean  isSorted);
68
69   GEOM::ListOfLong* SubShapeAllIDs (GEOM::GEOM_Object_ptr theShape,
70                                     CORBA::Long           theShapeType,
71                                     CORBA::Boolean  isSorted);
72
73   GEOM::GEOM_Object_ptr GetSubShape (GEOM::GEOM_Object_ptr theMainShape,
74                                      CORBA::Long           theID);
75
76   CORBA::Long NumberOfFaces (GEOM::GEOM_Object_ptr theShape);
77   CORBA::Long NumberOfEdges (GEOM::GEOM_Object_ptr theShape);
78
79   GEOM::GEOM_Object_ptr ChangeOrientation (GEOM::GEOM_Object_ptr theShape);
80
81   GEOM::ListOfLong* GetFreeFacesIDs (GEOM::GEOM_Object_ptr theShape);
82
83   GEOM::ListOfGO* GetSharedShapes (GEOM::GEOM_Object_ptr theShape1,
84                                    GEOM::GEOM_Object_ptr theShape2,
85                                    CORBA::Long           theShapeType);
86
87   GEOM::ListOfGO* GetShapesOnPlane (GEOM::GEOM_Object_ptr theShape,
88                                     CORBA::Long           theShapeType,
89                                     GEOM::GEOM_Object_ptr theAx1,
90                                     GEOM::shape_state     theState);
91
92   GEOM::ListOfGO* GetShapesOnCylinder (GEOM::GEOM_Object_ptr theShape,
93                                        CORBA::Long           theShapeType,
94                                        GEOM::GEOM_Object_ptr theAxis,
95                                        CORBA::Double         theRadius,
96                                        GEOM::shape_state     theState);
97
98   GEOM::ListOfGO* GetShapesOnSphere (GEOM::GEOM_Object_ptr theShape,
99                                      CORBA::Long           theShapeType,
100                                      GEOM::GEOM_Object_ptr theCenter,
101                                      CORBA::Double         theRadius,
102                                      GEOM::shape_state     theState);
103
104   GEOM::ListOfGO* GetShapesOnQuadrangle (GEOM::GEOM_Object_ptr theShape,
105                                          CORBA::Long           theShapeType,
106                                          GEOM::GEOM_Object_ptr theTopLeftPoint,
107                                          GEOM::GEOM_Object_ptr theTopRigthPoint,
108                                          GEOM::GEOM_Object_ptr theBottomLeftPoint,
109                                          GEOM::GEOM_Object_ptr theBottomRigthPoint,
110                                          GEOM::shape_state     theState);
111
112   GEOM::ListOfLong* GetShapesOnPlaneIDs (GEOM::GEOM_Object_ptr theShape,
113                                          CORBA::Long           theShapeType,
114                                          GEOM::GEOM_Object_ptr theAx1,
115                                          GEOM::shape_state     theState);
116
117   GEOM::ListOfLong* GetShapesOnCylinderIDs (GEOM::GEOM_Object_ptr theShape,
118                                             CORBA::Long           theShapeType,
119                                             GEOM::GEOM_Object_ptr theAxis,
120                                             CORBA::Double         theRadius,
121                                             GEOM::shape_state     theState);
122
123   GEOM::ListOfLong* GetShapesOnSphereIDs (GEOM::GEOM_Object_ptr theShape,
124                                           CORBA::Long           theShapeType,
125                                           GEOM::GEOM_Object_ptr theCenter,
126                                           CORBA::Double         theRadius,
127                                           GEOM::shape_state     theState);
128
129   GEOM::ListOfLong* GetShapesOnQuadrangleIDs (GEOM::GEOM_Object_ptr theShape,
130                                               CORBA::Long           theShapeType,
131                                               GEOM::GEOM_Object_ptr theTopLeftPoint,
132                                               GEOM::GEOM_Object_ptr theTopRigthPoint,
133                                               GEOM::GEOM_Object_ptr theBottomLeftPoint,
134                                               GEOM::GEOM_Object_ptr theBottomRigthPoint,
135                                               GEOM::shape_state     theState);
136
137   GEOM::GEOM_Object_ptr GetInPlace (GEOM::GEOM_Object_ptr theShapeWhere,
138                                     GEOM::GEOM_Object_ptr theShapeWhat);
139
140   ::GEOMImpl_IShapesOperations* GetOperations()
141   { return (::GEOMImpl_IShapesOperations*)GetImpl(); }
142 };
143
144 #endif