geom/src/GEOMImpl/GEOMImpl_IShapesOperations.hxx

92 lines
3.9 KiB
C++
Raw Normal View History

2004-12-01 15:39:14 +05:00
#ifndef _GEOMImpl_IShapesOperations_HXX_
#define _GEOMImpl_IShapesOperations_HXX_
#include "GEOM_IOperations.hxx"
#include <TopTools_ListOfShape.hxx>
#include <TColStd_HSequenceOfTransient.hxx>
2005-01-20 11:24:17 +05:00
#include <TColStd_HSequenceOfInteger.hxx>
2004-12-01 15:39:14 +05:00
#include <list>
class GEOM_Engine;
class Handle(GEOM_Object);
class Handle(TColStd_HArray1OfInteger);
class GEOMImpl_IShapesOperations : public GEOM_IOperations {
public:
GEOMImpl_IShapesOperations(GEOM_Engine* theEngine, int theDocID);
~GEOMImpl_IShapesOperations();
Handle(GEOM_Object) MakeEdge (Handle(GEOM_Object) thePoint1,
Handle(GEOM_Object) thePoint2);
Handle(GEOM_Object) MakeWire (list<Handle(GEOM_Object)> theEdgesAndWires);
2005-01-20 11:24:17 +05:00
Handle(GEOM_Object) MakeFace (Handle(GEOM_Object) theWire, const bool isPlanarWanted);
2004-12-01 15:39:14 +05:00
2005-01-20 11:24:17 +05:00
Handle(GEOM_Object) MakeFaceWires (list<Handle(GEOM_Object)> theWires,
const bool isPlanarWanted);
2004-12-01 15:39:14 +05:00
Handle(GEOM_Object) MakeShell (list<Handle(GEOM_Object)> theShapes);
Handle(GEOM_Object) MakeSolidShell (Handle(GEOM_Object) theShell);
Handle(GEOM_Object) MakeSolidShells (list<Handle(GEOM_Object)> theShells);
Handle(GEOM_Object) MakeCompound (list<Handle(GEOM_Object)> theShapes);
Handle(GEOM_Object) MakeGlueFaces (Handle(GEOM_Object) theShape,
const Standard_Real theTolerance);
Handle(TColStd_HSequenceOfTransient) MakeExplode (Handle(GEOM_Object) theShape,
const Standard_Integer theShapeType,
const Standard_Boolean isSorted);
2005-01-20 11:24:17 +05:00
Handle(TColStd_HSequenceOfInteger) SubShapeAllIDs (Handle(GEOM_Object) theShape,
const Standard_Integer theShapeType,
const Standard_Boolean isSorted);
2004-12-01 15:39:14 +05:00
Handle(GEOM_Object) GetSubShape (Handle(GEOM_Object) theMainShape,
const Standard_Integer theID);
Standard_Integer NumberOfFaces (Handle(GEOM_Object) theShape);
Standard_Integer NumberOfEdges (Handle(GEOM_Object) theShape);
Handle(GEOM_Object) ReverseShape(Handle(GEOM_Object) theShapes);
2005-01-20 11:24:17 +05:00
Handle(TColStd_HSequenceOfInteger) GetFreeFacesIDs (Handle(GEOM_Object) theShape);
Handle(TColStd_HSequenceOfTransient) GetSharedShapes (Handle(GEOM_Object) theShape1,
Handle(GEOM_Object) theShape2,
const Standard_Integer theShapeType);
Handle(GEOM_Object) GetShapesOnPlane (Handle(GEOM_Object) theShape,
const Standard_Integer theShapeType,
Handle(GEOM_Object) thePlane);
Handle(GEOM_Object) GetShapesOnCylinder (Handle(GEOM_Object) theShape,
const Standard_Integer theShapeType,
Handle(GEOM_Object) theAxis,
const Standard_Real theRadius);
Handle(GEOM_Object) GetShapesOnSphere (Handle(GEOM_Object) theShape,
const Standard_Integer theShapeType,
Handle(GEOM_Object) theCenter,
const Standard_Real theRadius);
Handle(GEOM_Object) GetInPlace (Handle(GEOM_Object) theShapeWhere,
Handle(GEOM_Object) theShapeWhat);
2004-12-01 15:39:14 +05:00
static void SortShapes (TopTools_ListOfShape& SL);
private:
Handle(GEOM_Object) MakeShape (list<Handle(GEOM_Object)> theShapes,
const Standard_Integer theObjectType,
const Standard_Integer theFunctionType,
const TCollection_AsciiString theMethodName);
};
#endif