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