[vtk-developers] vtkInteractorStyleRubberBand3D::OnMouseWheelForward/Backward crashing
Goldman, Jon
jgoldma at sandia.gov
Fri Feb 29 16:23:27 EST 2008
Hi,
I checked out VTK source from the trunk today and built, and this view-based python script was crashing when I moved the mouse wheel back and forth:
from vtk import *
source = vtkSphereSource()
view = vtkRenderView()
surfaceRep = vtkSurfaceRepresentation()
surfaceRep.SetInputConnection(source.GetOutputPort())
view.AddRepresentation(surfaceRep)
window = vtkRenderWindow()
window.SetSize(600, 600)
view.SetupRenderWindow(window)
window.GetInteractor().Start()
It looks like this call is missing from the beginning of vtkInteractorStyleRubberBand3D::OnMouseWheelForward() and vtkInteractorStyleRubberBand3D::OnMouseWheelBackward() methods:
this->FindPokedRenderer(
this->Interactor->GetEventPosition()[0],
this->Interactor->GetEventPosition()[1]);
-Jon
More information about the vtk-developers
mailing list