Salome HOME
PAL7508. Correct behaviour of GetShapesOnPlane().
[modules/geom.git] / src / GEOMImpl / GEOMImpl_ICone.hxx
1 //NOTE: This is an intreface to a function for the Cone creation.
2
3
4 #include "GEOM_Function.hxx"
5
6 #define CONE_ARG_R1  1
7 #define CONE_ARG_R2  2
8 #define CONE_ARG_H   3
9 #define CONE_ARG_PNT 4
10 #define CONE_ARG_VEC 5
11
12 class GEOMImpl_ICone
13 {
14  public:
15
16   GEOMImpl_ICone(Handle(GEOM_Function) theFunction): _func(theFunction) {}
17
18   void SetR1(double theR) { _func->SetReal(CONE_ARG_R1, theR); }
19
20   double GetR1() { return _func->GetReal(CONE_ARG_R1); }
21
22   void SetR2(double theR) { _func->SetReal(CONE_ARG_R2, theR); }
23
24   double GetR2() { return _func->GetReal(CONE_ARG_R2); }
25
26   void SetH(double theH) { _func->SetReal(CONE_ARG_H, theH); }
27
28   double GetH() { return _func->GetReal(CONE_ARG_H); }
29
30   void SetPoint(Handle(GEOM_Function) theRefPoint) { _func->SetReference(CONE_ARG_PNT, theRefPoint); }
31
32   Handle(GEOM_Function) GetPoint() { return _func->GetReference(CONE_ARG_PNT); }
33
34   void SetVector(Handle(GEOM_Function) theRefVector) { _func->SetReference(CONE_ARG_VEC, theRefVector); }
35
36   Handle(GEOM_Function) GetVector() { return _func->GetReference(CONE_ARG_VEC); }
37
38  private:
39
40   Handle(GEOM_Function) _func;
41 };