]> Creatis software - creaMaracasVisu.git/blobdiff - lib/maracasVisuLib/src/interface/wxWindows/widgets/wxVtkBaseView.cxx
*** empty log message ***
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / wxVtkBaseView.cxx
index 748c88cf267196d0b7607dac16e18b6f7331bbc2..17c3616c058f56dccf4d5a6d3bb130754e04067b 100644 (file)
@@ -209,7 +209,13 @@ void wxVtkBaseView::Refresh()  // virtual
        #if defined(WIN32)
                _iren->Refresh(false);
        #else
-               _iren->Render();
+       
+//EED 01Avril2009
+//             _iren->Render();        
+       vtkRenderWindowInteractor *vri = GetWxVTKRenderWindowInteractor();
+       vri->vtkRenderWindowInteractor::Render();
+       
+       
                //_iren->Refresh();
        #endif
 
@@ -1201,7 +1207,7 @@ vtkTextActor *vtkInfoTextImage::Create_Text_Label(int px, int py )
        // Text Window Level
        vtkTextActor *textActor = vtkTextActor::New();
        textActor->SetDisplayPosition(px, py);
-       textActor->SetInput("--");
+       textActor->SetInput("0");
 
        // Set coordinates to match the old vtkScaledTextActor default value
        textActor->GetPosition2Coordinate()->SetCoordinateSystemToNormalizedViewport();
@@ -1341,7 +1347,7 @@ void vtkInfoTextImage::PutPixelIntensity(int xx, int yy, int zz)
        
        char zTzxt[20];
        char resultText[50];
-       strcpy(resultText,"NG: ");
+       strcpy(resultText,"GL: ");
        if (ok==true) {
                unsigned short *pOrg=(unsigned short*)imagedata->GetScalarPointer ((int)xx,(int)yy,(int)zz);
 //             itoa (*pOrg,zTzxt,10);
@@ -1549,7 +1555,7 @@ void wxVtk2DBaseView::Configure(bool okimage)
                        camera->SetClippingRange( 0.01                  , 1000000 );
                        camera->ComputeViewPlaneNormal();
                        camera->SetParallelScale( spx*(x2-x1)/3.0 );
-
+                       
                        // text information over the graphic window
                        _vtkIinfoTextImage                              = new vtkInfoTextImage();
                        _vtkIinfoTextImageInteractor    = new vtkInfoTextImageInteractor();