You can use 3 vtkImageViewer2 to display your planes in 2D:<br><br>vtkImageViewer2::SetInput(my3DImageData)<br>vtkImageViewer2::SetOrientation(XY or XZ or YZ)<br>vtkImageViewer2::SetSlice(slice)<br><br>With your 3 3D orthogonal planes, add the observers:<br>
myOrthoPlane1-&gt;AddObserver(vtkCommand::InteractionEvent,myCallback);<br>myOrthoPlane2-&gt;AddObserver(vtkCommand::InteractionEvent,myCallback);<br>myOrthoPlane3-&gt;AddObserver(vtkCommand::InteractionEvent,myCallback);<br>
<br>myCallback(vtkObject* vtk_obj...)<br>{<br>&nbsp; vtkImagePlaneWidget* planeWidget = vtkImagePlaneWidget::SafeDownCast(vtk_obj);<br>&nbsp; //use a mix of <br>&nbsp;&nbsp; planeWidget-&gt;GetPlaneOrientation()<br>&nbsp;//and a mix of <br>&nbsp; planeWidget-&gt;GetSlicePosition()<br>
&nbsp;//to update your 2D imageviewer corresponding to the 3D plane widget<br>&nbsp; my2DImageViewer-&gt;SetSlice()...<br>}<br><br>Hope it helps,<br>Julien.<br><br><div class="gmail_quote">On Fri, Jul 4, 2008 at 3:04 PM, Dean Inglis &lt;<a href="mailto:dean.inglis@sympatico.ca">dean.inglis@sympatico.ca</a>&gt; wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">








<div link="blue" vlink="purple" lang="EN-CA">

<div>

<p><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;">Hi David,</span></font></p>

<p><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;">&nbsp;</span></font></p>

<p><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;">my_vtkImageActor-&gt;SetInput( my_vtkImagePlaneWidget-&gt;GetResliceOutput()
)</span></font></p>

<p><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;">&nbsp;</span></font></p>

<p><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;">and you may have to do other things, like add a callback to listen
to the </span></font></p>

<p><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;">widget's InteractionEvent to tell the renderer to ResetCameraClippingRange.</span></font></p>

<p><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;">&nbsp;</span></font></p><font color="#888888">

<p><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;">Dean</span></font></p></font><div class="Ih2E3d">

<p><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;">&nbsp;</span></font></p>

<p><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;">&nbsp;</span></font></p>

<pre><font size="2" face="Courier New"><span style="font-size: 10pt;">&gt;I&#39;ve got an orthogonal rendering of some 3D data with 3 </span></font></pre><pre><font size="2" face="Courier New"><span style="font-size: 10pt;">&gt;vtkImagePlaneWidgets. I&#39;d like to be able to display each plane as a </span></font></pre>
<pre><font size="2" face="Courier New"><span style="font-size: 10pt;">&gt;separate 2D image which would get updated as the corresponding plane </span></font></pre><pre><font size="2" face="Courier New"><span style="font-size: 10pt;">&gt;widget is altered (if the slice index is changed, for instance).</span></font></pre>


<p><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;">&nbsp;</span></font></p>

</div></div>

</div>


<br>_______________________________________________<br>
This is the private VTK discussion list.<br>
Please keep messages on-topic. Check the FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br>