Salome HOME
a5566d26daa65649e8546adbc79d5bf5c3732623
[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 <TColStd_HSequenceOfInteger.hxx>
12 #include <TopAbs.hxx>
13
14 class GEOMImpl_IGroupOperations : public GEOM_IOperations {
15  public:
16   Standard_EXPORT GEOMImpl_IGroupOperations(GEOM_Engine* theEngine, int theDocID);
17   Standard_EXPORT ~GEOMImpl_IGroupOperations();
18
19   Standard_EXPORT Handle(GEOM_Object) CreateGroup(Handle(GEOM_Object) theMainShape, TopAbs_ShapeEnum  theShapeType);
20
21   Standard_EXPORT void AddObject(Handle(GEOM_Object) theGroup, int theSubShapeID);
22
23   Standard_EXPORT void RemoveObject(Handle(GEOM_Object) theGroup, int theSubShapeID);
24
25   Standard_EXPORT void UnionList (Handle(GEOM_Object) theGroup,
26                   const Handle(TColStd_HSequenceOfTransient)& theSubShapes);
27
28   Standard_EXPORT void DifferenceList (Handle(GEOM_Object) theGroup,
29                        const Handle(TColStd_HSequenceOfTransient)& theSubShapes);
30
31   Standard_EXPORT void UnionIDs (Handle(GEOM_Object) theGroup,
32                  const Handle(TColStd_HSequenceOfInteger)& theSubShapes);
33
34   Standard_EXPORT void DifferenceIDs (Handle(GEOM_Object) theGroup,
35                       const Handle(TColStd_HSequenceOfInteger)& theSubShapes);
36
37   Standard_EXPORT TopAbs_ShapeEnum GetType(Handle(GEOM_Object) theGroup);
38
39   Standard_EXPORT Handle(GEOM_Object) GetMainShape(Handle(GEOM_Object) theGroup);
40
41   Standard_EXPORT Handle(TColStd_HArray1OfInteger) GetObjects(Handle(GEOM_Object) theGroup);
42
43 };
44
45 #endif