<div>But how do I know what interaction style I am using if I just simply using the example <font color="#000000">QtVTKRenderWindows</font></div>
<div><a href="https://github.com/Kitware/VTK/blob/master/Examples/GUI/Qt/FourPaneViewer/QtVTKRenderWindows.cxx">https://github.com/Kitware/VTK/blob/master/Examples/GUI/Qt/FourPaneViewer/QtVTKRenderWindows.cxx</a></div>
<div> </div>
<div>
<div id="LC138" class="line"> <span class="k">this</span><span class="o">-></span><span class="n">ui</span><span class="o">-></span><span class="n">view1</span><span class="o">-></span><span class="n">SetRenderWindow</span><span class="p">(</span><span class="n">riw</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span><span class="o">-></span><span class="n">GetRenderWindow</span><span class="p">());</span></div>
<div id="LC139" class="line"> <span class="n">riw</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span><span class="o">-></span><span class="n">SetupInteractor</span><span class="p">(</span><span class="k">this</span><span class="o">-></span><span class="n">ui</span><span class="o">-></span><span class="n">view1</span><span class="o">-></span><span class="n">GetRenderWindow</span><span class="p">()</span><span class="o">-></span><span class="n">GetInteractor</span><span class="p">());</span></div>
<br><br></div>
<div class="gmail_quote">2013/9/16 Kahei Lok <span dir="ltr"><<a href="mailto:lokkahei.uniyccc4@gmail.com" target="_blank">lokkahei.uniyccc4@gmail.com</a>></span><br>
<blockquote style="BORDER-LEFT:#ccc 1px solid;MARGIN:0px 0px 0px 0.8ex;PADDING-LEFT:1ex" class="gmail_quote">
<div>Dear John,</div>
<div> Thanks for your quick reply. I will try it.<br></div>
<div>
<div>
<div class="gmail_quote">2013/9/16 John Drescher <span dir="ltr"><<a href="mailto:drescherjm@gmail.com" target="_blank">drescherjm@gmail.com</a>></span><br>
<blockquote style="BORDER-LEFT:#ccc 1px solid;MARGIN:0px 0px 0px 0.8ex;PADDING-LEFT:1ex" class="gmail_quote">
<div dir="ltr"><br>
<div class="gmail_extra"><br><br>
<div class="gmail_quote">
<div>On Mon, Sep 16, 2013 at 12:33 AM, Kahei Lok <span dir="ltr"><<a href="mailto:lokkahei.uniyccc4@gmail.com" target="_blank">lokkahei.uniyccc4@gmail.com</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT:#ccc 1px solid;MARGIN:0px 0px 0px 0.8ex;PADDING-LEFT:1ex" class="gmail_quote">
<div>Dear VTK,</div>
<div> </div>
<div> 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?</div>
<div> </div> </blockquote>
<div><br></div></div>
<div>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.<span><font color="#888888"><br><br></font></span></div>
<span><font color="#888888">
<div>John <br></div></font></span></div></div></div></blockquote></div><br></div></div></blockquote></div><br>