Okay I fixed it by inheriting from vtkInteractorStyleImage instead of  vtkInteractorStyleTrackballCamerera.<br><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Nov 10, 2012 at 9:00 AM, Sahithya Wintrich <span dir="ltr">&lt;<a href="mailto:s.prakash@csuohio.edu" target="_blank">s.prakash@csuohio.edu</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I have two styles in my program: <br>1) vtkInteractorStyleImage and <br>2) Mouse and KeyPress interactor style. <br><br>

Setting &quot;SetInteractionModeToImageSlicing()&quot; on the vtkInteractorStyleImage alone produces the result of what I want. However, adding the mouse and keypress style overrides the vtkInteractorStyleImage and introduces what looks like a 2D slice with rotation. I would like to disable that. Would have my mouse and keypress class inherit from both  vtkInteractorStyleTrackballCamera and vtkInteractorStyleImage solve this issue? (relevant code below)<br>



<br>  <span style="font-family:garamond,serif"> vtkSmartPointer&lt;</span><span style="font-family:garamond,serif">vtkInteractorStyleImage&gt; style = vtkSmartPointer&lt;</span><span style="font-family:garamond,serif">vtkInteractorStyleImage&gt;::New(</span><span style="font-family:garamond,serif">);<br>


   style-&gt;</span><span style="font-family:garamond,serif">SetInteractionModeToImageSlici</span><span style="font-family:garamond,serif">ng();<br>    <br>   //create an instance of the mouse and keypress style interactor<div class="im">

<br>

    vtkSmartPointer&lt;Interaction&gt; mouseStyle =  vtkSmartPointer&lt;Interaction&gt;::</div></span><span style="font-family:garamond,serif">New();<br>    mouseStyle-&gt;</span><span style="font-family:garamond,serif">SetDefaultRenderer(renderer);<br>


    <br>    iren-&gt;SetInteractorStyle(</span><span style="font-family:garamond,serif">style);<br>    iren-&gt;SetInteractorStyle( mouseStyle );<br>
    <br>    renderWindow-&gt;SetInteractor(</span><span style="font-family:garamond,serif">iren);<br>    <br>    renderWindow-&gt;Render();<br>    <br>    vtkSmartPointer&lt;vtkCamera&gt; camera = renderer-&gt;GetActiveCamera();<br>


    camera-&gt;ParallelProjectionOn()</span><span style="font-family:garamond,serif">;<br>
    <br>    renderer-&gt;</span><span style="font-family:garamond,serif">ResetCameraClippingRange();    <br>    renderWindow-&gt;Render();<br>   <br>   <br>    iren-&gt;Start();     <br>    return EXIT_SUCCESS;</span><br>


<br>Sahithya<br><div class="gmail_extra"><br></div>
</blockquote></div><br></div>