[vtkusers] Problemas with Zoom - VTK and QT

Leandro Gazoni lgazoni at gmail.com
Mon Mar 20 13:11:49 EDT 2017


Hello,

I'm doing a test where I'd like to use class:
vtkInteractorStyleRubberBandZoom. I have a Qt application that works the
iteration with my model with no problems, but when I try to use
vtkInteractorStyleRubberBandZoom I can not get back to iterating with my
original template.
I wish I could turn on and off a zoom function, could anyone help me?


void GUIModelling::zoomSelectionStart()
{
    vtkSmartPointer<vtkInteractorStyleRubberBandZoom> style =
vtkSmartPointer<vtkInteractorStyleRubberBandZoom>::New();
style->SetInteractor(this->QVTKWidgetDefault->GetInteractor());

this->QVTKWidgetDefault->GetRenderWindow()->GetInteractor()->SetInteractorStyle(style);

this->QVTKWidgetDefault->update();
    this->QVTKWidgetDefault->GetRenderWindow()->Render();
  this->QVTKWidgetDefault->GetRenderWindow()->Start();
}

Atenciosamente,
Leandro Gazoni

<#m_-7921914138724889259_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20170320/1f23964c/attachment.html>


More information about the vtkusers mailing list