]> SALOME platform Git repositories - modules/geom.git/blob - src/GEOM_I/GEOM_IShapesOperations_i.hh
Salome HOME
Left only solids after Multi Transformation.
[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
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                                        const CORBA::Boolean  doKeepNonSolids);
65
66   GEOM::ListOfGO* GetGlueFaces (GEOM::GEOM_Object_ptr theShape,
67                                 CORBA::Double         theTolerance);
68
69   GEOM::GEOM_Object_ptr MakeGlueFacesByList (GEOM::GEOM_Object_ptr theShape,
70                                              CORBA::Double         theTolerance,
71                                              const GEOM::ListOfGO& theFaces,
72                                              const CORBA::Boolean  doKeepNonSolids);
73
74   GEOM::ListOfGO* MakeExplode (GEOM::GEOM_Object_ptr theShape,
75                                CORBA::Long           theShapeType,
76                                CORBA::Boolean  isSorted);
77
78   GEOM::ListOfLong* SubShapeAllIDs (GEOM::GEOM_Object_ptr theShape,
79                                     CORBA::Long           theShapeType,
80                                     CORBA::Boolean  isSorted);
81
82   GEOM::GEOM_Object_ptr GetSubShape (GEOM::GEOM_Object_ptr theMainShape,
83                                      CORBA::Long           theID);
84
85   CORBA::Long GetSubShapeIndex (GEOM::GEOM_Object_ptr theMainShape,
86                                 GEOM::GEOM_Object_ptr theSubShape);
87
88   CORBA::Long GetTopologyIndex (GEOM::GEOM_Object_ptr theMainShape,
89                                 GEOM::GEOM_Object_ptr theSubShape);
90
91   char* GetShapeTypeString (GEOM::GEOM_Object_ptr theShape);
92
93   CORBA::Long NumberOfFaces (GEOM::GEOM_Object_ptr theShape);
94   CORBA::Long NumberOfEdges (GEOM::GEOM_Object_ptr theShape);
95
96   GEOM::GEOM_Object_ptr ChangeOrientation (GEOM::GEOM_Object_ptr theShape);
97
98   GEOM::ListOfLong* GetFreeFacesIDs (GEOM::GEOM_Object_ptr theShape);
99
100   GEOM::ListOfGO* GetSharedShapes (GEOM::GEOM_Object_ptr theShape1,
101                                    GEOM::GEOM_Object_ptr theShape2,
102                                    CORBA::Long           theShapeType);
103
104   GEOM::ListOfGO* GetShapesOnPlane (GEOM::GEOM_Object_ptr theShape,
105                                     CORBA::Long           theShapeType,
106                                     GEOM::GEOM_Object_ptr theAx1,
107                                     GEOM::shape_state     theState);
108
109   GEOM::ListOfGO* GetShapesOnPlaneWithLocation(GEOM::GEOM_Object_ptr theShape,
110                                                CORBA::Long           theShapeType,
111                                                GEOM::GEOM_Object_ptr theAx1,
112                                                GEOM::GEOM_Object_ptr thePnt,
113                                                GEOM::shape_state     theState);
114
115   GEOM::ListOfGO* GetShapesOnCylinder (GEOM::GEOM_Object_ptr theShape,
116                                        CORBA::Long           theShapeType,
117                                        GEOM::GEOM_Object_ptr theAxis,
118                                        CORBA::Double         theRadius,
119                                        GEOM::shape_state     theState);
120
121   GEOM::ListOfGO* GetShapesOnSphere (GEOM::GEOM_Object_ptr theShape,
122                                      CORBA::Long           theShapeType,
123                                      GEOM::GEOM_Object_ptr theCenter,
124                                      CORBA::Double         theRadius,
125                                      GEOM::shape_state     theState);
126
127   GEOM::ListOfGO* GetShapesOnQuadrangle (GEOM::GEOM_Object_ptr theShape,
128                                          CORBA::Long           theShapeType,
129                                          GEOM::GEOM_Object_ptr theTopLeftPoint,
130                                          GEOM::GEOM_Object_ptr theTopRigthPoint,
131                                          GEOM::GEOM_Object_ptr theBottomLeftPoint,
132                                          GEOM::GEOM_Object_ptr theBottomRigthPoint,
133                                          GEOM::shape_state     theState);
134
135   GEOM::ListOfLong* GetShapesOnPlaneIDs (GEOM::GEOM_Object_ptr theShape,
136                                          CORBA::Long           theShapeType,
137                                          GEOM::GEOM_Object_ptr theAx1,
138                                          GEOM::shape_state     theState);
139
140   GEOM::ListOfLong* GetShapesOnPlaneWithLocationIDs (GEOM::GEOM_Object_ptr theShape,
141                                                      CORBA::Long           theShapeType,
142                                                      GEOM::GEOM_Object_ptr theAx1,
143                                                      GEOM::GEOM_Object_ptr thePnt,
144                                                      GEOM::shape_state     theState);
145
146   GEOM::ListOfLong* GetShapesOnCylinderIDs (GEOM::GEOM_Object_ptr theShape,
147                                             CORBA::Long           theShapeType,
148                                             GEOM::GEOM_Object_ptr theAxis,
149                                             CORBA::Double         theRadius,
150                                             GEOM::shape_state     theState);
151
152   GEOM::ListOfLong* GetShapesOnSphereIDs (GEOM::GEOM_Object_ptr theShape,
153                                           CORBA::Long           theShapeType,
154                                           GEOM::GEOM_Object_ptr theCenter,
155                                           CORBA::Double         theRadius,
156                                           GEOM::shape_state     theState);
157
158   GEOM::ListOfLong* GetShapesOnQuadrangleIDs (GEOM::GEOM_Object_ptr theShape,
159                                               CORBA::Long           theShapeType,
160                                               GEOM::GEOM_Object_ptr theTopLeftPoint,
161                                               GEOM::GEOM_Object_ptr theTopRigthPoint,
162                                               GEOM::GEOM_Object_ptr theBottomLeftPoint,
163                                               GEOM::GEOM_Object_ptr theBottomRigthPoint,
164                                               GEOM::shape_state     theState);
165
166   GEOM::ListOfGO* GetShapesOnBox (GEOM::GEOM_Object_ptr theBox,
167                                   GEOM::GEOM_Object_ptr theShape,
168                                   CORBA::Long           theShapeType,
169                                   GEOM::shape_state     theState);
170
171   GEOM::ListOfLong* GetShapesOnBoxIDs (GEOM::GEOM_Object_ptr theBox,
172                                        GEOM::GEOM_Object_ptr theShape,
173                                        CORBA::Long           theShapeType,
174                                        GEOM::shape_state     theState);
175
176   GEOM::GEOM_Object_ptr GetInPlace (GEOM::GEOM_Object_ptr theShapeWhere,
177                                     GEOM::GEOM_Object_ptr theShapeWhat);
178
179   GEOM::GEOM_Object_ptr GetSame (GEOM::GEOM_Object_ptr theShapeWhere,
180                                  GEOM::GEOM_Object_ptr theShapeWhat);
181
182   ::GEOMImpl_IShapesOperations* GetOperations()
183   { return (::GEOMImpl_IShapesOperations*)GetImpl(); }
184 };
185
186 #endif