]> Creatis software - creaMaracasVisu.git/blobdiff - lib/maracasVisuLib/src/interface/wxWindows/widgets/vtkBaseData.cxx
#3481 wxVtkBaseView_Info add events mouse observer
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / vtkBaseData.cxx
index 3fdede1c3321314b05106ab65e8687c7c9ee42a4..6d8ac9aefb93e83a53b8fd80633c5ce71defe62e 100644 (file)
@@ -36,6 +36,9 @@ vtkBaseData::vtkBaseData()
        _opacityAxis                    = 1.0;
        _observable                     = vtkObject::New();
        _cameraparallelScale    = 100.0;
+    _pointMouseX            = 0;
+    _pointMouseY            = 0;
+    _pointMouseZ            = 0;
 }
 
 //-------------------------------------------------------------------
@@ -258,5 +261,19 @@ void vtkBaseData::SetCameraParallelScale(double value)
        _cameraparallelScale=value;
 }
 
+//-------------------------------------------------------------------
+void vtkBaseData::SetPointMouse(int x, int y , int z)
+{
+    _pointMouseX = x;
+    _pointMouseY = y;
+    _pointMouseZ = z;
+}
 
+//-------------------------------------------------------------------
+void vtkBaseData::GetPointMouse(int &x, int &y , int &z)
+{
+    x = _pointMouseX;
+    y = _pointMouseY;
+    z = _pointMouseZ;
+}