]> SALOME platform Git repositories - modules/geom.git/blob - src/GEOMImpl/GEOMImpl_IMirror.hxx
Salome HOME
Merge with version on tag OCC-V2_1_0d
[modules/geom.git] / src / GEOMImpl / GEOMImpl_IMirror.hxx
1 //NOTE: This is an intreface to a function for the Mirror creation.
2
3
4 #include "GEOM_Function.hxx"
5
6 #define MIRROR_ARG_ORIGINAL 1
7 #define MIRROR_ARG_PLANE    2
8 #define MIRROR_ARG_AXIS     3
9 #define MIRROR_ARG_POINT    4
10
11 class GEOMImpl_IMirror
12 {
13  public:
14
15   GEOMImpl_IMirror(Handle(GEOM_Function) theFunction): _func(theFunction) {}
16
17   void SetOriginal(Handle(GEOM_Function) theShape) { _func->SetReference(MIRROR_ARG_ORIGINAL, theShape); }
18   void SetPlane   (Handle(GEOM_Function) thePlane) { _func->SetReference(MIRROR_ARG_PLANE, thePlane); }
19   void SetAxis    (Handle(GEOM_Function) theAxis ) { _func->SetReference(MIRROR_ARG_AXIS , theAxis ); }
20   void SetPoint   (Handle(GEOM_Function) thePoint) { _func->SetReference(MIRROR_ARG_POINT, thePoint); }
21
22   Handle(GEOM_Function) GetOriginal() { return _func->GetReference(MIRROR_ARG_ORIGINAL); }
23   Handle(GEOM_Function) GetPlane()    { return _func->GetReference(MIRROR_ARG_PLANE); }
24   Handle(GEOM_Function) GetAxis ()    { return _func->GetReference(MIRROR_ARG_AXIS ); }
25   Handle(GEOM_Function) GetPoint()    { return _func->GetReference(MIRROR_ARG_POINT); }
26   
27  private:
28
29   Handle(GEOM_Function) _func;
30 };