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