Salome HOME
Merge with version on tag OCC-V2_1_0d
[modules/geom.git] / src / GEOMImpl / GEOMImpl_IPosition.hxx
1 //NOTE: This is an intreface to a function for the Setting In Position.
2
3
4 #include "GEOM_Function.hxx"
5
6 #define POSITION_ARG_SHAPE 1
7 #define POSITION_ARG_START_LCS 2
8 #define POSITION_ARG_END_LCS 3
9
10 class GEOMImpl_IPosition
11 {
12  public:
13
14   GEOMImpl_IPosition(Handle(GEOM_Function) theFunction): _func(theFunction) {}
15
16   void SetShape(Handle(GEOM_Function) theShape) { _func->SetReference(POSITION_ARG_SHAPE, theShape); }
17
18   Handle(GEOM_Function) GetShape() { return _func->GetReference(POSITION_ARG_SHAPE); }
19
20   void SetStartLCS(Handle(GEOM_Function) theStartLCS)
21   { _func->SetReference(POSITION_ARG_START_LCS, theStartLCS); }
22
23   Handle(GEOM_Function) GetStartLCS() { return _func->GetReference(POSITION_ARG_START_LCS); }
24
25   void SetEndLCS(Handle(GEOM_Function) theEndLCS)
26   { _func->SetReference(POSITION_ARG_END_LCS, theEndLCS); }
27
28   Handle(GEOM_Function) GetEndLCS() { return _func->GetReference(POSITION_ARG_END_LCS); }
29
30  private:
31
32   Handle(GEOM_Function) _func;
33 };