1 // Copyright (C) 2005 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
2 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
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.
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.
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
18 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 #ifndef _GEOM_IShapesOperations_i_HeaderFile
22 #define _GEOM_IShapesOperations_i_HeaderFile
24 #include "GEOMImpl_Gen.hxx"
26 #include <SALOMEconfig.h>
28 #include CORBA_SERVER_HEADER(GEOM_Gen)
29 #include "GEOM_IOperations_i.hh"
30 #include "GEOM_Object_i.hh"
32 #include "GEOMImpl_IShapesOperations.hxx"
34 class GEOM_I_EXPORT GEOM_IShapesOperations_i :
35 public virtual POA_GEOM::GEOM_IShapesOperations,
36 public virtual GEOM_IOperations_i
39 GEOM_IShapesOperations_i (PortableServer::POA_ptr thePOA,
40 GEOM::GEOM_Gen_ptr theEngine,
41 ::GEOMImpl_IShapesOperations* theImpl);
42 ~GEOM_IShapesOperations_i();
44 GEOM::GEOM_Object_ptr MakeEdge (GEOM::GEOM_Object_ptr thePnt1,
45 GEOM::GEOM_Object_ptr thePnt2);
47 GEOM::GEOM_Object_ptr MakeWire (const GEOM::ListOfGO& theEdgesAndWires);
49 GEOM::GEOM_Object_ptr MakeFace (GEOM::GEOM_Object_ptr theWire,
50 CORBA::Boolean isPlanarWanted);
52 GEOM::GEOM_Object_ptr MakeFaceWires (const GEOM::ListOfGO& theWires,
53 CORBA::Boolean isPlanarWanted);
55 GEOM::GEOM_Object_ptr MakeShell (const GEOM::ListOfGO& theFacesAndShells);
57 GEOM::GEOM_Object_ptr MakeSolidShell (GEOM::GEOM_Object_ptr theShell);
59 GEOM::GEOM_Object_ptr MakeSolidShells (const GEOM::ListOfGO& theShells);
61 GEOM::GEOM_Object_ptr MakeCompound (const GEOM::ListOfGO& theShapes);
63 GEOM::GEOM_Object_ptr MakeGlueFaces (GEOM::GEOM_Object_ptr theShape,
64 CORBA::Double theTolerance,
65 CORBA::Boolean doKeepNonSolids);
67 GEOM::ListOfGO* GetGlueFaces (GEOM::GEOM_Object_ptr theShape,
68 CORBA::Double theTolerance);
70 GEOM::GEOM_Object_ptr MakeGlueFacesByList (GEOM::GEOM_Object_ptr theShape,
71 CORBA::Double theTolerance,
72 const GEOM::ListOfGO& theFaces,
73 CORBA::Boolean doKeepNonSolids);
76 GEOM::ListOfGO* MakeExplode (GEOM::GEOM_Object_ptr theShape,
77 CORBA::Long theShapeType,
78 CORBA::Boolean isSorted);
80 GEOM::ListOfLong* SubShapeAllIDs (GEOM::GEOM_Object_ptr theShape,
81 CORBA::Long theShapeType,
82 CORBA::Boolean isSorted);
84 GEOM::GEOM_Object_ptr GetSubShape (GEOM::GEOM_Object_ptr theMainShape,
87 CORBA::Long GetSubShapeIndex (GEOM::GEOM_Object_ptr theMainShape,
88 GEOM::GEOM_Object_ptr theSubShape);
90 CORBA::Long GetTopologyIndex (GEOM::GEOM_Object_ptr theMainShape,
91 GEOM::GEOM_Object_ptr theSubShape);
93 char* GetShapeTypeString (GEOM::GEOM_Object_ptr theShape);
95 CORBA::Long NumberOfFaces (GEOM::GEOM_Object_ptr theShape);
96 CORBA::Long NumberOfEdges (GEOM::GEOM_Object_ptr theShape);
98 GEOM::GEOM_Object_ptr ChangeOrientation (GEOM::GEOM_Object_ptr theShape);
100 GEOM::ListOfLong* GetFreeFacesIDs (GEOM::GEOM_Object_ptr theShape);
102 GEOM::ListOfGO* GetSharedShapes (GEOM::GEOM_Object_ptr theShape1,
103 GEOM::GEOM_Object_ptr theShape2,
104 CORBA::Long theShapeType);
106 GEOM::ListOfGO* GetShapesOnPlane (GEOM::GEOM_Object_ptr theShape,
107 CORBA::Long theShapeType,
108 GEOM::GEOM_Object_ptr theAx1,
109 GEOM::shape_state theState);
111 GEOM::ListOfGO* GetShapesOnPlaneWithLocation(GEOM::GEOM_Object_ptr theShape,
112 CORBA::Long theShapeType,
113 GEOM::GEOM_Object_ptr theAx1,
114 GEOM::GEOM_Object_ptr thePnt,
115 GEOM::shape_state theState);
117 GEOM::ListOfGO* GetShapesOnCylinder (GEOM::GEOM_Object_ptr theShape,
118 CORBA::Long theShapeType,
119 GEOM::GEOM_Object_ptr theAxis,
120 CORBA::Double theRadius,
121 GEOM::shape_state theState);
123 GEOM::ListOfGO* GetShapesOnSphere (GEOM::GEOM_Object_ptr theShape,
124 CORBA::Long theShapeType,
125 GEOM::GEOM_Object_ptr theCenter,
126 CORBA::Double theRadius,
127 GEOM::shape_state theState);
129 GEOM::ListOfGO* GetShapesOnQuadrangle (GEOM::GEOM_Object_ptr theShape,
130 CORBA::Long theShapeType,
131 GEOM::GEOM_Object_ptr theTopLeftPoint,
132 GEOM::GEOM_Object_ptr theTopRigthPoint,
133 GEOM::GEOM_Object_ptr theBottomLeftPoint,
134 GEOM::GEOM_Object_ptr theBottomRigthPoint,
135 GEOM::shape_state theState);
137 GEOM::ListOfLong* GetShapesOnPlaneIDs (GEOM::GEOM_Object_ptr theShape,
138 CORBA::Long theShapeType,
139 GEOM::GEOM_Object_ptr theAx1,
140 GEOM::shape_state theState);
142 GEOM::ListOfLong* GetShapesOnPlaneWithLocationIDs (GEOM::GEOM_Object_ptr theShape,
143 CORBA::Long theShapeType,
144 GEOM::GEOM_Object_ptr theAx1,
145 GEOM::GEOM_Object_ptr thePnt,
146 GEOM::shape_state theState);
148 GEOM::ListOfLong* GetShapesOnCylinderIDs (GEOM::GEOM_Object_ptr theShape,
149 CORBA::Long theShapeType,
150 GEOM::GEOM_Object_ptr theAxis,
151 CORBA::Double theRadius,
152 GEOM::shape_state theState);
154 GEOM::ListOfLong* GetShapesOnSphereIDs (GEOM::GEOM_Object_ptr theShape,
155 CORBA::Long theShapeType,
156 GEOM::GEOM_Object_ptr theCenter,
157 CORBA::Double theRadius,
158 GEOM::shape_state theState);
160 GEOM::ListOfLong* GetShapesOnQuadrangleIDs (GEOM::GEOM_Object_ptr theShape,
161 CORBA::Long theShapeType,
162 GEOM::GEOM_Object_ptr theTopLeftPoint,
163 GEOM::GEOM_Object_ptr theTopRigthPoint,
164 GEOM::GEOM_Object_ptr theBottomLeftPoint,
165 GEOM::GEOM_Object_ptr theBottomRigthPoint,
166 GEOM::shape_state theState);
168 GEOM::ListOfGO* GetShapesOnBox (GEOM::GEOM_Object_ptr theBox,
169 GEOM::GEOM_Object_ptr theShape,
170 CORBA::Long theShapeType,
171 GEOM::shape_state theState);
173 GEOM::ListOfLong* GetShapesOnBoxIDs (GEOM::GEOM_Object_ptr theBox,
174 GEOM::GEOM_Object_ptr theShape,
175 CORBA::Long theShapeType,
176 GEOM::shape_state theState);
178 GEOM::ListOfGO* GetShapesOnShape (GEOM::GEOM_Object_ptr theSheckShape,
179 GEOM::GEOM_Object_ptr theShape,
180 CORBA::Short theShapeType,
181 GEOM::shape_state theState);
183 GEOM::GEOM_Object_ptr GetShapesOnShapeAsCompound
184 (GEOM::GEOM_Object_ptr theSheckShape,
185 GEOM::GEOM_Object_ptr theShape,
186 CORBA::Short theShapeType,
187 GEOM::shape_state theState);
189 GEOM::ListOfLong* GetShapesOnShapeIDs (GEOM::GEOM_Object_ptr theCheckShape,
190 GEOM::GEOM_Object_ptr theShape,
191 CORBA::Short theShapeType,
192 GEOM::shape_state theState);
194 GEOM::GEOM_Object_ptr GetInPlace (GEOM::GEOM_Object_ptr theShapeWhere,
195 GEOM::GEOM_Object_ptr theShapeWhat);
197 GEOM::GEOM_Object_ptr GetInPlaceByHistory (GEOM::GEOM_Object_ptr theShapeWhere,
198 GEOM::GEOM_Object_ptr theShapeWhat);
200 GEOM::GEOM_Object_ptr GetSame (GEOM::GEOM_Object_ptr theShapeWhere,
201 GEOM::GEOM_Object_ptr theShapeWhat);
203 ::GEOMImpl_IShapesOperations* GetOperations()
204 { return (::GEOMImpl_IShapesOperations*)GetImpl(); }