Salome HOME
Update mail address
[modules/geom.git] / src / GEOM_I / GEOM_IShapesOperations_i.hh
1 // Copyright (C) 2005  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
2 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
3 // 
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.
8 // 
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.
13 //
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
17 //
18 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
19 //
20
21 #ifndef _GEOM_IShapesOperations_i_HeaderFile
22 #define _GEOM_IShapesOperations_i_HeaderFile
23
24
25 #include <SALOMEconfig.h>
26
27 #include CORBA_SERVER_HEADER(GEOM_Gen)
28 #include "GEOM_IOperations_i.hh"
29 #include "GEOM_Object_i.hh"
30
31 #include "GEOMImpl_IShapesOperations.hxx"
32
33 class GEOM_IShapesOperations_i :
34     public virtual POA_GEOM::GEOM_IShapesOperations,
35     public virtual GEOM_IOperations_i
36 {
37  public:
38   GEOM_IShapesOperations_i (PortableServer::POA_ptr       thePOA,
39                             GEOM::GEOM_Gen_ptr            theEngine,
40                             ::GEOMImpl_IShapesOperations* theImpl);
41   ~GEOM_IShapesOperations_i();
42
43   GEOM::GEOM_Object_ptr MakeEdge (GEOM::GEOM_Object_ptr thePnt1,
44                                   GEOM::GEOM_Object_ptr thePnt2);
45
46   GEOM::GEOM_Object_ptr MakeWire (const GEOM::ListOfGO& theEdgesAndWires);
47
48   GEOM::GEOM_Object_ptr MakeFace (GEOM::GEOM_Object_ptr theWire,
49                                   CORBA::Boolean  isPlanarWanted);
50
51   GEOM::GEOM_Object_ptr MakeFaceWires (const GEOM::ListOfGO& theWires,
52                                        CORBA::Boolean  isPlanarWanted);
53
54   GEOM::GEOM_Object_ptr MakeShell (const GEOM::ListOfGO& theFacesAndShells);
55
56   GEOM::GEOM_Object_ptr MakeSolidShell (GEOM::GEOM_Object_ptr theShell);
57
58   GEOM::GEOM_Object_ptr MakeSolidShells (const GEOM::ListOfGO& theShells);
59
60   GEOM::GEOM_Object_ptr MakeCompound (const GEOM::ListOfGO& theShapes);
61
62   GEOM::GEOM_Object_ptr MakeGlueFaces (GEOM::GEOM_Object_ptr theShape,
63                                        CORBA::Double         theTolerance);
64
65   GEOM::ListOfGO* MakeExplode (GEOM::GEOM_Object_ptr theShape,
66                                CORBA::Long           theShapeType,
67                                CORBA::Boolean  isSorted);
68
69   GEOM::ListOfLong* SubShapeAllIDs (GEOM::GEOM_Object_ptr theShape,
70                                     CORBA::Long           theShapeType,
71                                     CORBA::Boolean  isSorted);
72
73   GEOM::GEOM_Object_ptr GetSubShape (GEOM::GEOM_Object_ptr theMainShape,
74                                      CORBA::Long           theID);
75
76   CORBA::Long GetSubShapeIndex (GEOM::GEOM_Object_ptr theMainShape,
77                                 GEOM::GEOM_Object_ptr theSubShape);
78
79   CORBA::Long GetTopologyIndex (GEOM::GEOM_Object_ptr theMainShape,
80                                 GEOM::GEOM_Object_ptr theSubShape);
81
82   char* GetShapeTypeString (GEOM::GEOM_Object_ptr theShape);
83
84   CORBA::Long NumberOfFaces (GEOM::GEOM_Object_ptr theShape);
85   CORBA::Long NumberOfEdges (GEOM::GEOM_Object_ptr theShape);
86
87   GEOM::GEOM_Object_ptr ChangeOrientation (GEOM::GEOM_Object_ptr theShape);
88
89   GEOM::ListOfLong* GetFreeFacesIDs (GEOM::GEOM_Object_ptr theShape);
90
91   GEOM::ListOfGO* GetSharedShapes (GEOM::GEOM_Object_ptr theShape1,
92                                    GEOM::GEOM_Object_ptr theShape2,
93                                    CORBA::Long           theShapeType);
94
95   GEOM::ListOfGO* GetShapesOnPlane (GEOM::GEOM_Object_ptr theShape,
96                                     CORBA::Long           theShapeType,
97                                     GEOM::GEOM_Object_ptr theAx1,
98                                     GEOM::shape_state     theState);
99
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);
105
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);
111
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);
119
120   GEOM::ListOfLong* GetShapesOnPlaneIDs (GEOM::GEOM_Object_ptr theShape,
121                                          CORBA::Long           theShapeType,
122                                          GEOM::GEOM_Object_ptr theAx1,
123                                          GEOM::shape_state     theState);
124
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);
130
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);
136
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);
144
145   GEOM::GEOM_Object_ptr GetInPlace (GEOM::GEOM_Object_ptr theShapeWhere,
146                                     GEOM::GEOM_Object_ptr theShapeWhat);
147
148   ::GEOMImpl_IShapesOperations* GetOperations()
149   { return (::GEOMImpl_IShapesOperations*)GetImpl(); }
150 };
151
152 #endif