#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
bool vtkInteractorScrollZ::OnMouseMove ()
{
if (_stateFordware==true){
- //int fx = _vtkInteractorStyleBaseView->GetInteractor()->GetEventPosition()[0];
+ //int fx = _vtkInteractorStyleBaseView->GetInteractor()->GetEventPosition()[0]; // JPRx
int fy = _vtkInteractorStyleBaseView->GetInteractor()->GetEventPosition()[1];
int delta = (_fordwareY - fy)/3;
_vtkInteractorStyleBaseView->GetWxVtk2DBaseView()->SetActualSlice( _sliceZ + delta);
// this->vtkInteractorStyleTrackballCamera::OnMouseMove();
- // int x = this->Interactor->GetEventPosition()[0];
- // int y = this->Interactor->GetEventPosition()[1];
+ // int x = this->Interactor->GetEventPosition()[0]; // JPRx
+ // int y = this->Interactor->GetEventPosition()[1]; // JPRx
// vtkRenderWindowInteractor *rwi = this->Interactor;
- // int lx = rwi->GetLastEventPosition()[0];
- // int ly = rwi->GetLastEventPosition()[1];
- // int dx = rwi->GetEventPosition()[0] ;
- // int dy = rwi->GetEventPosition()[1] ;
+ // int lx = rwi->GetLastEventPosition()[0]; // JPRx
+ // int ly = rwi->GetLastEventPosition()[1]; // JPRx
+ // int dx = rwi->GetEventPosition()[0] ; // JPRx
+ // int dy = rwi->GetEventPosition()[1] ; // JPRx
switch (this->State)
// 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();