Salome HOME
Changes for bug NPAL14533 (improvement GetShapesOnShape())
[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                                            CORBA::Boolean  doKeepNonSolids);
66
67   GEOM::ListOfGO* GetGlueFaces (GEOM::GEOM_Object_ptr theShape,
68                                 CORBA::Double         theTolerance);
69
70   GEOM::GEOM_Object_ptr MakeGlueFacesByList (GEOM::GEOM_Object_ptr theShape,
71                                              CORBA::Double         theTolerance,
72                                              const GEOM::ListOfGO& theFaces,
73                                                  CORBA::Boolean  doKeepNonSolids);
74
75
76   GEOM::ListOfGO* MakeExplode (GEOM::GEOM_Object_ptr theShape,
77                                CORBA::Long           theShapeType,
78                                CORBA::Boolean  isSorted);
79
80   GEOM::ListOfLong* SubShapeAllIDs (GEOM::GEOM_Object_ptr theShape,
81                                     CORBA::Long           theShapeType,
82                                     CORBA::Boolean  isSorted);
83
84   GEOM::GEOM_Object_ptr GetSubShape (GEOM::GEOM_Object_ptr theMainShape,
85                                      CORBA::Long           theID);
86
87   CORBA::Long GetSubShapeIndex (GEOM::GEOM_Object_ptr theMainShape,
88                                 GEOM::GEOM_Object_ptr theSubShape);
89
90   CORBA::Long GetTopologyIndex (GEOM::GEOM_Object_ptr theMainShape,
91                                 GEOM::GEOM_Object_ptr theSubShape);
92
93   char* GetShapeTypeString (GEOM::GEOM_Object_ptr theShape);
94
95   CORBA::Long NumberOfFaces (GEOM::GEOM_Object_ptr theShape);
96   CORBA::Long NumberOfEdges (GEOM::GEOM_Object_ptr theShape);
97
98   GEOM::GEOM_Object_ptr ChangeOrientation (GEOM::GEOM_Object_ptr theShape);
99
100   GEOM::ListOfLong* GetFreeFacesIDs (GEOM::GEOM_Object_ptr theShape);
101
102   GEOM::ListOfGO* GetSharedShapes (GEOM::GEOM_Object_ptr theShape1,
103                                    GEOM::GEOM_Object_ptr theShape2,
104                                    CORBA::Long           theShapeType);
105
106   GEOM::ListOfGO* GetShapesOnPlane (GEOM::GEOM_Object_ptr theShape,
107                                     CORBA::Long           theShapeType,
108                                     GEOM::GEOM_Object_ptr theAx1,
109                                     GEOM::shape_state     theState);
110
111   GEOM::ListOfGO* GetShapesOnPlaneWithLocation(GEOM::GEOM_Object_ptr theShape,
112                                                CORBA::Long           theShapeType,
113                                                GEOM::GEOM_Object_ptr theAx1,
114                                                GEOM::GEOM_Object_ptr thePnt,
115                                                GEOM::shape_state     theState);
116
117   GEOM::ListOfGO* GetShapesOnCylinder (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::ListOfGO* GetShapesOnSphere (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::ListOfGO* GetShapesOnQuadrangle (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::ListOfLong* GetShapesOnPlaneIDs (GEOM::GEOM_Object_ptr theShape,
138                                          CORBA::Long           theShapeType,
139                                          GEOM::GEOM_Object_ptr theAx1,
140                                          GEOM::shape_state     theState);
141
142   GEOM::ListOfLong* GetShapesOnPlaneWithLocationIDs (GEOM::GEOM_Object_ptr theShape,
143                                                      CORBA::Long           theShapeType,
144                                                      GEOM::GEOM_Object_ptr theAx1,
145                                                      GEOM::GEOM_Object_ptr thePnt,
146                                                      GEOM::shape_state     theState);
147
148   GEOM::ListOfLong* GetShapesOnCylinderIDs (GEOM::GEOM_Object_ptr theShape,
149                                             CORBA::Long           theShapeType,
150                                             GEOM::GEOM_Object_ptr theAxis,
151                                             CORBA::Double         theRadius,
152                                             GEOM::shape_state     theState);
153
154   GEOM::ListOfLong* GetShapesOnSphereIDs (GEOM::GEOM_Object_ptr theShape,
155                                           CORBA::Long           theShapeType,
156                                           GEOM::GEOM_Object_ptr theCenter,
157                                           CORBA::Double         theRadius,
158                                           GEOM::shape_state     theState);
159
160   GEOM::ListOfLong* GetShapesOnQuadrangleIDs (GEOM::GEOM_Object_ptr theShape,
161                                               CORBA::Long           theShapeType,
162                                               GEOM::GEOM_Object_ptr theTopLeftPoint,
163                                               GEOM::GEOM_Object_ptr theTopRigthPoint,
164                                               GEOM::GEOM_Object_ptr theBottomLeftPoint,
165                                               GEOM::GEOM_Object_ptr theBottomRigthPoint,
166                                               GEOM::shape_state     theState);
167
168   GEOM::ListOfGO* GetShapesOnBox (GEOM::GEOM_Object_ptr theBox,
169                                   GEOM::GEOM_Object_ptr theShape,
170                                   CORBA::Long           theShapeType,
171                                   GEOM::shape_state     theState);
172
173   GEOM::ListOfLong* GetShapesOnBoxIDs (GEOM::GEOM_Object_ptr theBox,
174                                        GEOM::GEOM_Object_ptr theShape,
175                                        CORBA::Long           theShapeType,
176                                        GEOM::shape_state     theState);
177
178   GEOM::ListOfGO* GetShapesOnShape (GEOM::GEOM_Object_ptr theSheckShape,
179                                     GEOM::GEOM_Object_ptr theShape,
180                                     CORBA::Short          theShapeType,
181                                     GEOM::shape_state     theState);
182
183   GEOM::GEOM_Object_ptr GetShapesOnShapeAsCompound
184                                    (GEOM::GEOM_Object_ptr theSheckShape,
185                                     GEOM::GEOM_Object_ptr theShape,
186                                     CORBA::Short          theShapeType,
187                                     GEOM::shape_state     theState);
188
189   GEOM::ListOfLong* GetShapesOnShapeIDs (GEOM::GEOM_Object_ptr theCheckShape,
190                                          GEOM::GEOM_Object_ptr theShape,
191                                          CORBA::Short          theShapeType,
192                                          GEOM::shape_state     theState);
193
194   GEOM::GEOM_Object_ptr GetInPlace (GEOM::GEOM_Object_ptr theShapeWhere,
195                                     GEOM::GEOM_Object_ptr theShapeWhat);
196
197   GEOM::GEOM_Object_ptr GetInPlaceByHistory (GEOM::GEOM_Object_ptr theShapeWhere,
198                                              GEOM::GEOM_Object_ptr theShapeWhat);
199
200   GEOM::GEOM_Object_ptr GetSame (GEOM::GEOM_Object_ptr theShapeWhere,
201                                  GEOM::GEOM_Object_ptr theShapeWhat);
202
203   ::GEOMImpl_IShapesOperations* GetOperations()
204   { return (::GEOMImpl_IShapesOperations*)GetImpl(); }
205 };
206
207 #endif