A vtkHandleWidget (with a vtkPointHandleRepresentation3D and a vtkImageActorPointPlacer) should do the job for you. However the interactions across the views will have to be handled by you, using a callback-observer mechanism. Its appearance (red-blue-green lines) etc will also have to tailored to your look and feel by subclassing the representation.<br>
<br><div class="gmail_quote">On Fri, Oct 8, 2010 at 4:27 AM, Xiaofeng Z <span dir="ltr"><<a href="mailto:xf10036@hotmail.com">xf10036@hotmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div>
I'm working on a software uses multiplanar rendering. It seems to be a standard feature in MPR to have the cross-hair for moving the focal point, e.g. the blue, green, and red lines in the the following screen shot.<br>
<br>
<a href="http://ircadeits.vo.llnwd.net/o15/www.ircad.fr/softwares/vr-render/Documentation/_images/5_NEGATO-01.jpg" target="_blank">http://ircadeits.vo.llnwd.net/o15/www.ircad.fr/softwares/vr-render/Documentation/_images/5_NEGATO-01.jpg</a><br>
<br>I'm wondering if a widget of such already exist in VTK. If not, would anyone so kind to point me a direction how to implement one.<br>
<br>
Thanks!<br>
<br>
Xiaofeng Z<br><br><br> <br>
<hr>
From: <a href="mailto:xf10036@hotmail.com" target="_blank">xf10036@hotmail.com</a><br>To: <a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a><br>Date: Thu, 7 Oct 2010 16:08:29 -0400<br>Subject: [vtkusers] Crosshair on 2D medical image display<div>
<div></div><div class="h5"><br><br>
Hello vtkUsers,<br> <br>I'm wondering what's the best way the make the crosshair overlay on medical image displayed in 2D. Is a customized vtkHandleWidget the way to go?<br><br>Thanks!<br><br>Xiaofeng Z<br><br><br>
<br></div></div>_______________________________________________ Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a> Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a> Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a> Follow this link to subscribe/unsubscribe: <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a>                                            </div>
<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<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>