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();
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();