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&#39;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>&nbsp; vtkSeedRepresentation *rep = vtkSeedRepresentation::New();<br>

&nbsp; vtkPointHandleRepresentation2D *handle =<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; vtkPointHandleRepresentation2D::New();<br>&nbsp; rep-&gt;SetHandleRepresentation(handle);<br><br>The following will create seeds that lies in world coordinates.<br><br>&nbsp; vtkSeedRepresentation *rep = vtkSeedRepresentation::New();<br>


&nbsp; vtkPointHandleRepresentation3D *handle =<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; vtkPointHandleRepresentation3D::New();<br>
&nbsp; rep-&gt;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">&lt;<a href="mailto:nkwmailinglists@gmail.com">nkwmailinglists@gmail.com</a>&gt;</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&#39;re really 2D, and you<br>
have to fill in the Z coordinate. &nbsp;You should know this anyway since<br>
you use the sliderWidget to scroll through the volume.<br>
<br>
I&#39;m curious about your application. We&#39;re going to do the same thing<br>
for picking points of interest in a volume. &nbsp;Another developer in our<br>
team is working on that, so I don&#39;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. &nbsp;It<br>
has methods that have &#39;WorldCoordinates&#39; 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&#39;s synchronized views instead of vtkImageViewer2, and<br>
I don&#39;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&#39;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 &lt;<a href="mailto:mark.gooding@gmail.com">mark.gooding@gmail.com</a>&gt; wrote:<br>
&gt; Hi there,<br>
&gt;<br>
&gt; I&#39;m using an ImageViewer2 with a sliderWidget to scroll through a<br>
&gt; volume image (following an example I found in the archives when<br>
&gt; searching for a solution to this problem). I am also using a<br>
&gt; SeedWidget to select points from the current slice. The display XY<br>
&gt; co-ordinate seems to be picked correctly, however the slice selected<br>
&gt; by the seed widget is not the current slice, but appears to be fixed.<br>
&gt; Has anyone done something like this? Some pointers would be helpful.<br>
&gt;<br>
&gt; thanks,<br>
&gt;<br>
&gt; mark<br>
&gt; _______________________________________________<br>
&gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;<br>
&gt; 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>
&gt;<br>
&gt; 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>
&gt;<br>
&gt; Follow this link to subscribe/unsubscribe:<br>
&gt; <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
&gt;<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&amp;D Engineer,<br>Kitware Inc.<br>Ph: 518 371 3971 x119<br>Fax: 518 371 3971<br>