Salome HOME
Merge with version on tag OCC-V2_1_0d
[modules/geom.git] / src / GEOMImpl / GEOMImpl_IMeasure.hxx
1 // NOTE: This is an interface to a functions for the Measurement
2
3
4 #include "GEOM_Function.hxx"
5
6 #define MEASURE_ARG_BASE 1
7
8 class GEOMImpl_IMeasure
9 {
10  public:
11
12   GEOMImpl_IMeasure(Handle(GEOM_Function) theFunction): _func(theFunction) {}
13
14   void SetBase(Handle(GEOM_Function) theRefBase)
15   { _func->SetReference(MEASURE_ARG_BASE, theRefBase); }
16
17   Handle(GEOM_Function) GetBase() { return _func->GetReference(MEASURE_ARG_BASE); }
18
19  private:
20
21   Handle(GEOM_Function) _func;
22 };