vtkSetMacro(UseCaptureMouse,int);
vtkBooleanMacro(UseCaptureMouse,int);
+ bool firstTimeOnPaint;
+
#if VTK_MAJOR_VERSION > 5 || (VTK_MAJOR_VERSION == 5 && VTK_MINOR_VERSION >= 2)
protected:
virtual int InternalCreateTimer(int timerId, int timerType, unsigned long duration);
this->Device=vtkTDxMacDevice::New();
#endif
+ firstTimeOnPaint=false;
}
//---------------------------------------------------------------------------
wxVTKRenderWindowInteractor::wxVTKRenderWindowInteractor(wxWindow *parent,
this->Device=vtkTDxMacDevice::New();
#endif
+ firstTimeOnPaint=false;
+
}
//---------------------------------------------------------------------------
}
#endif
#endif
-
+ firstTimeOnPaint=true;
}
+
//---------------------------------------------------------------------------
void wxVTKRenderWindowInteractor::OnEraseBackground(wxEraseEvent &event)
{
//turn off background erase to reduce flickering on MSW
event.Skip(false);
}
+
//---------------------------------------------------------------------------
void wxVTKRenderWindowInteractor::OnSize(wxSizeEvent& WXUNUSED(event))
{
int w, h;
GetClientSize(&w, &h);
UpdateSize(w, h);
-
if (!Enabled)
- {
- return;
- }
-
+ {
+ return;
+ }
#if VTK_MAJOR_VERSION > 4 || (VTK_MAJOR_VERSION == 4 && VTK_MINOR_VERSION > 0)
InvokeEvent(vtkCommand::ConfigureEvent, NULL);
#endif
//this will check for Handle
//Render();
}
+
//---------------------------------------------------------------------------
void wxVTKRenderWindowInteractor::OnMotion(wxMouseEvent &event)
{