1 //NOTE: This is an intreface to a function for the Rotate operation.
4 #include "GEOM_Function.hxx"
10 #define ROTATE_NBITER1 5
11 #define ROTATE_NBITER2 6
13 class GEOMImpl_IRotate
17 GEOMImpl_IRotate(Handle(GEOM_Function) theFunction): _func(theFunction) {}
19 void SetAngle(Standard_Real theAngle) { _func->SetReal(ROTATE_ANGLE, theAngle); }
21 Standard_Real GetAngle() { return _func->GetReal(ROTATE_ANGLE); }
23 void SetAxis(Handle(GEOM_Function) theVector) { _func->SetReference(ROTATE_AXIS, theVector); }
25 Handle(GEOM_Function) GetAxis() { return _func->GetReference(ROTATE_AXIS); }
27 void SetOriginal(Handle(GEOM_Function) theOriginal) { _func->SetReference(ROTATE_ORGN, theOriginal); }
29 Handle(GEOM_Function) GetOriginal() { return _func->GetReference(ROTATE_ORGN); }
31 void SetStep(double theStep) { return _func->SetReal(ROTATE_STEP1, theStep); }
33 double GetStep() { return _func->GetReal(ROTATE_STEP1); }
35 void SetNbIter1(int theNbIter) { _func->SetInteger(ROTATE_NBITER1, theNbIter); }
37 int GetNbIter1() { return _func->GetInteger(ROTATE_NBITER1); }
39 void SetNbIter2(int theNbIter) { _func->SetInteger(ROTATE_NBITER2, theNbIter); }
41 int GetNbIter2() { return _func->GetInteger(ROTATE_NBITER2); }
46 Handle(GEOM_Function) _func;