]> SALOME platform Git repositories - modules/geom.git/blob - src/GEOMImpl/GEOMImpl_IGroupOperations.hxx
Salome HOME
PAL7968. Two new functions implemented: UnionList() and DifferenceList().
[modules/geom.git] / src / GEOMImpl / GEOMImpl_IGroupOperations.hxx
1
2 #ifndef _GEOMImpl_IGroupOperations_HXX_
3 #define _GEOMImpl_IGroupOperations_HXX_
4
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 <TopAbs.hxx>
12
13 class GEOMImpl_IGroupOperations : public GEOM_IOperations {
14  public:
15   GEOMImpl_IGroupOperations(GEOM_Engine* theEngine, int theDocID);
16   ~GEOMImpl_IGroupOperations();
17
18   Handle(GEOM_Object) CreateGroup(Handle(GEOM_Object) theMainShape, TopAbs_ShapeEnum  theShapeType);
19
20   void AddObject(Handle(GEOM_Object) theGroup, int theSubShapeID);
21
22   void RemoveObject(Handle(GEOM_Object) theGroup, int theSubShapeID);
23
24   void UnionList (Handle(GEOM_Object) theGroup,
25                   const Handle(TColStd_HSequenceOfTransient)& theSubShapes);
26
27   void DifferenceList (Handle(GEOM_Object) theGroup,
28                        const Handle(TColStd_HSequenceOfTransient)& theSubShapes);
29
30   TopAbs_ShapeEnum GetType(Handle(GEOM_Object) theGroup);
31
32   Handle(GEOM_Object) GetMainShape(Handle(GEOM_Object) theGroup);
33
34   Handle(TColStd_HArray1OfInteger) GetObjects(Handle(GEOM_Object) theGroup);
35
36 };
37
38 #endif