]> Creatis software - creaMaracasVisu.git/blobdiff - lib/maracasVisuLib/src/interface/wxWindows/widgets/vtkInteractorStyleBaseView2D.cxx
#3263 creaMaracasVisu Feature New Normal - ViewerNV sync ParallelScale Camera
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / vtkInteractorStyleBaseView2D.cxx
index e077370577783109afb801e0aa48251100750dfc..36b64db0ea7aa49b276ad238c1ca77a11802236a 100644 (file)
@@ -45,6 +45,11 @@ vtkInteractorStyleBaseView2D::vtkInteractorStyleBaseView2D()
        //
        // _vtkInteractorScrollZ = new vtkInteractorScrollZ();
        // AddInteractorStyleMaracas(_vtkInteractorScrollZ);
+       //
+       //_vtkInteractorZoomCamera = interactorZoomcamera;
+       //AddInteractorStyleMaracas(_vtkInteractorZoomCamera);
+       //
+       //
        ////////////
 }
 //---------------------------------------------------------------------------
@@ -66,12 +71,22 @@ void  vtkInteractorStyleBaseView2D::SetInteractorWindowLevel(manualInteractorWin
        AddInteractorStyleMaracas(_manualinteractorwindowlevel);
 }
 
+
+//---------------------------------------------------------------------------
+void  vtkInteractorStyleBaseView2D::SetInteractorZoomCamera(vtkInteractorZoomCamera* interactorZoomcamera)
+{    
+       _vtkInteractorZoomCamera = interactorZoomcamera;
+       AddInteractorStyleMaracas(_vtkInteractorZoomCamera);
+}
+
+
 //---------------------------------------------------------------------------
 void  vtkInteractorStyleBaseView2D::OnRightButtonDown()  // virtual
 {    
        vtkInteractorStyleBaseView::OnRightButtonDown();
 
-       if ((GetInteractor()->GetControlKey()==1) && (GetInteractor()->GetShiftKey()==0) ){
+       if ((GetInteractor()->GetControlKey()==1) && (GetInteractor()->GetShiftKey()==0) )
+       {
                this->vtkInteractorStyleImage::OnRightButtonDown();
        }
 }
@@ -82,12 +97,14 @@ void  vtkInteractorStyleBaseView2D::OnRightButtonUp()  // virtual
        vtkInteractorStyleBaseView::OnRightButtonUp();
        this->vtkInteractorStyleImage::OnRightButtonUp();
 }
+
 //---------------------------------------------------------------------------
 void  vtkInteractorStyleBaseView2D::OnMouseMove () // virtual
 {
        vtkInteractorStyleBaseView::OnMouseMove();
        this->vtkInteractorStyleImage::OnMouseMove();
 }
+
 //---------------------------------------------------------------------------
 void  vtkInteractorStyleBaseView2D::OnLeftButtonDown() // virtual
 {
@@ -98,6 +115,7 @@ void  vtkInteractorStyleBaseView2D::OnLeftButtonDown() // virtual
                this->vtkInteractorStyleImage::OnLeftButtonDown();
        }
 }
+
 //---------------------------------------------------------------------------
 void  vtkInteractorStyleBaseView2D::OnLeftButtonUp () // virtual
 {
@@ -105,6 +123,7 @@ void  vtkInteractorStyleBaseView2D::OnLeftButtonUp () // virtual
 
        this->vtkInteractorStyleImage::OnLeftButtonUp();
 }
+
 //---------------------------------------------------------------------------
 void  vtkInteractorStyleBaseView2D::OnMiddleButtonDown () // virtual
 {
@@ -115,6 +134,7 @@ void  vtkInteractorStyleBaseView2D::OnMiddleButtonDown () // virtual
                this->vtkInteractorStyleImage::OnLeftButtonDown();
        }
 }
+
 //---------------------------------------------------------------------------
 void vtkInteractorStyleBaseView2D::OnMiddleButtonUp () // virtual
 {