[vtkusers] How to turn off rotation of vtkResliceImageViewer

Kahei Lok lokkahei.uniyccc4 at gmail.com
Mon Sep 16 00:47:56 EDT 2013


Dear John,
     Thanks for your quick reply. I will try it.
2013/9/16 John Drescher <drescherjm at gmail.com>

>
>
>
>  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/00040109/attachment.htm>


More information about the vtkusers mailing list