[vtkusers] ActiViz | Changing Window Level and Window Width in a RenderWindowControl
David Cole
dlrdave at aol.com
Sat Feb 8 08:36:39 EST 2014
Zoom, pan and rotation are built in to the default interactor style
that you get when you create a vtkRenderWindow (which the
RenderWindowControl does for you).
If you want one that provides WW/WL control in the interactor style,
you just have to instantiate a style that provides that behavior and
then set it as the current interactor style in the control's interactor.
Google around for examples on setting interactor styles, and then adapt
one of those and call the method:
renderWIndowControl.GetRenderWindow().GetInteractor().SetInteractorStyle(
..... put the new style here .....);
HTH,
David C.
More information about the vtkusers
mailing list