1 //NOTE: This is an intreface to a function for the Filling operation.
4 #include "GEOM_Function.hxx"
6 #define FILL_ARG_MINDEG 1
7 #define FILL_ARG_MAXDEG 2
8 #define FILL_ARG_TOL2D 3
9 #define FILL_ARG_TOL3D 4
10 #define FILL_ARG_SHAPE 5
11 #define FILL_ARG_NBITER 6
13 class GEOMImpl_IFilling
17 GEOMImpl_IFilling(Handle(GEOM_Function) theFunction): _func(theFunction) {}
19 void SetTol2D(double theTol2D) { _func->SetReal(FILL_ARG_TOL2D, theTol2D); }
20 void SetTol3D(double theTol3D) { _func->SetReal(FILL_ARG_TOL3D, theTol3D); }
21 double GetTol2D() { return _func->GetReal(FILL_ARG_TOL2D); }
22 double GetTol3D() { return _func->GetReal(FILL_ARG_TOL3D); }
24 void SetMinDeg(int theMinDeg) { _func->SetInteger(FILL_ARG_MINDEG, theMinDeg); }
25 void SetMaxDeg(int theMaxDeg) { _func->SetInteger(FILL_ARG_MAXDEG, theMaxDeg); }
26 int GetMinDeg() { return _func->GetInteger(FILL_ARG_MINDEG); }
27 int GetMaxDeg() { return _func->GetInteger(FILL_ARG_MAXDEG); }
28 void SetNbIter(int theNbIter) { _func->SetInteger(FILL_ARG_NBITER, theNbIter); }
29 int GetNbIter() { return _func->GetInteger(FILL_ARG_NBITER); }
31 void SetShape(Handle(GEOM_Function) theShape) { _func->SetReference(FILL_ARG_SHAPE, theShape); }
32 Handle(GEOM_Function) GetShape() { return _func->GetReference(FILL_ARG_SHAPE); }
36 Handle(GEOM_Function) _func;