2 #ifndef _GEOMImpl_IGroupOperations_HXX_
3 #define _GEOMImpl_IGroupOperations_HXX_
5 #include "Utils_SALOME_Exception.hxx"
6 #include "GEOM_IOperations.hxx"
7 #include "GEOM_Engine.hxx"
8 #include "GEOM_Object.hxx"
9 #include <TDocStd_Document.hxx>
10 #include <TColStd_HArray1OfInteger.hxx>
11 #include <TColStd_HSequenceOfInteger.hxx>
14 class GEOMImpl_IGroupOperations : public GEOM_IOperations {
16 Standard_EXPORT GEOMImpl_IGroupOperations(GEOM_Engine* theEngine, int theDocID);
17 Standard_EXPORT ~GEOMImpl_IGroupOperations();
19 Standard_EXPORT Handle(GEOM_Object) CreateGroup(Handle(GEOM_Object) theMainShape, TopAbs_ShapeEnum theShapeType);
21 Standard_EXPORT void AddObject(Handle(GEOM_Object) theGroup, int theSubShapeID);
23 Standard_EXPORT void RemoveObject(Handle(GEOM_Object) theGroup, int theSubShapeID);
25 Standard_EXPORT void UnionList (Handle(GEOM_Object) theGroup,
26 const Handle(TColStd_HSequenceOfTransient)& theSubShapes);
28 Standard_EXPORT void DifferenceList (Handle(GEOM_Object) theGroup,
29 const Handle(TColStd_HSequenceOfTransient)& theSubShapes);
31 Standard_EXPORT void UnionIDs (Handle(GEOM_Object) theGroup,
32 const Handle(TColStd_HSequenceOfInteger)& theSubShapes);
34 Standard_EXPORT void DifferenceIDs (Handle(GEOM_Object) theGroup,
35 const Handle(TColStd_HSequenceOfInteger)& theSubShapes);
37 Standard_EXPORT TopAbs_ShapeEnum GetType(Handle(GEOM_Object) theGroup);
39 Standard_EXPORT Handle(GEOM_Object) GetMainShape(Handle(GEOM_Object) theGroup);
41 Standard_EXPORT Handle(TColStd_HArray1OfInteger) GetObjects(Handle(GEOM_Object) theGroup);