1 //NOTE: This is an intreface to a function for the vector creation.
4 #include "GEOM_Function.hxx"
6 #define LINE_ARG_PNT1 1
7 #define LINE_ARG_PNT2 2
13 GEOMImpl_ILine(Handle(GEOM_Function) theFunction): _func(theFunction) {}
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); }
18 Handle(GEOM_Function) GetPoint1() { return _func->GetReference(LINE_ARG_PNT1); }
19 Handle(GEOM_Function) GetPoint2() { return _func->GetReference(LINE_ARG_PNT2); }
23 Handle(GEOM_Function) _func;