Salome HOME
PAL7508. Correct behaviour of GetShapesOnPlane().
[modules/geom.git] / src / GEOMImpl / GEOMImpl_IFilling.hxx
1 //NOTE: This is an intreface to a function for the Filling operation.
2
3
4 #include "GEOM_Function.hxx"
5
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
12
13 class GEOMImpl_IFilling
14 {
15  public:
16
17   GEOMImpl_IFilling(Handle(GEOM_Function) theFunction): _func(theFunction) {}
18  
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); } 
23   
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); } 
30
31   void SetShape(Handle(GEOM_Function) theShape) { _func->SetReference(FILL_ARG_SHAPE, theShape); }
32   Handle(GEOM_Function) GetShape() { return _func->GetReference(FILL_ARG_SHAPE); }
33
34  private:
35
36   Handle(GEOM_Function) _func;
37 };