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<br>


    vtkSmartPointer&lt;Interaction&gt; mouseStyle =  vtkSmartPointer&lt;Interaction&gt;::</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>