1 //NOTE: This is an intreface to a function for the Circle creation.
4 #include "GEOM_Function.hxx"
14 class GEOMImpl_ICircle
18 GEOMImpl_ICircle(Handle(GEOM_Function) theFunction): _func(theFunction) {}
20 void SetPoint1(Handle(GEOM_Function) theP) { _func->SetReference(CIRC_ARG_P1, theP); }
21 void SetPoint2(Handle(GEOM_Function) theP) { _func->SetReference(CIRC_ARG_P2, theP); }
22 void SetPoint3(Handle(GEOM_Function) theP) { _func->SetReference(CIRC_ARG_P3, theP); }
24 void SetCenter(Handle(GEOM_Function) theP) { _func->SetReference(CIRC_ARG_CC, theP); }
25 void SetVector(Handle(GEOM_Function) theV) { _func->SetReference(CIRC_ARG_VV, theV); }
27 void SetRadius(double theR) { _func->SetReal(CIRC_ARG_RR, theR); }
29 Handle(GEOM_Function) GetPoint1() { return _func->GetReference(CIRC_ARG_P1); }
30 Handle(GEOM_Function) GetPoint2() { return _func->GetReference(CIRC_ARG_P2); }
31 Handle(GEOM_Function) GetPoint3() { return _func->GetReference(CIRC_ARG_P3); }
33 Handle(GEOM_Function) GetCenter() { return _func->GetReference(CIRC_ARG_CC); }
34 Handle(GEOM_Function) GetVector() { return _func->GetReference(CIRC_ARG_VV); }
36 double GetRadius() { return _func->GetReal(CIRC_ARG_RR); }
40 Handle(GEOM_Function) _func;