Salome HOME
Merge with version on tag OCC-V2_1_0d
[modules/geom.git] / src / GEOMImpl / GEOMImpl_ILine.hxx
1 //NOTE: This is an intreface to a function for the vector creation.
2
3
4 #include "GEOM_Function.hxx"
5
6 #define LINE_ARG_PNT1 1
7 #define LINE_ARG_PNT2 2
8
9 class GEOMImpl_ILine
10 {
11  public:
12
13   GEOMImpl_ILine(Handle(GEOM_Function) theFunction): _func(theFunction) {}
14
15   void SetPoint1(Handle(GEOM_Function) theRef) { _func->SetReference(LINE_ARG_PNT1, theRef); }
16   void SetPoint2(Handle(GEOM_Function) theRef) { _func->SetReference(LINE_ARG_PNT2, theRef); }
17
18   Handle(GEOM_Function) GetPoint1() { return _func->GetReference(LINE_ARG_PNT1); }
19   Handle(GEOM_Function) GetPoint2() { return _func->GetReference(LINE_ARG_PNT2); }
20
21  private:
22
23   Handle(GEOM_Function) _func;
24 };