// SetActive(false);
_imageViewer2XYZ -> GetVtkImageViewer2() -> SetupInteractor ( iren );
- SetInteractorStyleImage( vtkInteractorStyleBaseView2D::New() );
+ //////////////
+ //RaC 04-2010 Look for the description of new changes in vtkInteractorStyleBaseView2D constructor.
+ //
+ // Previous version
+ // SetInteractorStyleImage( vtkInteractorStyleBaseView2D::New() );
+ //
+ // Actual version
+ vtkInteractorStyleBaseView2D *style2D = vtkInteractorStyleBaseView2D::New();
+
+ manualInteractorWindowLevel *_manualinteractorwindowlevel= new manualInteractorWindowLevel();
+ style2D->SetInteractorWindowLevel( _manualinteractorwindowlevel );
+
+ vtkInteractorScrollZ *_vtkInteractorScrollZ = new vtkInteractorScrollZ();
+ style2D->SetInteractorScrollZ(_vtkInteractorScrollZ);
+
+ SetInteractorStyleImage( style2D );
+
+ // RaC
+ //////////////
_interactorstyleplane2D = new vtkInteractorStylePlane2D();
((vtkInteractorStyleBaseView*)GetInteractorStyleBaseView())->AddInteractorStyleMaracas( _interactorstyleplane2D );
_vtkInfoTextImageInteractorPlane2D->SetModelVtkInfoTextImage(_vtkInfoTextImage);
_vtkInfoTextImage->Configure();
((vtkInteractorStyleBaseView*)this->GetInteractorStyleBaseView())->AddInteractorStyleMaracas(_vtkInfoTextImageInteractorPlane2D);
-
-
}
//-------------------------------------------------------------------
_lineActor->GetProperty()->SetOpacity(opacity);
}
// ----------------------------------------------------------------------------
-void vtkPlane2DView::TransfromeCoordViewWorld2(double &X, double &Y, double &Z)
+void vtkPlane2DView::TransfromCoordViewWorld2(double &X, double &Y, double &Z)
{
double spc[3];
GetVtkmprbasedata()->GetImageData()->GetSpacing(spc);
double yy = Y;
double zz = 0;
- TransfromeCoordScreenToWorld(xx,yy,zz);
+ TransFromCoordScreenToWorld(xx,yy,zz);
vtkTransform *transf1 = vtkTransform::New();
X = out[0] + GetVtkmprbasedata()->GetX() ;
Y = out[1] + GetVtkmprbasedata()->GetY() ;
Z = out[2] + GetVtkmprbasedata()->GetZ() ;
+}
-}
\ No newline at end of file