Mark:<br><br>This depends on the representation for the handles that you <br>are passing onto the seed widget. As you may be aware, we <br>have both 2D and 3D representations. 2D representations are<br>essentially vtkActor2D's and exist on the overlay plane and will<br>
be visible across all slices. My guess is that this is what you are using.<br><br>Putting it in code....<br><br>The following will create seeds that lie on the overlay plane with<br>a behaviour you describe..<br><br> vtkSeedRepresentation *rep = vtkSeedRepresentation::New();<br>
vtkPointHandleRepresentation2D *handle =<br> vtkPointHandleRepresentation2D::New();<br> rep->SetHandleRepresentation(handle);<br><br>The following will create seeds that lies in world coordinates.<br><br> vtkSeedRepresentation *rep = vtkSeedRepresentation::New();<br>
vtkPointHandleRepresentation3D *handle =<br>
vtkPointHandleRepresentation3D::New();<br>
rep->SetHandleRepresentation(handle);<br>
<br><br><br><br><br><div class="gmail_quote">On Thu, Feb 19, 2009 at 10:07 AM, kent williams <span dir="ltr"><<a href="mailto:nkwmailinglists@gmail.com">nkwmailinglists@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I suspect that while it reports 3D points, they're really 2D, and you<br>
have to fill in the Z coordinate. You should know this anyway since<br>
you use the sliderWidget to scroll through the volume.<br>
<br>
I'm curious about your application. We're going to do the same thing<br>
for picking points of interest in a volume. Another developer in our<br>
team is working on that, so I don't have hands on experience with the<br>
vtkSeedWidget yet, but I suspect that it has the same idiosyncrasy<br>
with respect to the coordinate system in which it reports points. It<br>
has methods that have 'WorldCoordinates' in the name, but in fact, the<br>
X,Y,Z values are permuted such that X and Y are X and Y in the viewing<br>
plane, and Z is the direction perpendicular to the viewing plane.<br>
<br>
We use vtkinria3d's synchronized views instead of vtkImageViewer2, and<br>
I don't know if the idea of coordinate systems in 2D views are exactly<br>
the same, but we additionally have to negate the Y coordinate in Axial<br>
views. So if your point values look upside down, that's one thing to<br>
consider ;-)<br>
<div><div></div><div class="Wj3C7c"><br>
On Thu, Feb 19, 2009 at 7:06 AM, Mark Gooding <<a href="mailto:mark.gooding@gmail.com">mark.gooding@gmail.com</a>> wrote:<br>
> Hi there,<br>
><br>
> I'm using an ImageViewer2 with a sliderWidget to scroll through a<br>
> volume image (following an example I found in the archives when<br>
> searching for a solution to this problem). I am also using a<br>
> SeedWidget to select points from the current slice. The display XY<br>
> co-ordinate seems to be picked correctly, however the slice selected<br>
> by the seed widget is not the current slice, but appears to be fixed.<br>
> Has anyone done something like this? Some pointers would be helpful.<br>
><br>
> thanks,<br>
><br>
> mark<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>
_______________________________________________<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>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Karthik Krishnan<br>R&D Engineer,<br>Kitware Inc.<br>Ph: 518 371 3971 x119<br>Fax: 518 371 3971<br>