1 //NOTE: This is an intreface to a function for the Mirror creation.
4 #include "GEOM_Function.hxx"
6 #define MIRROR_ARG_ORIGINAL 1
7 #define MIRROR_ARG_PLANE 2
8 #define MIRROR_ARG_AXIS 3
9 #define MIRROR_ARG_POINT 4
11 class GEOMImpl_IMirror
15 GEOMImpl_IMirror(Handle(GEOM_Function) theFunction): _func(theFunction) {}
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); }
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); }
29 Handle(GEOM_Function) _func;