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);
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);
73 GEOM::ListOfGO* MakeExplode (GEOM::GEOM_Object_ptr theShape,
74 CORBA::Long theShapeType,
75 CORBA::Boolean isSorted);
77 GEOM::ListOfLong* SubShapeAllIDs (GEOM::GEOM_Object_ptr theShape,
78 CORBA::Long theShapeType,
79 CORBA::Boolean isSorted);
81 GEOM::GEOM_Object_ptr GetSubShape (GEOM::GEOM_Object_ptr theMainShape,
84 CORBA::Long GetSubShapeIndex (GEOM::GEOM_Object_ptr theMainShape,
85 GEOM::GEOM_Object_ptr theSubShape);
87 CORBA::Long GetTopologyIndex (GEOM::GEOM_Object_ptr theMainShape,
88 GEOM::GEOM_Object_ptr theSubShape);
90 char* GetShapeTypeString (GEOM::GEOM_Object_ptr theShape);
92 CORBA::Long NumberOfFaces (GEOM::GEOM_Object_ptr theShape);
93 CORBA::Long NumberOfEdges (GEOM::GEOM_Object_ptr theShape);
95 GEOM::GEOM_Object_ptr ChangeOrientation (GEOM::GEOM_Object_ptr theShape);
97 GEOM::ListOfLong* GetFreeFacesIDs (GEOM::GEOM_Object_ptr theShape);
99 GEOM::ListOfGO* GetSharedShapes (GEOM::GEOM_Object_ptr theShape1,
100 GEOM::GEOM_Object_ptr theShape2,
101 CORBA::Long theShapeType);
103 GEOM::ListOfGO* GetShapesOnPlane (GEOM::GEOM_Object_ptr theShape,
104 CORBA::Long theShapeType,
105 GEOM::GEOM_Object_ptr theAx1,
106 GEOM::shape_state theState);
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);
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);
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);
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);
134 GEOM::ListOfLong* GetShapesOnPlaneIDs (GEOM::GEOM_Object_ptr theShape,
135 CORBA::Long theShapeType,
136 GEOM::GEOM_Object_ptr theAx1,
137 GEOM::shape_state theState);
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);
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);
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);
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);
165 GEOM::ListOfGO* GetShapesOnBox (GEOM::GEOM_Object_ptr theBox,
166 GEOM::GEOM_Object_ptr theShape,
167 CORBA::Long theShapeType,
168 GEOM::shape_state theState);
170 GEOM::ListOfLong* GetShapesOnBoxIDs (GEOM::GEOM_Object_ptr theBox,
171 GEOM::GEOM_Object_ptr theShape,
172 CORBA::Long theShapeType,
173 GEOM::shape_state theState);
175 GEOM::GEOM_Object_ptr GetInPlace (GEOM::GEOM_Object_ptr theShapeWhere,
176 GEOM::GEOM_Object_ptr theShapeWhat);
178 GEOM::GEOM_Object_ptr GetSame (GEOM::GEOM_Object_ptr theShapeWhere,
179 GEOM::GEOM_Object_ptr theShapeWhat);
181 ::GEOMImpl_IShapesOperations* GetOperations()
182 { return (::GEOMImpl_IShapesOperations*)GetImpl(); }