mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2024-11-16 10:38:34 +05:00
29 lines
676 B
C++
29 lines
676 B
C++
|
// NOTE: This is an interface to a function for the Glueing of faces
|
||
|
|
||
|
|
||
|
#include "GEOM_Function.hxx"
|
||
|
|
||
|
#define GLUE_ARG_BASE 1
|
||
|
#define GLUE_ARG_TOLER 2
|
||
|
|
||
|
class GEOMImpl_IGlue
|
||
|
{
|
||
|
public:
|
||
|
|
||
|
GEOMImpl_IGlue(Handle(GEOM_Function) theFunction): _func(theFunction) {}
|
||
|
|
||
|
void SetBase(Handle(GEOM_Function) theRefBase)
|
||
|
{ _func->SetReference(GLUE_ARG_BASE, theRefBase); }
|
||
|
|
||
|
Handle(GEOM_Function) GetBase() { return _func->GetReference(GLUE_ARG_BASE); }
|
||
|
|
||
|
void SetTolerance(const Standard_Real theTolerance)
|
||
|
{ _func->SetReal(GLUE_ARG_TOLER, theTolerance); }
|
||
|
|
||
|
Standard_Real GetTolerance() { return _func->GetReal(GLUE_ARG_TOLER); }
|
||
|
|
||
|
private:
|
||
|
|
||
|
Handle(GEOM_Function) _func;
|
||
|
};
|