]> SALOME platform Git repositories - modules/geom.git/blobdiff - src/GEOMImpl/GEOMImpl_ISketcher.hxx
Salome HOME
PAL9166. Add possibility to make sketcher on an existing plane
[modules/geom.git] / src / GEOMImpl / GEOMImpl_ISketcher.hxx
index 74912ff38b27c216382b8fb3e8734ba26d99f3f0..b32dab4d60eaef410411790d53901f311133ddb5 100644 (file)
@@ -4,7 +4,8 @@
 #include "GEOM_Function.hxx"
 
 #define SKETCH_ARG_CMD 1
-#define SKETCH_ARG_WPLANE 2
+#define SKETCH_ARG_DOUBLE 2
+#define SKETCH_ARG_WPLANE 12
 
 class GEOMImpl_ISketcher
 {
@@ -18,9 +19,14 @@ class GEOMImpl_ISketcher
   TCollection_AsciiString GetCommand() { return _func->GetString(SKETCH_ARG_CMD); }
 
   void SetWorkingPlane(int theInd, double theValue)
-              { _func->SetReal(SKETCH_ARG_WPLANE + theInd, theValue); }
+              { _func->SetReal(SKETCH_ARG_DOUBLE + theInd, theValue); }
 
-  double GetWorkingPlane(int theInd) { return _func->GetReal(SKETCH_ARG_WPLANE + theInd); }
+  double GetWorkingPlane(int theInd) { return _func->GetReal(SKETCH_ARG_DOUBLE + theInd); }
+
+  void SetWorkingPlane(Handle(GEOM_Function) thePlane)
+              { _func->SetReference(SKETCH_ARG_WPLANE, thePlane); }
+
+  Handle(GEOM_Function) GetWorkingPlane() { return _func->GetReference(SKETCH_ARG_WPLANE); }
 
  private: