]> Creatis software - creaMaracasVisu.git/blobdiff - lib/maracasVisuLib/src/interface/wxWindows/widgets/wxVtk2DBaseView.cxx
#3473 Stuck Render macOS
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / wxVtk2DBaseView.cxx
index 5337c807149d005d81571e3b5aa476a66779726a..618488f93713d78c071fbc30f56c31c3806c83cb 100644 (file)
@@ -97,7 +97,7 @@ void wxVtk2DBaseView::TransformCoordinate_spacing_ModelToView(double &X,double &
 //-------------------------------------------------------------------
 void wxVtk2DBaseView::ResetView()
 {
-       printf("EED wxVtk2DBaseView::ResetView");
+       printf("EED wxVtk2DBaseView::ResetView Start\n");
        double spx = 0,spy = 0,spz = 0;
        int x1 = 1,x2 = 1,y1 = 1,y2 = 1,z1 = 1,z2 = 1;
        wxVtkBaseView::Configure();
@@ -124,7 +124,7 @@ printf("//EED wxVtk2DBaseView::ResetView %d %d    %d %d     %d %d \n",x1,x2,y1,y
 //EED 24oct2010
     _imageViewer2XYZ->GetVtkImageViewer2()->GetWindowLevel()->Modified();
 
-       _imageViewer2XYZ->GetVtkImageViewer2()->Render();
+//EED2120-06-23        _imageViewer2XYZ->GetVtkImageViewer2()->Render();
 
        //////////////
        //RaC 04-2010 Look for the description of new changes in vtkInteractorStyleBaseView2D constructor.
@@ -150,6 +150,7 @@ printf("//EED wxVtk2DBaseView::ResetView %d %d    %d %d     %d %d \n",x1,x2,y1,y
 
        // RaC
        //////////////
+    printf("EED wxVtk2DBaseView::ResetView End\n");
 
 }
 
@@ -334,6 +335,7 @@ void wxVtk2DBaseView::UpdateCameraParallelScale()
 //-------------------------------------------------------------------
 void wxVtk2DBaseView::Refresh()
 {
+printf("EED wxVtk2DBaseView::Refresh Start\n");
        int z = (int)(GetVtkBaseData()->GetZ());
        _imageViewer2XYZ->SetZSlice( z );
 //EED 2016/02/19
@@ -343,6 +345,7 @@ void wxVtk2DBaseView::Refresh()
        UpdateColorWindowLevel();       
        UpdateCameraParallelScale();    
        wxVtkBaseView::Refresh();
+printf("EED wxVtk2DBaseView::Refresh End\n");
 }
 
 //-------------------------------------------------------------------
@@ -426,3 +429,13 @@ int wxVtk2DBaseView::GetDirection() // virtual
     return 2;
 }
 
+//-------------------------------------------------------------------
+void wxVtk2DBaseView::SetOpacityText(double opacity)
+{
+       if (_vtkIinfoTextImage!=NULL)
+       {
+               _vtkIinfoTextImage->SetOpacity( opacity );
+       }
+}
+
+