Salome HOME
1cf51c9f5071d81eb78dbf8edd9f7d927e33e7a3
[modules/geom.git] / src / GEOMImpl / GEOMImpl_IGlue.hxx
1 // NOTE: This is an interface to a function for the Glueing of faces
2
3
4 #include "GEOM_Function.hxx"
5
6 #define GLUE_ARG_BASE   1
7 #define GLUE_ARG_TOLER  2
8
9 class GEOMImpl_IGlue
10 {
11  public:
12
13   GEOMImpl_IGlue(Handle(GEOM_Function) theFunction): _func(theFunction) {}
14
15   void SetBase(Handle(GEOM_Function) theRefBase)
16   { _func->SetReference(GLUE_ARG_BASE, theRefBase); }
17
18   Handle(GEOM_Function) GetBase() { return _func->GetReference(GLUE_ARG_BASE); }
19
20   void SetTolerance(const Standard_Real theTolerance)
21   { _func->SetReal(GLUE_ARG_TOLER, theTolerance); }
22
23   Standard_Real GetTolerance() { return _func->GetReal(GLUE_ARG_TOLER); }
24
25  private:
26
27   Handle(GEOM_Function) _func;
28 };