[vtkusers] Issue with vtkInteractorStyleSwitchBase and vtkMFCWindow

Marcus D. Hanwell marcus.hanwell at kitware.com
Wed Jan 22 13:53:37 EST 2014


On Wed, Jan 22, 2014 at 10:10 AM, Doug Hoppes <dhoppes at mbfbioscience.com> wrote:
>                 I got the latest release of VTK and have noticed a warning
> that is now showing up.  I’m using the VTKMFCWindow in my application.  In
> vtk code, this class creates the vtkWin32OpenGLRenderWindow.  In the
> constructor of the vtkRenderWindowInteractor, the InteractorStyle is set to
> use the vtkInteractorStyleSwitchBase::New()).  This causes the
> vtkInteractorStyleSwitchBase::GetInteractor() to show a warning.
>
>                 Is there a way to fix this on our side?  Or is this a bug
> with VTK?  Can we temporarily suppress the warning until the issue is
> resolved?

This is a warning generated by that class to warn that interactor
styles likely won't behave the way you expect. It was requested due to
interaction silently failing in applications, you can fix it by
linking to vtkInteractionStyle which will provide the expected
override.

Marcus


More information about the vtkusers mailing list