1 //NOTE: This is an intreface to a function for the Box creation.
4 #include "GEOM_Function.hxx"
10 #define BOX_ARG_REF2 5
16 GEOMImpl_IBox(Handle(GEOM_Function) theFunction): _func(theFunction) {}
18 void SetDX(double theX) { _func->SetReal(BOX_ARG_DX, theX); }
20 double GetDX() { return _func->GetReal(BOX_ARG_DX); }
22 void SetDY(double theY) { _func->SetReal(BOX_ARG_DY, theY); }
24 double GetDY() { return _func->GetReal(BOX_ARG_DY); }
26 void SetDZ(double theZ) { _func->SetReal(BOX_ARG_DZ, theZ); }
28 double GetDZ() { return _func->GetReal(BOX_ARG_DZ); }
30 void SetRef1(Handle(GEOM_Function) theRefPoint1) { _func->SetReference(BOX_ARG_REF1, theRefPoint1); }
32 Handle(GEOM_Function) GetRef1() { return _func->GetReference(BOX_ARG_REF1); }
34 void SetRef2(Handle(GEOM_Function) theRefPoint2) { _func->SetReference(BOX_ARG_REF2, theRefPoint2); }
36 Handle(GEOM_Function) GetRef2() { return _func->GetReference(BOX_ARG_REF2); }
40 Handle(GEOM_Function) _func;