1 //NOTE: This is an intreface to a function for the point creation.
4 #include "GEOM_Function.hxx"
19 GEOMImpl_IPoint(Handle(GEOM_Function) theFunction): _func(theFunction) {}
21 void SetX(double theX) { _func->SetReal(ARG_X, theX); }
22 void SetY(double theY) { _func->SetReal(ARG_Y, theY); }
23 void SetZ(double theZ) { _func->SetReal(ARG_Z, theZ); }
25 double GetX() { return _func->GetReal(ARG_X); }
26 double GetY() { return _func->GetReal(ARG_Y); }
27 double GetZ() { return _func->GetReal(ARG_Z); }
29 void SetRef(Handle(GEOM_Function) theRefPoint) { _func->SetReference(ARG_REF, theRefPoint); }
31 Handle(GEOM_Function) GetRef() { return _func->GetReference(ARG_REF); }
33 void SetCurve(Handle(GEOM_Function) theRef) { _func->SetReference(ARG_CURVE, theRef); }
35 Handle(GEOM_Function) GetCurve() { return _func->GetReference(ARG_CURVE); }
37 void SetParameter(double theParam) { _func->SetReal(ARG_PARAM, theParam); }
39 double GetParameter() { return _func->GetReal(ARG_PARAM); }
43 Handle(GEOM_Function) _func;