1 //NOTE: This is an intreface to a function for the Cylinder creation.
4 #include "GEOM_Function.hxx"
11 class GEOMImpl_ICylinder
15 GEOMImpl_ICylinder(Handle(GEOM_Function) theFunction): _func(theFunction) {}
17 void SetR(double theR) { _func->SetReal(CYL_ARG_R, theR); }
19 double GetR() { return _func->GetReal(CYL_ARG_R); }
21 void SetH(double theH) { _func->SetReal(CYL_ARG_H, theH); }
23 double GetH() { return _func->GetReal(CYL_ARG_H); }
25 void SetPoint(Handle(GEOM_Function) theRefPoint) { _func->SetReference(CYL_ARG_PNT, theRefPoint); }
27 Handle(GEOM_Function) GetPoint() { return _func->GetReference(CYL_ARG_PNT); }
29 void SetVector(Handle(GEOM_Function) theRefVector) { _func->SetReference(CYL_ARG_VEC, theRefVector); }
31 Handle(GEOM_Function) GetVector() { return _func->GetReference(CYL_ARG_VEC); }
35 Handle(GEOM_Function) _func;