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_WPLANE 2
9 class GEOMImpl_ISketcher
13 GEOMImpl_ISketcher(Handle(GEOM_Function) theFunction): _func(theFunction) {}
15 void SetCommand(const TCollection_AsciiString& theCommand)
16 { _func->SetString(SKETCH_ARG_CMD, theCommand); }
18 TCollection_AsciiString GetCommand() { return _func->GetString(SKETCH_ARG_CMD); }
20 void SetWorkingPlane(int theInd, double theValue)
21 { _func->SetReal(SKETCH_ARG_WPLANE + theInd, theValue); }
23 double GetWorkingPlane(int theInd) { return _func->GetReal(SKETCH_ARG_WPLANE + theInd); }
27 Handle(GEOM_Function) _func;