1 //NOTE: This is an intreface to a function for the Offset creation.
4 #include "GEOM_Function.hxx"
6 #define OFF_ARG_SHAPE 1
7 #define OFF_ARG_VALUE 2
13 GEOMImpl_IOffset(Handle(GEOM_Function) theFunction): _func(theFunction) {}
15 void SetShape(Handle(GEOM_Function) theShape) { _func->SetReference(OFF_ARG_SHAPE, theShape); }
17 Handle(GEOM_Function) GetShape() { return _func->GetReference(OFF_ARG_SHAPE); }
19 void SetValue(double theValue) { _func->SetReal(OFF_ARG_VALUE, theValue); }
21 double GetValue() { return _func->GetReal(OFF_ARG_VALUE); }
25 Handle(GEOM_Function) _func;