1 //NOTE: This is an intreface to a function for the Cone creation.
4 #include "GEOM_Function.hxx"
10 #define CONE_ARG_VEC 5
16 GEOMImpl_ICone(Handle(GEOM_Function) theFunction): _func(theFunction) {}
18 void SetR1(double theR) { _func->SetReal(CONE_ARG_R1, theR); }
20 double GetR1() { return _func->GetReal(CONE_ARG_R1); }
22 void SetR2(double theR) { _func->SetReal(CONE_ARG_R2, theR); }
24 double GetR2() { return _func->GetReal(CONE_ARG_R2); }
26 void SetH(double theH) { _func->SetReal(CONE_ARG_H, theH); }
28 double GetH() { return _func->GetReal(CONE_ARG_H); }
30 void SetPoint(Handle(GEOM_Function) theRefPoint) { _func->SetReference(CONE_ARG_PNT, theRefPoint); }
32 Handle(GEOM_Function) GetPoint() { return _func->GetReference(CONE_ARG_PNT); }
34 void SetVector(Handle(GEOM_Function) theRefVector) { _func->SetReference(CONE_ARG_VEC, theRefVector); }
36 Handle(GEOM_Function) GetVector() { return _func->GetReference(CONE_ARG_VEC); }
40 Handle(GEOM_Function) _func;