I'm having trouble setting up a zoom functionality into my vtkContextView. Currently, I create vtkContextView, and put its vtkRenderWindow into a QVTKWidget so it shows up on my GUI.<div><br></div><div>I've tried using a vtkInteractorStyleImage as vtkContextView's interactor style, with no success.</div>
<div><br></div><div><div><font class="Apple-style-span" face="tahoma, sans-serif"><font class="Apple-style-span" color="#666666">contextView->GetScene()->SetInteractorStyle(</font></font></div><div><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" face="tahoma, sans-serif"><font class="Apple-style-span" color="#666666">                </font></font></span><font class="Apple-style-span" face="tahoma, sans-serif"><font class="Apple-style-span" color="#666666">vtkSmartPointer<vtkInteractorStyleImage>::New());</font></font></div>
<div><font class="Apple-style-span" face="tahoma, sans-serif"><font class="Apple-style-span" color="#666666"><br></font></font></div><div><div><font class="Apple-style-span" face="tahoma, sans-serif"><font class="Apple-style-span" color="#666666">vtkSmartPointer<QVTKInteractor> renderWindowInteractor = vtkSmartPointer<QVTKInteractor>::New();</font></font></div>
<div><font class="Apple-style-span" face="tahoma, sans-serif"><font class="Apple-style-span" color="#666666">renderWindowInteractor->SetRenderWindow(contextView->GetRenderWindow());</font></font></div><div><font class="Apple-style-span" face="tahoma, sans-serif"><font class="Apple-style-span" color="#666666">renderWindowInteractor->Initialize();</font></font></div>
</div><div><font class="Apple-style-span" face="tahoma, sans-serif"><font class="Apple-style-span" color="#666666">renderWindowInteractor->SetInteractorStyle(vtkSmartPointer<vtkInteractorStyleImage>::New());</font></font></div>
<div><br></div><div><br></div><div> Is there a proper way to set up zoom / pan functionality in these vtkContextViews?</div></div>