]> SALOME platform Git repositories - modules/geom.git/blob - src/GEOM_I/GEOM_IShapesOperations_i.hh
Salome HOME
Mantis issue 0021071: Regression in GetInPlace. A fix by PKV on Partition error.
[modules/geom.git] / src / GEOM_I / GEOM_IShapesOperations_i.hh
1 //  Copyright (C) 2007-2010  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_IShapesOperations_i_HeaderFile
23 #define _GEOM_IShapesOperations_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_IShapesOperations.hxx"
34
35 class GEOM_I_EXPORT GEOM_IShapesOperations_i :
36     public virtual POA_GEOM::GEOM_IShapesOperations,
37     public virtual GEOM_IOperations_i
38 {
39  public:
40   GEOM_IShapesOperations_i (PortableServer::POA_ptr       thePOA,
41                             GEOM::GEOM_Gen_ptr            theEngine,
42                             ::GEOMImpl_IShapesOperations* theImpl);
43   ~GEOM_IShapesOperations_i();
44
45   GEOM::GEOM_Object_ptr MakeEdge (GEOM::GEOM_Object_ptr thePnt1,
46                                   GEOM::GEOM_Object_ptr thePnt2);
47   GEOM::GEOM_Object_ptr MakeEdgeWire (GEOM::GEOM_Object_ptr theWire,
48                                       const CORBA::Double theLinearTolerance,
49                                       const CORBA::Double theAngularTolerance);
50
51   GEOM::GEOM_Object_ptr MakeWire (const GEOM::ListOfGO& theEdgesAndWires,
52                                   const CORBA::Double   theTolerance);
53
54   GEOM::GEOM_Object_ptr MakeFace (GEOM::GEOM_Object_ptr theWire,
55                                   CORBA::Boolean  isPlanarWanted);
56
57   GEOM::GEOM_Object_ptr MakeFaceWires (const GEOM::ListOfGO& theWires,
58                                        CORBA::Boolean  isPlanarWanted);
59
60   GEOM::GEOM_Object_ptr MakeShell (const GEOM::ListOfGO& theFacesAndShells);
61
62   GEOM::GEOM_Object_ptr MakeSolidShell (GEOM::GEOM_Object_ptr theShell);
63
64   GEOM::GEOM_Object_ptr MakeSolidShells (const GEOM::ListOfGO& theShells);
65
66   GEOM::GEOM_Object_ptr MakeCompound (const GEOM::ListOfGO& theShapes);
67
68   GEOM::GEOM_Object_ptr MakeGlueFaces (GEOM::GEOM_Object_ptr theShape,
69                                        CORBA::Double         theTolerance,
70                                        CORBA::Boolean        doKeepNonSolids);
71
72   GEOM::ListOfGO* GetGlueFaces (GEOM::GEOM_Object_ptr theShape,
73                                 CORBA::Double         theTolerance);
74
75   GEOM::GEOM_Object_ptr MakeGlueFacesByList (GEOM::GEOM_Object_ptr theShape,
76                                              CORBA::Double         theTolerance,
77                                              const GEOM::ListOfGO& theFaces,
78                                              CORBA::Boolean  doKeepNonSolids);
79
80   GEOM::ListOfGO* GetExistingSubObjects (GEOM::GEOM_Object_ptr theShape,
81                                          CORBA::Boolean        theGroupsOnly);
82
83   GEOM::ListOfGO* MakeExplode (GEOM::GEOM_Object_ptr theShape,
84                                CORBA::Long           theShapeType,
85                                CORBA::Boolean  isSorted);
86
87   GEOM::ListOfLong* SubShapeAllIDs (GEOM::GEOM_Object_ptr theShape,
88                                     CORBA::Long           theShapeType,
89                                     CORBA::Boolean  isSorted);
90
91   GEOM::GEOM_Object_ptr GetSubShape (GEOM::GEOM_Object_ptr theMainShape,
92                                      CORBA::Long           theID);
93
94   CORBA::Long GetSubShapeIndex (GEOM::GEOM_Object_ptr theMainShape,
95                                 GEOM::GEOM_Object_ptr theSubShape);
96
97   CORBA::Long GetTopologyIndex (GEOM::GEOM_Object_ptr theMainShape,
98                                 GEOM::GEOM_Object_ptr theSubShape);
99
100   char* GetShapeTypeString (GEOM::GEOM_Object_ptr theShape);
101
102   CORBA::Long NumberOfFaces (GEOM::GEOM_Object_ptr theShape);
103   CORBA::Long NumberOfEdges (GEOM::GEOM_Object_ptr theShape);
104   CORBA::Long NumberOfSubShapes (GEOM::GEOM_Object_ptr theShape,
105                                  const CORBA::Long     theShapeType);
106
107   GEOM::GEOM_Object_ptr ChangeOrientation (GEOM::GEOM_Object_ptr theShape);
108
109   GEOM::ListOfLong* GetFreeFacesIDs (GEOM::GEOM_Object_ptr theShape);
110
111   GEOM::ListOfGO* GetSharedShapes (GEOM::GEOM_Object_ptr theShape1,
112                                    GEOM::GEOM_Object_ptr theShape2,
113                                    CORBA::Long           theShapeType);
114
115   GEOM::ListOfGO* GetShapesOnPlane (GEOM::GEOM_Object_ptr theShape,
116                                     CORBA::Long           theShapeType,
117                                     GEOM::GEOM_Object_ptr theAx1,
118                                     GEOM::shape_state     theState);
119
120   GEOM::ListOfGO* GetShapesOnPlaneWithLocation(GEOM::GEOM_Object_ptr theShape,
121                                                CORBA::Long           theShapeType,
122                                                GEOM::GEOM_Object_ptr theAx1,
123                                                GEOM::GEOM_Object_ptr thePnt,
124                                                GEOM::shape_state     theState);
125
126   GEOM::ListOfGO* GetShapesOnCylinder (GEOM::GEOM_Object_ptr theShape,
127                                        CORBA::Long           theShapeType,
128                                        GEOM::GEOM_Object_ptr theAxis,
129                                        CORBA::Double         theRadius,
130                                        GEOM::shape_state     theState);
131
132   GEOM::ListOfGO* GetShapesOnCylinderWithLocation (GEOM::GEOM_Object_ptr theShape,
133                                                    CORBA::Long           theShapeType,
134                                                    GEOM::GEOM_Object_ptr theAxis,
135                                                    GEOM::GEOM_Object_ptr thePnt,
136                                                    CORBA::Double         theRadius,
137                                                    GEOM::shape_state     theState);
138
139   GEOM::ListOfGO* GetShapesOnSphere (GEOM::GEOM_Object_ptr theShape,
140                                      CORBA::Long           theShapeType,
141                                      GEOM::GEOM_Object_ptr theCenter,
142                                      CORBA::Double         theRadius,
143                                      GEOM::shape_state     theState);
144
145   GEOM::ListOfGO* GetShapesOnQuadrangle (GEOM::GEOM_Object_ptr theShape,
146                                          CORBA::Long           theShapeType,
147                                          GEOM::GEOM_Object_ptr theTopLeftPoint,
148                                          GEOM::GEOM_Object_ptr theTopRigthPoint,
149                                          GEOM::GEOM_Object_ptr theBottomLeftPoint,
150                                          GEOM::GEOM_Object_ptr theBottomRigthPoint,
151                                          GEOM::shape_state     theState);
152
153   GEOM::ListOfLong* GetShapesOnPlaneIDs (GEOM::GEOM_Object_ptr theShape,
154                                          CORBA::Long           theShapeType,
155                                          GEOM::GEOM_Object_ptr theAx1,
156                                          GEOM::shape_state     theState);
157
158   GEOM::ListOfLong* GetShapesOnPlaneWithLocationIDs (GEOM::GEOM_Object_ptr theShape,
159                                                      CORBA::Long           theShapeType,
160                                                      GEOM::GEOM_Object_ptr theAx1,
161                                                      GEOM::GEOM_Object_ptr thePnt,
162                                                      GEOM::shape_state     theState);
163
164   GEOM::ListOfLong* GetShapesOnCylinderIDs (GEOM::GEOM_Object_ptr theShape,
165                                             CORBA::Long           theShapeType,
166                                             GEOM::GEOM_Object_ptr theAxis,
167                                             CORBA::Double         theRadius,
168                                             GEOM::shape_state     theState);
169
170   GEOM::ListOfLong* GetShapesOnCylinderWithLocationIDs (GEOM::GEOM_Object_ptr theShape,
171                                                         CORBA::Long           theShapeType,
172                                                         GEOM::GEOM_Object_ptr theAxis,
173                                                         GEOM::GEOM_Object_ptr thePnt,
174                                                         CORBA::Double         theRadius,
175                                                         GEOM::shape_state     theState);
176
177   GEOM::ListOfLong* GetShapesOnSphereIDs (GEOM::GEOM_Object_ptr theShape,
178                                           CORBA::Long           theShapeType,
179                                           GEOM::GEOM_Object_ptr theCenter,
180                                           CORBA::Double         theRadius,
181                                           GEOM::shape_state     theState);
182
183   GEOM::ListOfLong* GetShapesOnQuadrangleIDs (GEOM::GEOM_Object_ptr theShape,
184                                               CORBA::Long           theShapeType,
185                                               GEOM::GEOM_Object_ptr theTopLeftPoint,
186                                               GEOM::GEOM_Object_ptr theTopRigthPoint,
187                                               GEOM::GEOM_Object_ptr theBottomLeftPoint,
188                                               GEOM::GEOM_Object_ptr theBottomRigthPoint,
189                                               GEOM::shape_state     theState);
190
191   GEOM::ListOfGO* GetShapesOnBox (GEOM::GEOM_Object_ptr theBox,
192                                   GEOM::GEOM_Object_ptr theShape,
193                                   CORBA::Long           theShapeType,
194                                   GEOM::shape_state     theState);
195
196   GEOM::ListOfLong* GetShapesOnBoxIDs (GEOM::GEOM_Object_ptr theBox,
197                                        GEOM::GEOM_Object_ptr theShape,
198                                        CORBA::Long           theShapeType,
199                                        GEOM::shape_state     theState);
200
201   GEOM::ListOfGO* GetShapesOnShape (GEOM::GEOM_Object_ptr theSheckShape,
202                                     GEOM::GEOM_Object_ptr theShape,
203                                     CORBA::Short          theShapeType,
204                                     GEOM::shape_state     theState);
205
206   GEOM::GEOM_Object_ptr GetShapesOnShapeAsCompound
207                                    (GEOM::GEOM_Object_ptr theSheckShape,
208                                     GEOM::GEOM_Object_ptr theShape,
209                                     CORBA::Short          theShapeType,
210                                     GEOM::shape_state     theState);
211
212   GEOM::ListOfLong* GetShapesOnShapeIDs (GEOM::GEOM_Object_ptr theCheckShape,
213                                          GEOM::GEOM_Object_ptr theShape,
214                                          CORBA::Short          theShapeType,
215                                          GEOM::shape_state     theState);
216
217   GEOM::GEOM_Object_ptr GetInPlace (GEOM::GEOM_Object_ptr theShapeWhere,
218                                     GEOM::GEOM_Object_ptr theShapeWhat);
219
220   GEOM::GEOM_Object_ptr GetInPlaceByHistory (GEOM::GEOM_Object_ptr theShapeWhere,
221                                              GEOM::GEOM_Object_ptr theShapeWhat);
222
223   GEOM::GEOM_Object_ptr GetSame (GEOM::GEOM_Object_ptr theShapeWhere,
224                                  GEOM::GEOM_Object_ptr theShapeWhat);
225
226   ::GEOMImpl_IShapesOperations* GetOperations()
227   { return (::GEOMImpl_IShapesOperations*)GetImpl(); }
228 };
229
230 #endif