]> SALOME platform Git repositories - modules/geom.git/blob - src/GEOMImpl/GEOMImpl_IBoolean.hxx
Salome HOME
Merge with version on tag OCC-V2_1_0d
[modules/geom.git] / src / GEOMImpl / GEOMImpl_IBoolean.hxx
1 //NOTE: This is an intreface to a function for the Common, Cut and Fuse creation.
2
3
4 #include "GEOM_Function.hxx"
5
6 #define BOOL_ARG_SHAPE1  1
7 #define BOOL_ARG_SHAPE2  2
8
9 class GEOMImpl_IBoolean
10 {
11  public:
12
13   GEOMImpl_IBoolean(Handle(GEOM_Function) theFunction): _func(theFunction) {}
14
15   void SetShape1(Handle(GEOM_Function) theRef) { _func->SetReference(BOOL_ARG_SHAPE1, theRef); }
16   void SetShape2(Handle(GEOM_Function) theRef) { _func->SetReference(BOOL_ARG_SHAPE2, theRef); }
17
18   Handle(GEOM_Function) GetShape1() { return _func->GetReference(BOOL_ARG_SHAPE1); }
19   Handle(GEOM_Function) GetShape2() { return _func->GetReference(BOOL_ARG_SHAPE2); }
20
21  private:
22
23   Handle(GEOM_Function) _func;
24 };