1 //NOTE: This is an intreface to a function for the Torus creation.
4 #include "GEOM_Function.hxx"
8 #define TORUS_ARG_RMAJ 3
9 #define TORUS_ARG_RMIN 4
15 GEOMImpl_ITorus(Handle(GEOM_Function) theFunction): _func(theFunction) {}
17 void SetCenter(Handle(GEOM_Function) theP) { _func->SetReference(TORUS_ARG_CC, theP); }
18 void SetVector(Handle(GEOM_Function) theV) { _func->SetReference(TORUS_ARG_VV, theV); }
20 void SetRMajor(double theR) { _func->SetReal(TORUS_ARG_RMAJ, theR); }
21 void SetRMinor(double theR) { _func->SetReal(TORUS_ARG_RMIN, theR); }
23 Handle(GEOM_Function) GetCenter() { return _func->GetReference(TORUS_ARG_CC); }
24 Handle(GEOM_Function) GetVector() { return _func->GetReference(TORUS_ARG_VV); }
26 double GetRMajor() { return _func->GetReal(TORUS_ARG_RMAJ); }
27 double GetRMinor() { return _func->GetReal(TORUS_ARG_RMIN); }
31 Handle(GEOM_Function) _func;