[vtkusers] How to turn off rotation of vtkResliceImageViewer
John Drescher
drescherjm at gmail.com
Mon Sep 16 00:36:26 EDT 2013
On Mon, Sep 16, 2013 at 12:33 AM, Kahei Lok <lokkahei.uniyccc4 at gmail.com>wrote:
> Dear VTK,
>
> I am using vtkResliceImageViewer to display DICOM image. There is a 2D
> cross-hair build in to intersect with the Image. At first, rotating the
> cross-hair will result reslice axis chnage. However, I would like to turn
> off the rotaton function. How can I do that?
>
>
Make your own subclass of the vtkInteractorStyle you are using and disable
the rotation in your style. Its pretty easy to do once you look at the code
for the interactor styles.
John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20130916/fe2b463d/attachment.htm>
More information about the vtkusers
mailing list