1 //NOTE: This is an interface to a function for the Fillet and creation.
4 #include "GEOM_Function.hxx"
6 #define FILLET_ARG_SH 1
8 #define FILLET_ARG_LENG 3
9 #define FILLET_ARG_LAST 3
11 class GEOMImpl_IFillet
15 GEOMImpl_IFillet(Handle(GEOM_Function) theFunction): _func(theFunction) {}
17 void SetShape(Handle(GEOM_Function) theRef) { _func->SetReference(FILLET_ARG_SH, theRef); }
19 Handle(GEOM_Function) GetShape() { return _func->GetReference(FILLET_ARG_SH); }
21 void SetR(double theR) { _func->SetReal(FILLET_ARG_R, theR); }
23 double GetR() { return _func->GetReal(FILLET_ARG_R); }
25 void SetLength(int theLen) { _func->SetInteger(FILLET_ARG_LENG, theLen); }
27 int GetLength() { return _func->GetInteger(FILLET_ARG_LENG); }
29 void SetEdge(int theInd, int theEdge)
30 { _func->SetInteger(FILLET_ARG_LAST + theInd, theEdge); }
31 void SetFace(int theInd, int theFace)
32 { _func->SetInteger(FILLET_ARG_LAST + theInd, theFace); }
34 int GetEdge(int theInd) { return _func->GetInteger(FILLET_ARG_LAST + theInd); }
35 int GetFace(int theInd) { return _func->GetInteger(FILLET_ARG_LAST + theInd); }
39 Handle(GEOM_Function) _func;