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 GEOMImpl_IGroupOperations(GEOM_Engine* theEngine, int theDocID);
17 ~GEOMImpl_IGroupOperations();
19 Handle(GEOM_Object) CreateGroup(Handle(GEOM_Object) theMainShape, TopAbs_ShapeEnum theShapeType);
21 void AddObject(Handle(GEOM_Object) theGroup, int theSubShapeID);
23 void RemoveObject(Handle(GEOM_Object) theGroup, int theSubShapeID);
25 void UnionList (Handle(GEOM_Object) theGroup,
26 const Handle(TColStd_HSequenceOfTransient)& theSubShapes);
28 void DifferenceList (Handle(GEOM_Object) theGroup,
29 const Handle(TColStd_HSequenceOfTransient)& theSubShapes);
31 void UnionIDs (Handle(GEOM_Object) theGroup,
32 const Handle(TColStd_HSequenceOfInteger)& theSubShapes);
34 void DifferenceIDs (Handle(GEOM_Object) theGroup,
35 const Handle(TColStd_HSequenceOfInteger)& theSubShapes);
37 TopAbs_ShapeEnum GetType(Handle(GEOM_Object) theGroup);
39 Handle(GEOM_Object) GetMainShape(Handle(GEOM_Object) theGroup);
41 Handle(TColStd_HArray1OfInteger) GetObjects(Handle(GEOM_Object) theGroup);