1 //NOTE: This is an intreface to a function for the Setting In Position.
4 #include "GEOM_Function.hxx"
6 #define POSITION_ARG_SHAPE 1
7 #define POSITION_ARG_START_LCS 2
8 #define POSITION_ARG_END_LCS 3
10 class GEOMImpl_IPosition
14 GEOMImpl_IPosition(Handle(GEOM_Function) theFunction): _func(theFunction) {}
16 void SetShape(Handle(GEOM_Function) theShape) { _func->SetReference(POSITION_ARG_SHAPE, theShape); }
18 Handle(GEOM_Function) GetShape() { return _func->GetReference(POSITION_ARG_SHAPE); }
20 void SetStartLCS(Handle(GEOM_Function) theStartLCS)
21 { _func->SetReference(POSITION_ARG_START_LCS, theStartLCS); }
23 Handle(GEOM_Function) GetStartLCS() { return _func->GetReference(POSITION_ARG_START_LCS); }
25 void SetEndLCS(Handle(GEOM_Function) theEndLCS)
26 { _func->SetReference(POSITION_ARG_END_LCS, theEndLCS); }
28 Handle(GEOM_Function) GetEndLCS() { return _func->GetReference(POSITION_ARG_END_LCS); }
32 Handle(GEOM_Function) _func;