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* MakeExplode (GEOM::GEOM_Object_ptr theShape,
66 CORBA::Long theShapeType,
67 CORBA::Boolean isSorted);
69 GEOM::ListOfLong* SubShapeAllIDs (GEOM::GEOM_Object_ptr theShape,
70 CORBA::Long theShapeType,
71 CORBA::Boolean isSorted);
73 GEOM::GEOM_Object_ptr GetSubShape (GEOM::GEOM_Object_ptr theMainShape,
76 CORBA::Long GetSubShapeIndex (GEOM::GEOM_Object_ptr theMainShape,
77 GEOM::GEOM_Object_ptr theSubShape);
79 CORBA::Long GetTopologyIndex (GEOM::GEOM_Object_ptr theMainShape,
80 GEOM::GEOM_Object_ptr theSubShape);
82 char* GetShapeTypeString (GEOM::GEOM_Object_ptr theShape);
84 CORBA::Long NumberOfFaces (GEOM::GEOM_Object_ptr theShape);
85 CORBA::Long NumberOfEdges (GEOM::GEOM_Object_ptr theShape);
87 GEOM::GEOM_Object_ptr ChangeOrientation (GEOM::GEOM_Object_ptr theShape);
89 GEOM::ListOfLong* GetFreeFacesIDs (GEOM::GEOM_Object_ptr theShape);
91 GEOM::ListOfGO* GetSharedShapes (GEOM::GEOM_Object_ptr theShape1,
92 GEOM::GEOM_Object_ptr theShape2,
93 CORBA::Long theShapeType);
95 GEOM::ListOfGO* GetShapesOnPlane (GEOM::GEOM_Object_ptr theShape,
96 CORBA::Long theShapeType,
97 GEOM::GEOM_Object_ptr theAx1,
98 GEOM::shape_state theState);
100 GEOM::ListOfGO* GetShapesOnCylinder (GEOM::GEOM_Object_ptr theShape,
101 CORBA::Long theShapeType,
102 GEOM::GEOM_Object_ptr theAxis,
103 CORBA::Double theRadius,
104 GEOM::shape_state theState);
106 GEOM::ListOfGO* GetShapesOnSphere (GEOM::GEOM_Object_ptr theShape,
107 CORBA::Long theShapeType,
108 GEOM::GEOM_Object_ptr theCenter,
109 CORBA::Double theRadius,
110 GEOM::shape_state theState);
112 GEOM::ListOfGO* GetShapesOnQuadrangle (GEOM::GEOM_Object_ptr theShape,
113 CORBA::Long theShapeType,
114 GEOM::GEOM_Object_ptr theTopLeftPoint,
115 GEOM::GEOM_Object_ptr theTopRigthPoint,
116 GEOM::GEOM_Object_ptr theBottomLeftPoint,
117 GEOM::GEOM_Object_ptr theBottomRigthPoint,
118 GEOM::shape_state theState);
120 GEOM::ListOfLong* GetShapesOnPlaneIDs (GEOM::GEOM_Object_ptr theShape,
121 CORBA::Long theShapeType,
122 GEOM::GEOM_Object_ptr theAx1,
123 GEOM::shape_state theState);
125 GEOM::ListOfLong* GetShapesOnCylinderIDs (GEOM::GEOM_Object_ptr theShape,
126 CORBA::Long theShapeType,
127 GEOM::GEOM_Object_ptr theAxis,
128 CORBA::Double theRadius,
129 GEOM::shape_state theState);
131 GEOM::ListOfLong* GetShapesOnSphereIDs (GEOM::GEOM_Object_ptr theShape,
132 CORBA::Long theShapeType,
133 GEOM::GEOM_Object_ptr theCenter,
134 CORBA::Double theRadius,
135 GEOM::shape_state theState);
137 GEOM::ListOfLong* GetShapesOnQuadrangleIDs (GEOM::GEOM_Object_ptr theShape,
138 CORBA::Long theShapeType,
139 GEOM::GEOM_Object_ptr theTopLeftPoint,
140 GEOM::GEOM_Object_ptr theTopRigthPoint,
141 GEOM::GEOM_Object_ptr theBottomLeftPoint,
142 GEOM::GEOM_Object_ptr theBottomRigthPoint,
143 GEOM::shape_state theState);
145 GEOM::GEOM_Object_ptr GetInPlace (GEOM::GEOM_Object_ptr theShapeWhere,
146 GEOM::GEOM_Object_ptr theShapeWhat);
148 ::GEOMImpl_IShapesOperations* GetOperations()
149 { return (::GEOMImpl_IShapesOperations*)GetImpl(); }