]> SALOME platform Git repositories - modules/geom.git/blob - src/GEOMImpl/GEOMImpl_IScale.hxx
Salome HOME
fix for Bug IPAL9442
[modules/geom.git] / src / GEOMImpl / GEOMImpl_IScale.hxx
1 //NOTE: This is an intreface to a function for the Scale creation.
2
3
4 #include "GEOM_Function.hxx"
5
6 #define SCALE_ARG_SHAPE 1
7 #define SCALE_ARG_VALUE 2
8 #define SCALE_ARG_POINT 3
9
10 class GEOMImpl_IScale
11 {
12  public:
13
14   GEOMImpl_IScale(Handle(GEOM_Function) theFunction): _func(theFunction) {}
15
16   void SetShape(Handle(GEOM_Function) theShape) { _func->SetReference(SCALE_ARG_SHAPE, theShape); }
17
18   Handle(GEOM_Function) GetShape() { return _func->GetReference(SCALE_ARG_SHAPE); }
19
20   void SetFactor(double theValue) { _func->SetReal(SCALE_ARG_VALUE, theValue); }
21
22   double GetFactor() { return _func->GetReal(SCALE_ARG_VALUE); }
23
24   void SetPoint(Handle(GEOM_Function) thePoint) { _func->SetReference(SCALE_ARG_POINT, thePoint); }
25
26   Handle(GEOM_Function) GetPoint() { return _func->GetReference(SCALE_ARG_POINT); }
27
28  private:
29
30   Handle(GEOM_Function) _func;
31 };