1 //NOTE: This is an intreface to a function for the vector creation.
4 #include "GEOM_Function.hxx"
10 #define PLN_ARG_PNT3 4
20 GEOMImpl_IPlane(Handle(GEOM_Function) theFunction): _func(theFunction) {}
22 void SetSize(double theSize) { _func->SetReal(PLN_ARG_SIZE, theSize); }
24 double GetSize() { return _func->GetReal(PLN_ARG_SIZE); }
26 void SetPoint (Handle(GEOM_Function) theRef) { _func->SetReference(PLN_ARG_PNT1, theRef); }
27 void SetVector(Handle(GEOM_Function) theRef) { _func->SetReference(PLN_ARG_VEC , theRef); }
29 void SetFace (Handle(GEOM_Function) theRef) { _func->SetReference(PLN_ARG_REF , theRef); }
31 void SetPoint1(Handle(GEOM_Function) theRef) { _func->SetReference(PLN_ARG_PNT1, theRef); }
32 void SetPoint2(Handle(GEOM_Function) theRef) { _func->SetReference(PLN_ARG_PNT2, theRef); }
33 void SetPoint3(Handle(GEOM_Function) theRef) { _func->SetReference(PLN_ARG_PNT3, theRef); }
35 Handle(GEOM_Function) GetPoint () { return _func->GetReference(PLN_ARG_PNT1); }
36 Handle(GEOM_Function) GetVector() { return _func->GetReference(PLN_ARG_VEC ); }
38 Handle(GEOM_Function) GetFace () { return _func->GetReference(PLN_ARG_REF ); }
40 Handle(GEOM_Function) GetPoint1() { return _func->GetReference(PLN_ARG_PNT1); }
41 Handle(GEOM_Function) GetPoint2() { return _func->GetReference(PLN_ARG_PNT2); }
42 Handle(GEOM_Function) GetPoint3() { return _func->GetReference(PLN_ARG_PNT3); }
46 Handle(GEOM_Function) _func;