1 //NOTE: This is an intreface to a function for the Common, Cut and Fuse creation.
4 #include "GEOM_Function.hxx"
6 #define BOOL_ARG_SHAPE1 1
7 #define BOOL_ARG_SHAPE2 2
9 class GEOMImpl_IBoolean
13 GEOMImpl_IBoolean(Handle(GEOM_Function) theFunction): _func(theFunction) {}
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); }
18 Handle(GEOM_Function) GetShape1() { return _func->GetReference(BOOL_ARG_SHAPE1); }
19 Handle(GEOM_Function) GetShape2() { return _func->GetReference(BOOL_ARG_SHAPE2); }
23 Handle(GEOM_Function) _func;