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
25 #include <SALOMEconfig.h>
27 #include CORBA_SERVER_HEADER(GEOM_Gen)
28 #include "GEOM_IOperations_i.hh"
29 #include "GEOM_Object_i.hh"
31 #include "GEOMImpl_IShapesOperations.hxx"
33 class GEOM_IShapesOperations_i :
34 public virtual POA_GEOM::GEOM_IShapesOperations,
35 public virtual GEOM_IOperations_i
38 GEOM_IShapesOperations_i (PortableServer::POA_ptr thePOA,
39 GEOM::GEOM_Gen_ptr theEngine,
40 ::GEOMImpl_IShapesOperations* theImpl);
41 ~GEOM_IShapesOperations_i();
43 GEOM::GEOM_Object_ptr MakeEdge (GEOM::GEOM_Object_ptr thePnt1,
44 GEOM::GEOM_Object_ptr thePnt2);
46 GEOM::GEOM_Object_ptr MakeWire (const GEOM::ListOfGO& theEdgesAndWires);
48 GEOM::GEOM_Object_ptr MakeFace (GEOM::GEOM_Object_ptr theWire,
49 CORBA::Boolean isPlanarWanted);
51 GEOM::GEOM_Object_ptr MakeFaceWires (const GEOM::ListOfGO& theWires,
52 CORBA::Boolean isPlanarWanted);
54 GEOM::GEOM_Object_ptr MakeShell (const GEOM::ListOfGO& theFacesAndShells);
56 GEOM::GEOM_Object_ptr MakeSolidShell (GEOM::GEOM_Object_ptr theShell);
58 GEOM::GEOM_Object_ptr MakeSolidShells (const GEOM::ListOfGO& theShells);
60 GEOM::GEOM_Object_ptr MakeCompound (const GEOM::ListOfGO& theShapes);
62 GEOM::GEOM_Object_ptr MakeGlueFaces (GEOM::GEOM_Object_ptr theShape,
63 CORBA::Double theTolerance,
64 const CORBA::Boolean doKeepNonSolids);
66 GEOM::ListOfGO* GetGlueFaces (GEOM::GEOM_Object_ptr theShape,
67 CORBA::Double theTolerance);
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);
74 GEOM::ListOfGO* MakeExplode (GEOM::GEOM_Object_ptr theShape,
75 CORBA::Long theShapeType,
76 CORBA::Boolean isSorted);
78 GEOM::ListOfLong* SubShapeAllIDs (GEOM::GEOM_Object_ptr theShape,
79 CORBA::Long theShapeType,
80 CORBA::Boolean isSorted);
82 GEOM::GEOM_Object_ptr GetSubShape (GEOM::GEOM_Object_ptr theMainShape,
85 CORBA::Long GetSubShapeIndex (GEOM::GEOM_Object_ptr theMainShape,
86 GEOM::GEOM_Object_ptr theSubShape);
88 CORBA::Long GetTopologyIndex (GEOM::GEOM_Object_ptr theMainShape,
89 GEOM::GEOM_Object_ptr theSubShape);
91 char* GetShapeTypeString (GEOM::GEOM_Object_ptr theShape);
93 CORBA::Long NumberOfFaces (GEOM::GEOM_Object_ptr theShape);
94 CORBA::Long NumberOfEdges (GEOM::GEOM_Object_ptr theShape);
96 GEOM::GEOM_Object_ptr ChangeOrientation (GEOM::GEOM_Object_ptr theShape);
98 GEOM::ListOfLong* GetFreeFacesIDs (GEOM::GEOM_Object_ptr theShape);
100 GEOM::ListOfGO* GetSharedShapes (GEOM::GEOM_Object_ptr theShape1,
101 GEOM::GEOM_Object_ptr theShape2,
102 CORBA::Long theShapeType);
104 GEOM::ListOfGO* GetShapesOnPlane (GEOM::GEOM_Object_ptr theShape,
105 CORBA::Long theShapeType,
106 GEOM::GEOM_Object_ptr theAx1,
107 GEOM::shape_state theState);
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);
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);
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);
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);
135 GEOM::ListOfLong* GetShapesOnPlaneIDs (GEOM::GEOM_Object_ptr theShape,
136 CORBA::Long theShapeType,
137 GEOM::GEOM_Object_ptr theAx1,
138 GEOM::shape_state theState);
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);
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);
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);
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);
166 GEOM::ListOfGO* GetShapesOnBox (GEOM::GEOM_Object_ptr theBox,
167 GEOM::GEOM_Object_ptr theShape,
168 CORBA::Long theShapeType,
169 GEOM::shape_state theState);
171 GEOM::ListOfLong* GetShapesOnBoxIDs (GEOM::GEOM_Object_ptr theBox,
172 GEOM::GEOM_Object_ptr theShape,
173 CORBA::Long theShapeType,
174 GEOM::shape_state theState);
176 GEOM::GEOM_Object_ptr GetInPlace (GEOM::GEOM_Object_ptr theShapeWhere,
177 GEOM::GEOM_Object_ptr theShapeWhat);
179 GEOM::GEOM_Object_ptr GetSame (GEOM::GEOM_Object_ptr theShapeWhere,
180 GEOM::GEOM_Object_ptr theShapeWhat);
182 ::GEOMImpl_IShapesOperations* GetOperations()
183 { return (::GEOMImpl_IShapesOperations*)GetImpl(); }