]> SALOME platform Git repositories - modules/geom.git/blob - src/GEOMImpl/GEOMImpl_ISketcher.hxx
Salome HOME
Merge with OCC_development_01
[modules/geom.git] / src / GEOMImpl / GEOMImpl_ISketcher.hxx
1 //NOTE: This is an interface to a function for the Sketcher creation.
2
3
4 #include "GEOM_Function.hxx"
5
6 #define SKETCH_ARG_CMD 1
7 #define SKETCH_ARG_WPLANE 2
8
9 class GEOMImpl_ISketcher
10 {
11  public:
12
13   GEOMImpl_ISketcher(Handle(GEOM_Function) theFunction): _func(theFunction) {}
14
15   void SetCommand(const TCollection_AsciiString& theCommand)
16   { _func->SetString(SKETCH_ARG_CMD, theCommand); }
17
18   TCollection_AsciiString GetCommand() { return _func->GetString(SKETCH_ARG_CMD); }
19
20   void SetWorkingPlane(int theInd, double theValue)
21               { _func->SetReal(SKETCH_ARG_WPLANE + theInd, theValue); }
22
23   double GetWorkingPlane(int theInd) { return _func->GetReal(SKETCH_ARG_WPLANE + theInd); }
24
25  private:
26
27   Handle(GEOM_Function) _func;
28 };