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);
65 GEOM::ListOfGO* GetGlueFaces (GEOM::GEOM_Object_ptr theShape,
66 CORBA::Double theTolerance);
68 GEOM::GEOM_Object_ptr MakeGlueFacesByList (GEOM::GEOM_Object_ptr theShape,
69 CORBA::Double theTolerance,
70 const GEOM::ListOfGO& theFaces);
72 GEOM::ListOfGO* MakeExplode (GEOM::GEOM_Object_ptr theShape,
73 CORBA::Long theShapeType,
74 CORBA::Boolean isSorted);
76 GEOM::ListOfLong* SubShapeAllIDs (GEOM::GEOM_Object_ptr theShape,
77 CORBA::Long theShapeType,
78 CORBA::Boolean isSorted);
80 GEOM::GEOM_Object_ptr GetSubShape (GEOM::GEOM_Object_ptr theMainShape,
83 CORBA::Long GetSubShapeIndex (GEOM::GEOM_Object_ptr theMainShape,
84 GEOM::GEOM_Object_ptr theSubShape);
86 CORBA::Long GetTopologyIndex (GEOM::GEOM_Object_ptr theMainShape,
87 GEOM::GEOM_Object_ptr theSubShape);
89 char* GetShapeTypeString (GEOM::GEOM_Object_ptr theShape);
91 CORBA::Long NumberOfFaces (GEOM::GEOM_Object_ptr theShape);
92 CORBA::Long NumberOfEdges (GEOM::GEOM_Object_ptr theShape);
94 GEOM::GEOM_Object_ptr ChangeOrientation (GEOM::GEOM_Object_ptr theShape);
96 GEOM::ListOfLong* GetFreeFacesIDs (GEOM::GEOM_Object_ptr theShape);
98 GEOM::ListOfGO* GetSharedShapes (GEOM::GEOM_Object_ptr theShape1,
99 GEOM::GEOM_Object_ptr theShape2,
100 CORBA::Long theShapeType);
102 GEOM::ListOfGO* GetShapesOnPlane (GEOM::GEOM_Object_ptr theShape,
103 CORBA::Long theShapeType,
104 GEOM::GEOM_Object_ptr theAx1,
105 GEOM::shape_state theState);
107 GEOM::ListOfGO* GetShapesOnPlaneWithLocation(GEOM::GEOM_Object_ptr theShape,
108 CORBA::Long theShapeType,
109 GEOM::GEOM_Object_ptr theAx1,
110 GEOM::GEOM_Object_ptr thePnt,
111 GEOM::shape_state theState);
113 GEOM::ListOfGO* GetShapesOnCylinder (GEOM::GEOM_Object_ptr theShape,
114 CORBA::Long theShapeType,
115 GEOM::GEOM_Object_ptr theAxis,
116 CORBA::Double theRadius,
117 GEOM::shape_state theState);
119 GEOM::ListOfGO* GetShapesOnSphere (GEOM::GEOM_Object_ptr theShape,
120 CORBA::Long theShapeType,
121 GEOM::GEOM_Object_ptr theCenter,
122 CORBA::Double theRadius,
123 GEOM::shape_state theState);
125 GEOM::ListOfGO* GetShapesOnQuadrangle (GEOM::GEOM_Object_ptr theShape,
126 CORBA::Long theShapeType,
127 GEOM::GEOM_Object_ptr theTopLeftPoint,
128 GEOM::GEOM_Object_ptr theTopRigthPoint,
129 GEOM::GEOM_Object_ptr theBottomLeftPoint,
130 GEOM::GEOM_Object_ptr theBottomRigthPoint,
131 GEOM::shape_state theState);
133 GEOM::ListOfLong* GetShapesOnPlaneIDs (GEOM::GEOM_Object_ptr theShape,
134 CORBA::Long theShapeType,
135 GEOM::GEOM_Object_ptr theAx1,
136 GEOM::shape_state theState);
138 GEOM::ListOfLong* GetShapesOnPlaneWithLocationIDs (GEOM::GEOM_Object_ptr theShape,
139 CORBA::Long theShapeType,
140 GEOM::GEOM_Object_ptr theAx1,
141 GEOM::GEOM_Object_ptr thePnt,
142 GEOM::shape_state theState);
144 GEOM::ListOfLong* GetShapesOnCylinderIDs (GEOM::GEOM_Object_ptr theShape,
145 CORBA::Long theShapeType,
146 GEOM::GEOM_Object_ptr theAxis,
147 CORBA::Double theRadius,
148 GEOM::shape_state theState);
150 GEOM::ListOfLong* GetShapesOnSphereIDs (GEOM::GEOM_Object_ptr theShape,
151 CORBA::Long theShapeType,
152 GEOM::GEOM_Object_ptr theCenter,
153 CORBA::Double theRadius,
154 GEOM::shape_state theState);
156 GEOM::ListOfLong* GetShapesOnQuadrangleIDs (GEOM::GEOM_Object_ptr theShape,
157 CORBA::Long theShapeType,
158 GEOM::GEOM_Object_ptr theTopLeftPoint,
159 GEOM::GEOM_Object_ptr theTopRigthPoint,
160 GEOM::GEOM_Object_ptr theBottomLeftPoint,
161 GEOM::GEOM_Object_ptr theBottomRigthPoint,
162 GEOM::shape_state theState);
164 GEOM::ListOfGO* GetShapesOnBox (GEOM::GEOM_Object_ptr theBox,
165 GEOM::GEOM_Object_ptr theShape,
166 CORBA::Long theShapeType,
167 GEOM::shape_state theState);
169 GEOM::ListOfLong* GetShapesOnBoxIDs (GEOM::GEOM_Object_ptr theBox,
170 GEOM::GEOM_Object_ptr theShape,
171 CORBA::Long theShapeType,
172 GEOM::shape_state theState);
174 GEOM::GEOM_Object_ptr GetInPlace (GEOM::GEOM_Object_ptr theShapeWhere,
175 GEOM::GEOM_Object_ptr theShapeWhat);
177 GEOM::GEOM_Object_ptr GetSame (GEOM::GEOM_Object_ptr theShapeWhere,
178 GEOM::GEOM_Object_ptr theShapeWhat);
180 ::GEOMImpl_IShapesOperations* GetOperations()
181 { return (::GEOMImpl_IShapesOperations*)GetImpl(); }