1 //NOTE: This is an intreface to a function for the Prism creation.
4 #include "GEOM_Function.hxx"
7 #define PRISM_ARG_VEC 2
8 #define PRISM_ARG_BASE 3
9 #define PRISM_ARG_PNT_F 4
10 #define PRISM_ARG_PNT_L 5
16 GEOMImpl_IPrism(Handle(GEOM_Function) theFunction): _func(theFunction) {}
18 void SetBase (Handle(GEOM_Function) theRefBase ) { _func->SetReference(PRISM_ARG_BASE, theRefBase); }
19 void SetVector(Handle(GEOM_Function) theRefVector) { _func->SetReference(PRISM_ARG_VEC , theRefVector); }
20 void SetFirstPoint(Handle(GEOM_Function) thePoint) { _func->SetReference(PRISM_ARG_PNT_F, thePoint); }
21 void SetLastPoint (Handle(GEOM_Function) thePoint) { _func->SetReference(PRISM_ARG_PNT_L, thePoint); }
23 Handle(GEOM_Function) GetBase () { return _func->GetReference(PRISM_ARG_BASE); }
24 Handle(GEOM_Function) GetVector() { return _func->GetReference(PRISM_ARG_VEC ); }
25 Handle(GEOM_Function) GetFirstPoint() { return _func->GetReference(PRISM_ARG_PNT_F ); }
26 Handle(GEOM_Function) GetLastPoint () { return _func->GetReference(PRISM_ARG_PNT_L ); }
28 void SetH(double theH) { _func->SetReal(PRISM_ARG_H, theH); }
30 double GetH() { return _func->GetReal(PRISM_ARG_H); }
34 Handle(GEOM_Function) _func;