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->AddObserver(vtkCommand::InteractionEvent,myCallback);<br>myOrthoPlane2->AddObserver(vtkCommand::InteractionEvent,myCallback);<br>myOrthoPlane3->AddObserver(vtkCommand::InteractionEvent,myCallback);<br>
<br>myCallback(vtkObject* vtk_obj...)<br>{<br> vtkImagePlaneWidget* planeWidget = vtkImagePlaneWidget::SafeDownCast(vtk_obj);<br> //use a mix of <br> planeWidget->GetPlaneOrientation()<br> //and a mix of <br> planeWidget->GetSlicePosition()<br>
//to update your 2D imageviewer corresponding to the 3D plane widget<br> my2DImageViewer->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 <<a href="mailto:dean.inglis@sympatico.ca">dean.inglis@sympatico.ca</a>> 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;"> </span></font></p>
<p><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;">my_vtkImageActor->SetInput( my_vtkImagePlaneWidget->GetResliceOutput()
)</span></font></p>
<p><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;"> </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;"> </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;"> </span></font></p>
<p><font size="2" face="Arial"><span style="font-size: 10pt; font-family: Arial;"> </span></font></p>
<pre><font size="2" face="Courier New"><span style="font-size: 10pt;">>I'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;">>vtkImagePlaneWidgets. I'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;">>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;">>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;"> </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>