Salome HOME
Merging with WPdev
[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/ or email : webmaster.salome@opencascade.com
19 //
20
21 #ifndef _GEOM_IShapesOperations_i_HeaderFile
22 #define _GEOM_IShapesOperations_i_HeaderFile
23
24 #include "GEOMImpl_Gen.hxx"
25
26 #include <SALOMEconfig.h>
27
28 #include CORBA_SERVER_HEADER(GEOM_Gen)
29 #include "GEOM_IOperations_i.hh"
30 #include "GEOM_Object_i.hh"
31
32 #include "GEOMImpl_IShapesOperations.hxx"
33
34 class GEOM_I_EXPORT GEOM_IShapesOperations_i :
35     public virtual POA_GEOM::GEOM_IShapesOperations,
36     public virtual GEOM_IOperations_i
37 {
38  public:
39   GEOM_IShapesOperations_i (PortableServer::POA_ptr       thePOA,
40                             GEOM::GEOM_Gen_ptr            theEngine,
41                             ::GEOMImpl_IShapesOperations* theImpl);
42   ~GEOM_IShapesOperations_i();
43
44   GEOM::GEOM_Object_ptr MakeEdge (GEOM::GEOM_Object_ptr thePnt1,
45                                   GEOM::GEOM_Object_ptr thePnt2);
46
47   GEOM::GEOM_Object_ptr MakeWire (const GEOM::ListOfGO& theEdgesAndWires);
48
49   GEOM::GEOM_Object_ptr MakeFace (GEOM::GEOM_Object_ptr theWire,
50                                   CORBA::Boolean  isPlanarWanted);
51
52   GEOM::GEOM_Object_ptr MakeFaceWires (const GEOM::ListOfGO& theWires,
53                                        CORBA::Boolean  isPlanarWanted);
54
55   GEOM::GEOM_Object_ptr MakeShell (const GEOM::ListOfGO& theFacesAndShells);
56
57   GEOM::GEOM_Object_ptr MakeSolidShell (GEOM::GEOM_Object_ptr theShell);
58
59   GEOM::GEOM_Object_ptr MakeSolidShells (const GEOM::ListOfGO& theShells);
60
61   GEOM::GEOM_Object_ptr MakeCompound (const GEOM::ListOfGO& theShapes);
62
63   GEOM::GEOM_Object_ptr MakeGlueFaces (GEOM::GEOM_Object_ptr theShape,
64                                        CORBA::Double         theTolerance);
65
66   GEOM::ListOfGO* MakeExplode (GEOM::GEOM_Object_ptr theShape,
67                                CORBA::Long           theShapeType,
68                                CORBA::Boolean  isSorted);
69
70   GEOM::ListOfLong* SubShapeAllIDs (GEOM::GEOM_Object_ptr theShape,
71                                     CORBA::Long           theShapeType,
72                                     CORBA::Boolean  isSorted);
73
74   GEOM::GEOM_Object_ptr GetSubShape (GEOM::GEOM_Object_ptr theMainShape,
75                                      CORBA::Long           theID);
76
77   CORBA::Long GetSubShapeIndex (GEOM::GEOM_Object_ptr theMainShape,
78                                 GEOM::GEOM_Object_ptr theSubShape);
79
80   CORBA::Long GetTopologyIndex (GEOM::GEOM_Object_ptr theMainShape,
81                                 GEOM::GEOM_Object_ptr theSubShape);
82
83   char* GetShapeTypeString (GEOM::GEOM_Object_ptr theShape);
84
85   CORBA::Long NumberOfFaces (GEOM::GEOM_Object_ptr theShape);
86   CORBA::Long NumberOfEdges (GEOM::GEOM_Object_ptr theShape);
87
88   GEOM::GEOM_Object_ptr ChangeOrientation (GEOM::GEOM_Object_ptr theShape);
89
90   GEOM::ListOfLong* GetFreeFacesIDs (GEOM::GEOM_Object_ptr theShape);
91
92   GEOM::ListOfGO* GetSharedShapes (GEOM::GEOM_Object_ptr theShape1,
93                                    GEOM::GEOM_Object_ptr theShape2,
94                                    CORBA::Long           theShapeType);
95
96   GEOM::ListOfGO* GetShapesOnPlane (GEOM::GEOM_Object_ptr theShape,
97                                     CORBA::Long           theShapeType,
98                                     GEOM::GEOM_Object_ptr theAx1,
99                                     GEOM::shape_state     theState);
100
101   GEOM::ListOfGO* GetShapesOnPlaneWithLocation(GEOM::GEOM_Object_ptr theShape,
102                                                CORBA::Long           theShapeType,
103                                                GEOM::GEOM_Object_ptr theAx1,
104                                                GEOM::GEOM_Object_ptr thePnt,
105                                                GEOM::shape_state     theState);
106
107   GEOM::ListOfGO* GetShapesOnCylinder (GEOM::GEOM_Object_ptr theShape,
108                                        CORBA::Long           theShapeType,
109                                        GEOM::GEOM_Object_ptr theAxis,
110                                        CORBA::Double         theRadius,
111                                        GEOM::shape_state     theState);
112
113   GEOM::ListOfGO* GetShapesOnSphere (GEOM::GEOM_Object_ptr theShape,
114                                      CORBA::Long           theShapeType,
115                                      GEOM::GEOM_Object_ptr theCenter,
116                                      CORBA::Double         theRadius,
117                                      GEOM::shape_state     theState);
118
119   GEOM::ListOfGO* GetShapesOnQuadrangle (GEOM::GEOM_Object_ptr theShape,
120                                          CORBA::Long           theShapeType,
121                                          GEOM::GEOM_Object_ptr theTopLeftPoint,
122                                          GEOM::GEOM_Object_ptr theTopRigthPoint,
123                                          GEOM::GEOM_Object_ptr theBottomLeftPoint,
124                                          GEOM::GEOM_Object_ptr theBottomRigthPoint,
125                                          GEOM::shape_state     theState);
126
127   GEOM::ListOfLong* GetShapesOnPlaneIDs (GEOM::GEOM_Object_ptr theShape,
128                                          CORBA::Long           theShapeType,
129                                          GEOM::GEOM_Object_ptr theAx1,
130                                          GEOM::shape_state     theState);
131
132   GEOM::ListOfLong* GetShapesOnPlaneWithLocationIDs (GEOM::GEOM_Object_ptr theShape,
133                                                      CORBA::Long           theShapeType,
134                                                      GEOM::GEOM_Object_ptr theAx1,
135                                                      GEOM::GEOM_Object_ptr thePnt,
136                                                      GEOM::shape_state     theState);
137
138   GEOM::ListOfLong* GetShapesOnCylinderIDs (GEOM::GEOM_Object_ptr theShape,
139                                             CORBA::Long           theShapeType,
140                                             GEOM::GEOM_Object_ptr theAxis,
141                                             CORBA::Double         theRadius,
142                                             GEOM::shape_state     theState);
143
144   GEOM::ListOfLong* GetShapesOnSphereIDs (GEOM::GEOM_Object_ptr theShape,
145                                           CORBA::Long           theShapeType,
146                                           GEOM::GEOM_Object_ptr theCenter,
147                                           CORBA::Double         theRadius,
148                                           GEOM::shape_state     theState);
149
150   GEOM::ListOfLong* GetShapesOnQuadrangleIDs (GEOM::GEOM_Object_ptr theShape,
151                                               CORBA::Long           theShapeType,
152                                               GEOM::GEOM_Object_ptr theTopLeftPoint,
153                                               GEOM::GEOM_Object_ptr theTopRigthPoint,
154                                               GEOM::GEOM_Object_ptr theBottomLeftPoint,
155                                               GEOM::GEOM_Object_ptr theBottomRigthPoint,
156                                               GEOM::shape_state     theState);
157
158   GEOM::ListOfGO* GetShapesOnBox (GEOM::GEOM_Object_ptr theBox,
159                                   GEOM::GEOM_Object_ptr theShape,
160                                   CORBA::Long           theShapeType,
161                                   GEOM::shape_state     theState);
162
163   GEOM::ListOfLong* GetShapesOnBoxIDs (GEOM::GEOM_Object_ptr theBox,
164                                        GEOM::GEOM_Object_ptr theShape,
165                                        CORBA::Long           theShapeType,
166                                        GEOM::shape_state     theState);
167
168   GEOM::GEOM_Object_ptr GetInPlace (GEOM::GEOM_Object_ptr theShapeWhere,
169                                     GEOM::GEOM_Object_ptr theShapeWhat);
170
171   GEOM::GEOM_Object_ptr GetSame (GEOM::GEOM_Object_ptr theShapeWhere,
172                                  GEOM::GEOM_Object_ptr theShapeWhat);
173
174   ::GEOMImpl_IShapesOperations* GetOperations()
175   { return (::GEOMImpl_IShapesOperations*)GetImpl(); }
176 };
177
178 #endif