]> SALOME platform Git repositories - modules/geom.git/blob - src/GEOMImpl/GEOMImpl_IOffset.hxx
Salome HOME
Merge with version on tag OCC-V2_1_0d
[modules/geom.git] / src / GEOMImpl / GEOMImpl_IOffset.hxx
1 //NOTE: This is an intreface to a function for the Offset creation.
2
3
4 #include "GEOM_Function.hxx"
5
6 #define OFF_ARG_SHAPE 1
7 #define OFF_ARG_VALUE 2
8
9 class GEOMImpl_IOffset
10 {
11  public:
12
13   GEOMImpl_IOffset(Handle(GEOM_Function) theFunction): _func(theFunction) {}
14
15   void SetShape(Handle(GEOM_Function) theShape) { _func->SetReference(OFF_ARG_SHAPE, theShape); }
16
17   Handle(GEOM_Function) GetShape() { return _func->GetReference(OFF_ARG_SHAPE); }
18
19   void SetValue(double theValue) { _func->SetReal(OFF_ARG_VALUE, theValue); }
20
21   double GetValue() { return _func->GetReal(OFF_ARG_VALUE); }
22
23  private:
24
25   Handle(GEOM_Function) _func;
26 };