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