geom/src/GEOMImpl/GEOMImpl_IMeasure.hxx

23 lines
477 B
C++
Raw Normal View History

2004-12-01 15:39:14 +05:00
// NOTE: This is an interface to a functions for the Measurement
#include "GEOM_Function.hxx"
#define MEASURE_ARG_BASE 1
class GEOMImpl_IMeasure
{
public:
GEOMImpl_IMeasure(Handle(GEOM_Function) theFunction): _func(theFunction) {}
void SetBase(Handle(GEOM_Function) theRefBase)
{ _func->SetReference(MEASURE_ARG_BASE, theRefBase); }
Handle(GEOM_Function) GetBase() { return _func->GetReference(MEASURE_ARG_BASE); }
private:
Handle(GEOM_Function) _func;
};