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