]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Patch on Bug GVIEW10227
authorapo <apo@opencascade.com>
Tue, 18 Oct 2005 15:31:49 +0000 (15:31 +0000)
committerapo <apo@opencascade.com>
Tue, 18 Oct 2005 15:31:49 +0000 (15:31 +0000)
  Highlighted group of elements remains in 3D viewer.

src/VVTK/VVTK_ViewWindow.cxx

index 59bab6e17cdcb76537f8cfc0f3de1de55344be86..b8561daaadf2637d26fe2f3e58b29f853e9dc830 100755 (executable)
@@ -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();