]> SALOME platform Git repositories - modules/geom.git/blob - src/GEOMImpl/GEOMImpl_IBox.hxx
Salome HOME
Merge with version on tag OCC-V2_1_0d
[modules/geom.git] / src / GEOMImpl / GEOMImpl_IBox.hxx
1 //NOTE: This is an intreface to a function for the Box creation.
2
3
4 #include "GEOM_Function.hxx"
5
6 #define BOX_ARG_DX   1
7 #define BOX_ARG_DY   2
8 #define BOX_ARG_DZ   3
9 #define BOX_ARG_REF1 4
10 #define BOX_ARG_REF2 5
11
12 class GEOMImpl_IBox
13 {
14  public:
15
16   GEOMImpl_IBox(Handle(GEOM_Function) theFunction): _func(theFunction) {}
17
18   void SetDX(double theX) { _func->SetReal(BOX_ARG_DX, theX); }
19
20   double GetDX() { return _func->GetReal(BOX_ARG_DX); }
21
22   void SetDY(double theY) { _func->SetReal(BOX_ARG_DY, theY); }
23
24   double GetDY() { return _func->GetReal(BOX_ARG_DY); }
25
26   void SetDZ(double theZ) { _func->SetReal(BOX_ARG_DZ, theZ); }
27
28   double GetDZ() { return _func->GetReal(BOX_ARG_DZ); }
29
30   void SetRef1(Handle(GEOM_Function) theRefPoint1) { _func->SetReference(BOX_ARG_REF1, theRefPoint1); }
31
32   Handle(GEOM_Function) GetRef1() { return _func->GetReference(BOX_ARG_REF1); }
33
34   void SetRef2(Handle(GEOM_Function) theRefPoint2) { _func->SetReference(BOX_ARG_REF2, theRefPoint2); }
35
36   Handle(GEOM_Function) GetRef2() { return _func->GetReference(BOX_ARG_REF2); }
37
38  private:
39
40   Handle(GEOM_Function) _func;
41 };