Salome HOME
048e56ceafaf5be03bd6e9b712c80581371cbed5
[modules/geom.git] / src / GEOMImpl / GEOMImpl_ISphere.hxx
1 //NOTE: This is an intreface to a function for the Sphere creation.
2
3
4 #include "GEOM_Function.hxx"
5
6 #define SPH_ARG_R   1
7 #define SPH_ARG_PNT 4
8
9 class GEOMImpl_ISphere
10 {
11  public:
12
13   GEOMImpl_ISphere(Handle(GEOM_Function) theFunction): _func(theFunction) {}
14
15   void SetR(double theR) { _func->SetReal(SPH_ARG_R, theR); }
16
17   double GetR() { return _func->GetReal(SPH_ARG_R); }
18
19   void SetPoint(Handle(GEOM_Function) theRefPoint) { _func->SetReference(SPH_ARG_PNT, theRefPoint); }
20
21   Handle(GEOM_Function) GetPoint() { return _func->GetReference(SPH_ARG_PNT); }
22
23  private:
24
25   Handle(GEOM_Function) _func;
26 };