Salome HOME
Merge with version on tag OCC-V2_1_0d
[modules/geom.git] / src / GEOMImpl / GEOMImpl_ICylinder.hxx
1 //NOTE: This is an intreface to a function for the Cylinder creation.
2
3
4 #include "GEOM_Function.hxx"
5
6 #define CYL_ARG_R   1
7 #define CYL_ARG_H   2
8 #define CYL_ARG_PNT 3
9 #define CYL_ARG_VEC 4
10
11 class GEOMImpl_ICylinder
12 {
13  public:
14
15   GEOMImpl_ICylinder(Handle(GEOM_Function) theFunction): _func(theFunction) {}
16
17   void SetR(double theR) { _func->SetReal(CYL_ARG_R, theR); }
18
19   double GetR() { return _func->GetReal(CYL_ARG_R); }
20
21   void SetH(double theH) { _func->SetReal(CYL_ARG_H, theH); }
22
23   double GetH() { return _func->GetReal(CYL_ARG_H); }
24
25   void SetPoint(Handle(GEOM_Function) theRefPoint) { _func->SetReference(CYL_ARG_PNT, theRefPoint); }
26
27   Handle(GEOM_Function) GetPoint() { return _func->GetReference(CYL_ARG_PNT); }
28
29   void SetVector(Handle(GEOM_Function) theRefVector) { _func->SetReference(CYL_ARG_VEC, theRefVector); }
30
31   Handle(GEOM_Function) GetVector() { return _func->GetReference(CYL_ARG_VEC); }
32
33  private:
34
35   Handle(GEOM_Function) _func;
36 };