1 //NOTE: This is an intreface to a function for the Archimede operation.
4 #include "GEOM_Function.hxx"
11 class GEOMImpl_IArchimede
15 GEOMImpl_IArchimede(Handle(GEOM_Function) theFunction): _func(theFunction) {}
17 void SetWeight(Standard_Real theWeight) { _func->SetReal(ARG_WEIGHT, theWeight); }
19 Standard_Real GetWeight() { return _func->GetReal(ARG_WEIGHT); }
21 void SetDensity(Standard_Real theDensity) { _func->SetReal(ARG_DENSITY, theDensity); }
23 Standard_Real GetDensity() { return _func->GetReal(ARG_DENSITY); }
25 void SetDeflection(Standard_Real theDeflection) { _func->SetReal(ARG_DEFLECT, theDeflection); }
27 Standard_Real GetDeflection() { return _func->GetReal(ARG_DEFLECT); }
29 void SetBasicShape(Handle(GEOM_Function) theShape) { _func->SetReference(ARG_SHAPE, theShape); }
31 Handle(GEOM_Function) GetBasicShape() { return _func->GetReference(ARG_SHAPE); }
35 Handle(GEOM_Function) _func;