void wxVtkBaseView::Refresh() // virtual
{
printf("EED wxVtkBaseView::Refresh \n");
-
- if (firstTimeOnPaint==true)
+
+ vtkRenderWindowInteractor *vri = GetWxVTKRenderWindowInteractor();
+
+ if (GetWxVTKRenderWindowInteractor()->firstTimeOnPaint==true)
{
// EED 10 Oct 2007
#if defined(WIN32)
_iren->Refresh(true);
// EED 27 sept 2016
- vtkRenderWindowInteractor *vri = GetWxVTKRenderWindowInteractor();
vri->vtkRenderWindowInteractor::Render();
#else
//EED 01Avril2009
// _iren->Render();
- vtkRenderWindowInteractor *vri = GetWxVTKRenderWindowInteractor();
-
//auto start1 = std::chrono::high_resolution_clock::now();
vri->vtkRenderWindowInteractor::Render();
//-------------------------------------------------------------------
void wxVtkBaseView::RefreshView() // virtual
{
- if (firstTimeOnPaint==true)
+ if (GetWxVTKRenderWindowInteractor()->firstTimeOnPaint==true)
{
printf("EED wxVtkBaseView::RefreshView \n");
// EED 10 Oct 2007