Salome HOME
Mantis issue 0020853: EDF 1394 GEOM: Partition fails between 2 faces. A patch by...
[modules/geom.git] / src / GEOM_I / GEOM_IShapesOperations_i.hh
index de1b24be14b8895552248132c61bb1d9ef43b283..5ae1ed2f040a448c05042ef0c574eee939a5d7ba 100644 (file)
@@ -1,21 +1,23 @@
-// Copyright (C) 2005  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
-// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
-// 
-// This library is free software; you can redistribute it and/or
-// modify it under the terms of the GNU Lesser General Public
-// License as published by the Free Software Foundation; either 
-// version 2.1 of the License.
-// 
-// This library is distributed in the hope that it will be useful 
-// but WITHOUT ANY WARRANTY; without even the implied warranty of 
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
-// Lesser General Public License for more details.
+//  Copyright (C) 2007-2010  CEA/DEN, EDF R&D, OPEN CASCADE
 //
-// You should have received a copy of the GNU Lesser General Public  
-// License along with this library; if not, write to the Free Software 
-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+//  Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
 //
-// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+//  This library is free software; you can redistribute it and/or
+//  modify it under the terms of the GNU Lesser General Public
+//  License as published by the Free Software Foundation; either
+//  version 2.1 of the License.
+//
+//  This library is distributed in the hope that it will be useful,
+//  but WITHOUT ANY WARRANTY; without even the implied warranty of
+//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+//  Lesser General Public License for more details.
+//
+//  You should have received a copy of the GNU Lesser General Public
+//  License along with this library; if not, write to the Free Software
+//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+//
+//  See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 //
 
 #ifndef _GEOM_IShapesOperations_i_HeaderFile
@@ -44,7 +46,8 @@ class GEOM_I_EXPORT GEOM_IShapesOperations_i :
   GEOM::GEOM_Object_ptr MakeEdge (GEOM::GEOM_Object_ptr thePnt1,
                                  GEOM::GEOM_Object_ptr thePnt2);
 
-  GEOM::GEOM_Object_ptr MakeWire (const GEOM::ListOfGO& theEdgesAndWires);
+  GEOM::GEOM_Object_ptr MakeWire (const GEOM::ListOfGO& theEdgesAndWires,
+                                  const CORBA::Double   theTolerance);
 
   GEOM::GEOM_Object_ptr MakeFace (GEOM::GEOM_Object_ptr theWire,
                                  CORBA::Boolean  isPlanarWanted);
@@ -62,7 +65,7 @@ class GEOM_I_EXPORT GEOM_IShapesOperations_i :
 
   GEOM::GEOM_Object_ptr MakeGlueFaces (GEOM::GEOM_Object_ptr theShape,
                                       CORBA::Double         theTolerance,
-                                          CORBA::Boolean  doKeepNonSolids);
+                                       CORBA::Boolean        doKeepNonSolids);
 
   GEOM::ListOfGO* GetGlueFaces (GEOM::GEOM_Object_ptr theShape,
                                CORBA::Double         theTolerance);
@@ -94,6 +97,8 @@ class GEOM_I_EXPORT GEOM_IShapesOperations_i :
 
   CORBA::Long NumberOfFaces (GEOM::GEOM_Object_ptr theShape);
   CORBA::Long NumberOfEdges (GEOM::GEOM_Object_ptr theShape);
+  CORBA::Long NumberOfSubShapes (GEOM::GEOM_Object_ptr theShape,
+                                 const CORBA::Long     theShapeType);
 
   GEOM::GEOM_Object_ptr ChangeOrientation (GEOM::GEOM_Object_ptr theShape);
 
@@ -120,6 +125,13 @@ class GEOM_I_EXPORT GEOM_IShapesOperations_i :
                                       CORBA::Double         theRadius,
                                       GEOM::shape_state     theState);
 
+  GEOM::ListOfGO* GetShapesOnCylinderWithLocation (GEOM::GEOM_Object_ptr theShape,
+                                                   CORBA::Long           theShapeType,
+                                                   GEOM::GEOM_Object_ptr theAxis,
+                                                   GEOM::GEOM_Object_ptr thePnt,
+                                                   CORBA::Double         theRadius,
+                                                   GEOM::shape_state     theState);
+
   GEOM::ListOfGO* GetShapesOnSphere (GEOM::GEOM_Object_ptr theShape,
                                     CORBA::Long           theShapeType,
                                     GEOM::GEOM_Object_ptr theCenter,
@@ -151,6 +163,13 @@ class GEOM_I_EXPORT GEOM_IShapesOperations_i :
                                            CORBA::Double         theRadius,
                                            GEOM::shape_state     theState);
 
+  GEOM::ListOfLong* GetShapesOnCylinderWithLocationIDs (GEOM::GEOM_Object_ptr theShape,
+                                                        CORBA::Long           theShapeType,
+                                                        GEOM::GEOM_Object_ptr theAxis,
+                                                        GEOM::GEOM_Object_ptr thePnt,
+                                                        CORBA::Double         theRadius,
+                                                        GEOM::shape_state     theState);
+
   GEOM::ListOfLong* GetShapesOnSphereIDs (GEOM::GEOM_Object_ptr theShape,
                                          CORBA::Long           theShapeType,
                                          GEOM::GEOM_Object_ptr theCenter,
@@ -175,6 +194,22 @@ class GEOM_I_EXPORT GEOM_IShapesOperations_i :
                                       CORBA::Long           theShapeType,
                                       GEOM::shape_state     theState);
 
+  GEOM::ListOfGO* GetShapesOnShape (GEOM::GEOM_Object_ptr theSheckShape,
+                                   GEOM::GEOM_Object_ptr theShape,
+                                   CORBA::Short          theShapeType,
+                                   GEOM::shape_state     theState);
+
+  GEOM::GEOM_Object_ptr GetShapesOnShapeAsCompound
+                                   (GEOM::GEOM_Object_ptr theSheckShape,
+                                   GEOM::GEOM_Object_ptr theShape,
+                                   CORBA::Short          theShapeType,
+                                   GEOM::shape_state     theState);
+
+  GEOM::ListOfLong* GetShapesOnShapeIDs (GEOM::GEOM_Object_ptr theCheckShape,
+                                        GEOM::GEOM_Object_ptr theShape,
+                                        CORBA::Short          theShapeType,
+                                        GEOM::shape_state     theState);
+
   GEOM::GEOM_Object_ptr GetInPlace (GEOM::GEOM_Object_ptr theShapeWhere,
                                    GEOM::GEOM_Object_ptr theShapeWhat);