Salome HOME
Modified a method createAndDisplayGO
[modules/geom.git] / src / GEOMImpl / GEOMImpl_IArchimede.hxx
1 //NOTE: This is an intreface to a function for the Archimede operation.
2
3
4 #include "GEOM_Function.hxx"
5
6 #define ARG_WEIGHT   1  
7 #define ARG_DENSITY  2
8 #define ARG_DEFLECT  3 
9 #define ARG_SHAPE    4
10
11 class GEOMImpl_IArchimede
12 {
13  public:
14   
15   GEOMImpl_IArchimede(Handle(GEOM_Function) theFunction): _func(theFunction) {}
16   
17   void SetWeight(Standard_Real theWeight) { _func->SetReal(ARG_WEIGHT, theWeight); }
18   
19   Standard_Real GetWeight() { return _func->GetReal(ARG_WEIGHT); }
20   
21   void SetDensity(Standard_Real theDensity) { _func->SetReal(ARG_DENSITY, theDensity); }
22   
23   Standard_Real GetDensity() { return _func->GetReal(ARG_DENSITY); } 
24   
25   void SetDeflection(Standard_Real theDeflection) { _func->SetReal(ARG_DEFLECT, theDeflection); }
26   
27   Standard_Real GetDeflection() { return _func->GetReal(ARG_DEFLECT); }
28   
29   void SetBasicShape(Handle(GEOM_Function) theShape) { _func->SetReference(ARG_SHAPE, theShape); }
30
31   Handle(GEOM_Function) GetBasicShape() { return _func->GetReference(ARG_SHAPE); }
32   
33  private:
34   
35   Handle(GEOM_Function) _func;  
36 };