From d4df6f6e6d222fbfd43e207e098e3b7e60547c3b Mon Sep 17 00:00:00 2001 From: apo Date: Tue, 18 Oct 2005 15:31:49 +0000 Subject: [PATCH] Patch on Bug GVIEW10227 Highlighted group of elements remains in 3D viewer. --- src/VVTK/VVTK_ViewWindow.cxx | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/VVTK/VVTK_ViewWindow.cxx b/src/VVTK/VVTK_ViewWindow.cxx index 59bab6e1..b8561daa 100755 --- a/src/VVTK/VVTK_ViewWindow.cxx +++ b/src/VVTK/VVTK_ViewWindow.cxx @@ -80,17 +80,17 @@ VVTK_ViewWindow SVTK_RenderWindowInteractor* anIteractor = new SVTK_RenderWindowInteractor(myMainWindow1,"SVTK_RenderWindowInteractor1"); - VVTK_Renderer1* aRenderer = VVTK_Renderer1::New(); - aRenderer->Initialize(anIteractor->GetDevice(),aSelector); - anImplicitFunctionWidget = aRenderer->GetImplicitFunctionWidget(); - aRenderer->SetOutsideCursorSettings(anOutsideCursorSettings); - aRenderer->SetPickingSettings(aPickingSettings); - SVTK_GenericRenderWindowInteractor* aDevice = SVTK_GenericRenderWindowInteractor::New(); aDevice->SetRenderWidget(anIteractor); aDevice->SetSelector(aSelector); + VVTK_Renderer1* aRenderer = VVTK_Renderer1::New(); + aRenderer->Initialize(aDevice,aSelector); + anImplicitFunctionWidget = aRenderer->GetImplicitFunctionWidget(); + aRenderer->SetOutsideCursorSettings(anOutsideCursorSettings); + aRenderer->SetPickingSettings(aPickingSettings); + anIteractor->Initialize(aDevice,aRenderer,aSelector); SVTK_InteractorStyle* aStyle = SVTK_InteractorStyle::New(); @@ -113,16 +113,16 @@ VVTK_ViewWindow SVTK_RenderWindowInteractor* anIteractor = new SVTK_RenderWindowInteractor(myMainWindow2,"SVTK_RenderWindowInteractor1"); - VVTK_Renderer2* aRenderer = VVTK_Renderer2::New(); - aRenderer->Initialize(anIteractor->GetDevice(),aSelector); - aRenderer->SetImplicitFunctionWidget(anImplicitFunctionWidget); - aRenderer->SetPickingSettings(aPickingSettings); - SVTK_GenericRenderWindowInteractor* aDevice = SVTK_GenericRenderWindowInteractor::New(); aDevice->SetRenderWidget(anIteractor); aDevice->SetSelector(aSelector); + VVTK_Renderer2* aRenderer = VVTK_Renderer2::New(); + aRenderer->Initialize(aDevice,aSelector); + aRenderer->SetImplicitFunctionWidget(anImplicitFunctionWidget); + aRenderer->SetPickingSettings(aPickingSettings); + anIteractor->Initialize(aDevice,aRenderer,aSelector); SVTK_InteractorStyle* aStyle = SVTK_InteractorStyle::New(); -- 2.39.2