1 //NOTE: This is an intreface to a function for the Revolution creation.
4 #include "GEOM_Function.hxx"
6 #define REVOL_ARG_ANGLE 1
7 #define REVOL_ARG_AXIS 2
8 #define REVOL_ARG_BASE 3
10 class GEOMImpl_IRevolution
14 GEOMImpl_IRevolution(Handle(GEOM_Function) theFunction): _func(theFunction) {}
16 void SetAngle(double theAngle) { _func->SetReal(REVOL_ARG_ANGLE, theAngle); }
18 double GetAngle() { return _func->GetReal(REVOL_ARG_ANGLE); }
20 void SetAxis(Handle(GEOM_Function) theRefAxis) { _func->SetReference(REVOL_ARG_AXIS, theRefAxis); }
22 Handle(GEOM_Function) GetAxis() { return _func->GetReference(REVOL_ARG_AXIS); }
24 void SetBase(Handle(GEOM_Function) theRefBase) { _func->SetReference(REVOL_ARG_BASE, theRefBase); }
26 Handle(GEOM_Function) GetBase() { return _func->GetReference(REVOL_ARG_BASE); }
30 Handle(GEOM_Function) _func;