Salome HOME
e730101d4d03274499737dad9c6781301537f253
[modules/geom.git] / src / GEOM_I / GEOM_IGroupOperations_i.hh
1
2 #ifndef _GEOM_IGroupOperations_i_HeaderFile
3 #define _GEOM_IGroupOperations_i_HeaderFile
4
5
6 #include <SALOMEconfig.h>
7
8 #include CORBA_SERVER_HEADER(GEOM_Gen)
9 #include "GEOM_IOperations_i.hh"
10 #include "GEOM_Object_i.hh"
11
12 #include "GEOMImpl_IGroupOperations.hxx"
13
14 class GEOM_IGroupOperations_i : 
15     public virtual POA_GEOM::GEOM_IGroupOperations,
16     public virtual GEOM_IOperations_i
17 {
18  public:
19   GEOM_IGroupOperations_i (PortableServer::POA_ptr thePOA, GEOM::GEOM_Gen_ptr theEngine,
20                            ::GEOMImpl_IGroupOperations* theImpl);
21   ~GEOM_IGroupOperations_i();
22
23   GEOM::GEOM_Object_ptr CreateGroup  (GEOM::GEOM_Object_ptr theMainShape, CORBA::Long theShapeType);
24  
25   void AddObject (GEOM::GEOM_Object_ptr theGroup, CORBA::Long theSubShapeId);
26
27   void RemoveObject (GEOM::GEOM_Object_ptr theGroup, CORBA::Long theSubShapeId);
28
29   void UnionList (GEOM::GEOM_Object_ptr theGroup, const GEOM::ListOfGO& theSubShapes);
30
31   void DifferenceList (GEOM::GEOM_Object_ptr theGroup, const GEOM::ListOfGO& theSubShapes);
32
33   void UnionIDs (GEOM::GEOM_Object_ptr theGroup, const GEOM::ListOfLong& theSubShapes);
34
35   void DifferenceIDs (GEOM::GEOM_Object_ptr theGroup, const GEOM::ListOfLong& theSubShapes);
36
37   CORBA::Long GetType (GEOM::GEOM_Object_ptr theGroup);
38   
39   GEOM::GEOM_Object_ptr GetMainShape (GEOM::GEOM_Object_ptr theGroup);
40
41   GEOM::ListOfLong* GetObjects (GEOM::GEOM_Object_ptr theGroup);
42
43   ::GEOMImpl_IGroupOperations* GetOperations()
44   { return (::GEOMImpl_IGroupOperations*)GetImpl(); }
45 };
46
47 #endif