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* MakeExplode (GEOM::GEOM_Object_ptr theShape,
67 CORBA::Long theShapeType,
68 CORBA::Boolean isSorted);
70 GEOM::ListOfLong* SubShapeAllIDs (GEOM::GEOM_Object_ptr theShape,
71 CORBA::Long theShapeType,
72 CORBA::Boolean isSorted);
74 GEOM::GEOM_Object_ptr GetSubShape (GEOM::GEOM_Object_ptr theMainShape,
77 CORBA::Long GetSubShapeIndex (GEOM::GEOM_Object_ptr theMainShape,
78 GEOM::GEOM_Object_ptr theSubShape);
80 CORBA::Long GetTopologyIndex (GEOM::GEOM_Object_ptr theMainShape,
81 GEOM::GEOM_Object_ptr theSubShape);
83 char* GetShapeTypeString (GEOM::GEOM_Object_ptr theShape);
85 CORBA::Long NumberOfFaces (GEOM::GEOM_Object_ptr theShape);
86 CORBA::Long NumberOfEdges (GEOM::GEOM_Object_ptr theShape);
88 GEOM::GEOM_Object_ptr ChangeOrientation (GEOM::GEOM_Object_ptr theShape);
90 GEOM::ListOfLong* GetFreeFacesIDs (GEOM::GEOM_Object_ptr theShape);
92 GEOM::ListOfGO* GetSharedShapes (GEOM::GEOM_Object_ptr theShape1,
93 GEOM::GEOM_Object_ptr theShape2,
94 CORBA::Long theShapeType);
96 GEOM::ListOfGO* GetShapesOnPlane (GEOM::GEOM_Object_ptr theShape,
97 CORBA::Long theShapeType,
98 GEOM::GEOM_Object_ptr theAx1,
99 GEOM::shape_state theState);
101 GEOM::ListOfGO* GetShapesOnPlaneWithLocation(GEOM::GEOM_Object_ptr theShape,
102 CORBA::Long theShapeType,
103 GEOM::GEOM_Object_ptr theAx1,
104 GEOM::GEOM_Object_ptr thePnt,
105 GEOM::shape_state theState);
107 GEOM::ListOfGO* GetShapesOnCylinder (GEOM::GEOM_Object_ptr theShape,
108 CORBA::Long theShapeType,
109 GEOM::GEOM_Object_ptr theAxis,
110 CORBA::Double theRadius,
111 GEOM::shape_state theState);
113 GEOM::ListOfGO* GetShapesOnSphere (GEOM::GEOM_Object_ptr theShape,
114 CORBA::Long theShapeType,
115 GEOM::GEOM_Object_ptr theCenter,
116 CORBA::Double theRadius,
117 GEOM::shape_state theState);
119 GEOM::ListOfGO* GetShapesOnQuadrangle (GEOM::GEOM_Object_ptr theShape,
120 CORBA::Long theShapeType,
121 GEOM::GEOM_Object_ptr theTopLeftPoint,
122 GEOM::GEOM_Object_ptr theTopRigthPoint,
123 GEOM::GEOM_Object_ptr theBottomLeftPoint,
124 GEOM::GEOM_Object_ptr theBottomRigthPoint,
125 GEOM::shape_state theState);
127 GEOM::ListOfLong* GetShapesOnPlaneIDs (GEOM::GEOM_Object_ptr theShape,
128 CORBA::Long theShapeType,
129 GEOM::GEOM_Object_ptr theAx1,
130 GEOM::shape_state theState);
132 GEOM::ListOfLong* GetShapesOnPlaneWithLocationIDs (GEOM::GEOM_Object_ptr theShape,
133 CORBA::Long theShapeType,
134 GEOM::GEOM_Object_ptr theAx1,
135 GEOM::GEOM_Object_ptr thePnt,
136 GEOM::shape_state theState);
138 GEOM::ListOfLong* GetShapesOnCylinderIDs (GEOM::GEOM_Object_ptr theShape,
139 CORBA::Long theShapeType,
140 GEOM::GEOM_Object_ptr theAxis,
141 CORBA::Double theRadius,
142 GEOM::shape_state theState);
144 GEOM::ListOfLong* GetShapesOnSphereIDs (GEOM::GEOM_Object_ptr theShape,
145 CORBA::Long theShapeType,
146 GEOM::GEOM_Object_ptr theCenter,
147 CORBA::Double theRadius,
148 GEOM::shape_state theState);
150 GEOM::ListOfLong* GetShapesOnQuadrangleIDs (GEOM::GEOM_Object_ptr theShape,
151 CORBA::Long theShapeType,
152 GEOM::GEOM_Object_ptr theTopLeftPoint,
153 GEOM::GEOM_Object_ptr theTopRigthPoint,
154 GEOM::GEOM_Object_ptr theBottomLeftPoint,
155 GEOM::GEOM_Object_ptr theBottomRigthPoint,
156 GEOM::shape_state theState);
158 GEOM::ListOfGO* GetShapesOnBox (GEOM::GEOM_Object_ptr theBox,
159 GEOM::GEOM_Object_ptr theShape,
160 CORBA::Long theShapeType,
161 GEOM::shape_state theState);
163 GEOM::ListOfLong* GetShapesOnBoxIDs (GEOM::GEOM_Object_ptr theBox,
164 GEOM::GEOM_Object_ptr theShape,
165 CORBA::Long theShapeType,
166 GEOM::shape_state theState);
168 GEOM::GEOM_Object_ptr GetInPlace (GEOM::GEOM_Object_ptr theShapeWhere,
169 GEOM::GEOM_Object_ptr theShapeWhat);
171 GEOM::GEOM_Object_ptr GetSame (GEOM::GEOM_Object_ptr theShapeWhere,
172 GEOM::GEOM_Object_ptr theShapeWhat);
174 ::GEOMImpl_IShapesOperations* GetOperations()
175 { return (::GEOMImpl_IShapesOperations*)GetImpl(); }