]> SALOME platform Git repositories - modules/geom.git/blob - src/GEOM_I/GEOM_IShapesOperations_i.hh
Salome HOME
RNC: IMP EDF 1542: Added the functionnality MakeVertexOnCurveByLength that allows...
[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   // For old SubShapeAll()
84   // Deprecated, use MakeAllSubShapes() instead
85   GEOM::ListOfGO* MakeExplode (GEOM::GEOM_Object_ptr theShape,
86                                CORBA::Long           theShapeType,
87                                CORBA::Boolean        isSorted);
88
89   GEOM::ListOfGO* MakeAllSubShapes (GEOM::GEOM_Object_ptr theShape,
90                                     CORBA::Long           theShapeType,
91                                     CORBA::Boolean        isSorted);
92
93   // Deprecated, use GetAllSubShapesIDs() instead
94   GEOM::ListOfLong* SubShapeAllIDs (GEOM::GEOM_Object_ptr theShape,
95                                     CORBA::Long           theShapeType,
96                                     CORBA::Boolean        isSorted);
97
98   GEOM::ListOfLong* GetAllSubShapesIDs (GEOM::GEOM_Object_ptr theShape,
99                                         CORBA::Long           theShapeType,
100                                         CORBA::Boolean        isSorted);
101
102   GEOM::GEOM_Object_ptr GetSubShape (GEOM::GEOM_Object_ptr theMainShape,
103                                      CORBA::Long           theID);
104
105   CORBA::Long GetSubShapeIndex (GEOM::GEOM_Object_ptr theMainShape,
106                                 GEOM::GEOM_Object_ptr theSubShape);
107
108   CORBA::Long GetTopologyIndex (GEOM::GEOM_Object_ptr theMainShape,
109                                 GEOM::GEOM_Object_ptr theSubShape);
110
111   char* GetShapeTypeString (GEOM::GEOM_Object_ptr theShape);
112
113   CORBA::Long NumberOfFaces (GEOM::GEOM_Object_ptr theShape);
114   CORBA::Long NumberOfEdges (GEOM::GEOM_Object_ptr theShape);
115   CORBA::Long NumberOfSubShapes (GEOM::GEOM_Object_ptr theShape,
116                                  const CORBA::Long     theShapeType);
117
118   GEOM::GEOM_Object_ptr ChangeOrientation (GEOM::GEOM_Object_ptr theShape);
119
120   GEOM::ListOfLong* GetFreeFacesIDs (GEOM::GEOM_Object_ptr theShape);
121
122   GEOM::ListOfGO* GetSharedShapes (GEOM::GEOM_Object_ptr theShape1,
123                                    GEOM::GEOM_Object_ptr theShape2,
124                                    CORBA::Long           theShapeType);
125
126   GEOM::ListOfGO* GetSharedShapesMulti (const GEOM::ListOfGO& theShapes,
127                                         CORBA::Long           theShapeType);
128
129   GEOM::ListOfGO* GetShapesOnPlane (GEOM::GEOM_Object_ptr theShape,
130                                     CORBA::Long           theShapeType,
131                                     GEOM::GEOM_Object_ptr theAx1,
132                                     GEOM::shape_state     theState);
133
134   GEOM::ListOfGO* GetShapesOnPlaneWithLocation(GEOM::GEOM_Object_ptr theShape,
135                                                CORBA::Long           theShapeType,
136                                                GEOM::GEOM_Object_ptr theAx1,
137                                                GEOM::GEOM_Object_ptr thePnt,
138                                                GEOM::shape_state     theState);
139
140   GEOM::ListOfGO* GetShapesOnCylinder (GEOM::GEOM_Object_ptr theShape,
141                                        CORBA::Long           theShapeType,
142                                        GEOM::GEOM_Object_ptr theAxis,
143                                        CORBA::Double         theRadius,
144                                        GEOM::shape_state     theState);
145
146   GEOM::ListOfGO* GetShapesOnCylinderWithLocation (GEOM::GEOM_Object_ptr theShape,
147                                                    CORBA::Long           theShapeType,
148                                                    GEOM::GEOM_Object_ptr theAxis,
149                                                    GEOM::GEOM_Object_ptr thePnt,
150                                                    CORBA::Double         theRadius,
151                                                    GEOM::shape_state     theState);
152
153   GEOM::ListOfGO* GetShapesOnSphere (GEOM::GEOM_Object_ptr theShape,
154                                      CORBA::Long           theShapeType,
155                                      GEOM::GEOM_Object_ptr theCenter,
156                                      CORBA::Double         theRadius,
157                                      GEOM::shape_state     theState);
158
159   GEOM::ListOfGO* GetShapesOnQuadrangle (GEOM::GEOM_Object_ptr theShape,
160                                          CORBA::Long           theShapeType,
161                                          GEOM::GEOM_Object_ptr theTopLeftPoint,
162                                          GEOM::GEOM_Object_ptr theTopRigthPoint,
163                                          GEOM::GEOM_Object_ptr theBottomLeftPoint,
164                                          GEOM::GEOM_Object_ptr theBottomRigthPoint,
165                                          GEOM::shape_state     theState);
166
167   GEOM::ListOfLong* GetShapesOnPlaneIDs (GEOM::GEOM_Object_ptr theShape,
168                                          CORBA::Long           theShapeType,
169                                          GEOM::GEOM_Object_ptr theAx1,
170                                          GEOM::shape_state     theState);
171
172   GEOM::ListOfLong* GetShapesOnPlaneWithLocationIDs (GEOM::GEOM_Object_ptr theShape,
173                                                      CORBA::Long           theShapeType,
174                                                      GEOM::GEOM_Object_ptr theAx1,
175                                                      GEOM::GEOM_Object_ptr thePnt,
176                                                      GEOM::shape_state     theState);
177
178   GEOM::ListOfLong* GetShapesOnCylinderIDs (GEOM::GEOM_Object_ptr theShape,
179                                             CORBA::Long           theShapeType,
180                                             GEOM::GEOM_Object_ptr theAxis,
181                                             CORBA::Double         theRadius,
182                                             GEOM::shape_state     theState);
183
184   GEOM::ListOfLong* GetShapesOnCylinderWithLocationIDs (GEOM::GEOM_Object_ptr theShape,
185                                                         CORBA::Long           theShapeType,
186                                                         GEOM::GEOM_Object_ptr theAxis,
187                                                         GEOM::GEOM_Object_ptr thePnt,
188                                                         CORBA::Double         theRadius,
189                                                         GEOM::shape_state     theState);
190
191   GEOM::ListOfLong* GetShapesOnSphereIDs (GEOM::GEOM_Object_ptr theShape,
192                                           CORBA::Long           theShapeType,
193                                           GEOM::GEOM_Object_ptr theCenter,
194                                           CORBA::Double         theRadius,
195                                           GEOM::shape_state     theState);
196
197   GEOM::ListOfLong* GetShapesOnQuadrangleIDs (GEOM::GEOM_Object_ptr theShape,
198                                               CORBA::Long           theShapeType,
199                                               GEOM::GEOM_Object_ptr theTopLeftPoint,
200                                               GEOM::GEOM_Object_ptr theTopRigthPoint,
201                                               GEOM::GEOM_Object_ptr theBottomLeftPoint,
202                                               GEOM::GEOM_Object_ptr theBottomRigthPoint,
203                                               GEOM::shape_state     theState);
204
205   GEOM::ListOfGO* GetShapesOnBox (GEOM::GEOM_Object_ptr theBox,
206                                   GEOM::GEOM_Object_ptr theShape,
207                                   CORBA::Long           theShapeType,
208                                   GEOM::shape_state     theState);
209
210   GEOM::ListOfLong* GetShapesOnBoxIDs (GEOM::GEOM_Object_ptr theBox,
211                                        GEOM::GEOM_Object_ptr theShape,
212                                        CORBA::Long           theShapeType,
213                                        GEOM::shape_state     theState);
214
215   GEOM::ListOfGO* GetShapesOnShape (GEOM::GEOM_Object_ptr theSheckShape,
216                                     GEOM::GEOM_Object_ptr theShape,
217                                     CORBA::Short          theShapeType,
218                                     GEOM::shape_state     theState);
219
220   GEOM::GEOM_Object_ptr GetShapesOnShapeAsCompound
221                                    (GEOM::GEOM_Object_ptr theSheckShape,
222                                     GEOM::GEOM_Object_ptr theShape,
223                                     CORBA::Short          theShapeType,
224                                     GEOM::shape_state     theState);
225
226   GEOM::ListOfLong* GetShapesOnShapeIDs (GEOM::GEOM_Object_ptr theCheckShape,
227                                          GEOM::GEOM_Object_ptr theShape,
228                                          CORBA::Short          theShapeType,
229                                          GEOM::shape_state     theState);
230
231   GEOM::GEOM_Object_ptr GetInPlace (GEOM::GEOM_Object_ptr theShapeWhere,
232                                     GEOM::GEOM_Object_ptr theShapeWhat);
233
234   GEOM::GEOM_Object_ptr GetInPlaceByHistory (GEOM::GEOM_Object_ptr theShapeWhere,
235                                              GEOM::GEOM_Object_ptr theShapeWhat);
236
237   GEOM::GEOM_Object_ptr GetSame (GEOM::GEOM_Object_ptr theShapeWhere,
238                                  GEOM::GEOM_Object_ptr theShapeWhat);
239
240   ::GEOMImpl_IShapesOperations* GetOperations()
241   { return (::GEOMImpl_IShapesOperations*)GetImpl(); }
242 };
243
244 #endif