From 57adfd187b9593c215c17fae4666cb8b5b54ae54 Mon Sep 17 00:00:00 2001 From: apo Date: Wed, 28 Dec 2005 16:00:35 +0000 Subject: [PATCH] To provide save / restore Gauss Points configuration functionality --- src/SVTK/SVTK_RenderWindowInteractor.cxx | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/src/SVTK/SVTK_RenderWindowInteractor.cxx b/src/SVTK/SVTK_RenderWindowInteractor.cxx index aa2a98210..c66e0456f 100644 --- a/src/SVTK/SVTK_RenderWindowInteractor.cxx +++ b/src/SVTK/SVTK_RenderWindowInteractor.cxx @@ -82,6 +82,11 @@ QVTK_RenderWindowInteractor myRenderWindow->Delete(); myRenderWindow->DoubleBufferOn(); + +#ifndef WNT + myRenderWindow->SetDisplayId((void*)x11Display()); +#endif + myRenderWindow->SetWindowId((void*)winId()); } @@ -150,11 +155,10 @@ QVTK_RenderWindowInteractor { // Final initialization just before the widget is displayed GetDevice()->SetSize(width(),height()); -#ifndef WNT - getRenderWindow()->SetDisplayId((void*)x11Display()); -#endif - getRenderWindow()->SetWindowId((void*)winId()); - GetDevice()->Enable(); + if(!GetDevice()->GetInitialized()){ + GetDevice()->Initialize(); + GetDevice()->ConfigureEvent(); + } } //---------------------------------------------------------------------------- @@ -170,13 +174,7 @@ void QVTK_RenderWindowInteractor ::paintEvent( QPaintEvent* theEvent ) { - if(GetDevice()->GetEnabled()){ - if(!GetDevice()->GetInitialized()){ - GetDevice()->Initialize(); - GetDevice()->ConfigureEvent(); - } - GetDevice()->Render(); - } + GetDevice()->Render(); } -- 2.39.2