Salome HOME
4c104c5d4eb96bdf3a083e95902329c6e9f1ffd5
[modules/geom.git] / src / GEOMImpl / GEOMImpl_IPipe.hxx
1 //NOTE: This is an intreface to a function for the Pipe creation.
2
3
4 #include "GEOM_Function.hxx"
5
6 #define PIPE_ARG_BASE 1
7 #define PIPE_ARG_PATH 2
8
9 class GEOMImpl_IPipe
10 {
11  public:
12
13   GEOMImpl_IPipe(Handle(GEOM_Function) theFunction): _func(theFunction) {}
14
15   void SetBase (Handle(GEOM_Function) theBase) { _func->SetReference(PIPE_ARG_BASE, theBase); }
16   void SetPath (Handle(GEOM_Function) thePath) { _func->SetReference(PIPE_ARG_PATH, thePath); }
17
18   Handle(GEOM_Function) GetBase() { return _func->GetReference(PIPE_ARG_BASE); }
19   Handle(GEOM_Function) GetPath() { return _func->GetReference(PIPE_ARG_PATH); }
20
21  private:
22
23   Handle(GEOM_Function) _func;
24 };