#include "wxVtkBaseView.h"
+
vtkStandardNewMacro(vtkInteractorStyleBaseView);
vtkStandardNewMacro(vtkInteractorStyleBaseView2D);
vtkStandardNewMacro(vtkInteractorStyleBaseView3D);
#if defined(WIN32)
_iren->Refresh(false);
#else
- _iren->Render();
+
+//EED 01Avril2009
+// _iren->Render();
+ vtkRenderWindowInteractor *vri = GetWxVTKRenderWindowInteractor();
+ vri->vtkRenderWindowInteractor::Render();
+
+
//_iren->Refresh();
#endif
// 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();
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);
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();