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>
13 class GEOMImpl_IGroupOperations : public GEOM_IOperations {
15 GEOMImpl_IGroupOperations(GEOM_Engine* theEngine, int theDocID);
16 ~GEOMImpl_IGroupOperations();
18 Handle(GEOM_Object) CreateGroup(Handle(GEOM_Object) theMainShape, TopAbs_ShapeEnum theShapeType);
20 void AddObject(Handle(GEOM_Object) theGroup, int theSubShapeID);
22 void RemoveObject(Handle(GEOM_Object) theGroup, int theSubShapeID);
24 void UnionList (Handle(GEOM_Object) theGroup,
25 const Handle(TColStd_HSequenceOfTransient)& theSubShapes);
27 void DifferenceList (Handle(GEOM_Object) theGroup,
28 const Handle(TColStd_HSequenceOfTransient)& theSubShapes);
30 TopAbs_ShapeEnum GetType(Handle(GEOM_Object) theGroup);
32 Handle(GEOM_Object) GetMainShape(Handle(GEOM_Object) theGroup);
34 Handle(TColStd_HArray1OfInteger) GetObjects(Handle(GEOM_Object) theGroup);