1 //NOTE: This is an interface to a function for the Sketcher creation.
4 #include "GEOM_Function.hxx"
6 #define SKETCH_ARG_CMD 1
7 #define SKETCH_ARG_DOUBLE 2
8 #define SKETCH_ARG_WPLANE 12
10 class GEOMImpl_ISketcher
14 GEOMImpl_ISketcher(Handle(GEOM_Function) theFunction): _func(theFunction) {}
16 void SetCommand(const TCollection_AsciiString& theCommand)
17 { _func->SetString(SKETCH_ARG_CMD, theCommand); }
19 TCollection_AsciiString GetCommand() { return _func->GetString(SKETCH_ARG_CMD); }
21 void SetWorkingPlane(int theInd, double theValue)
22 { _func->SetReal(SKETCH_ARG_DOUBLE + theInd, theValue); }
24 double GetWorkingPlane(int theInd) { return _func->GetReal(SKETCH_ARG_DOUBLE + theInd); }
26 void SetWorkingPlane(Handle(GEOM_Function) thePlane)
27 { _func->SetReference(SKETCH_ARG_WPLANE, thePlane); }
29 Handle(GEOM_Function) GetWorkingPlane() { return _func->GetReference(SKETCH_ARG_WPLANE); }
33 Handle(GEOM_Function) _func;