1 //NOTE: This is an intreface to a function for the Scale creation.
4 #include "GEOM_Function.hxx"
6 #define SCALE_ARG_SHAPE 1
7 #define SCALE_ARG_VALUE 2
8 #define SCALE_ARG_POINT 3
14 GEOMImpl_IScale(Handle(GEOM_Function) theFunction): _func(theFunction) {}
16 void SetShape(Handle(GEOM_Function) theShape) { _func->SetReference(SCALE_ARG_SHAPE, theShape); }
18 Handle(GEOM_Function) GetShape() { return _func->GetReference(SCALE_ARG_SHAPE); }
20 void SetFactor(double theValue) { _func->SetReal(SCALE_ARG_VALUE, theValue); }
22 double GetFactor() { return _func->GetReal(SCALE_ARG_VALUE); }
24 void SetPoint(Handle(GEOM_Function) thePoint) { _func->SetReference(SCALE_ARG_POINT, thePoint); }
26 Handle(GEOM_Function) GetPoint() { return _func->GetReference(SCALE_ARG_POINT); }
30 Handle(GEOM_Function) _func;