Salome HOME
Merge with version on tag OCC-V2_1_0d
[modules/geom.git] / src / GEOMImpl / GEOMImpl_ISpline.hxx
1 //NOTE: This is an intreface to a function for the Spline creation.
2
3
4 #include "GEOM_Function.hxx"
5
6 #define SPL_ARG_LENG 1
7 #define SPL_ARG_LAST 1
8
9 class GEOMImpl_ISpline
10 {
11  public:
12
13   GEOMImpl_ISpline(Handle(GEOM_Function) theFunction): _func(theFunction) {}
14
15   void SetLength(int theLen) { _func->SetInteger(SPL_ARG_LENG, theLen); }
16
17   void SetPoint(int theId, Handle(GEOM_Function) theP) { _func->SetReference(SPL_ARG_LAST + theId, theP); }
18
19   int GetLength() { return _func->GetInteger(SPL_ARG_LENG); }
20
21   Handle(GEOM_Function) GetPoint(int theId) { return _func->GetReference(SPL_ARG_LAST + theId); }
22
23  private:
24
25   Handle(GEOM_Function) _func;
26 };