<div class="gmail_quote">On Thu, Apr 30, 2009 at 5:02 PM, 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 think I see how to to do it, but shouldn't there be some sort of<br>
method that does this without all the indirection required?<br>
<br>
It looks like you have to do it this way:<br>
<br>
typedef double SeedPoint[3];<br>
typedef std::list<SeedPoint> SeedPointList;<br>
<br>
SeedPointList pointList;<br>
<br>
vtkHandleWidget *handle;<br>
for(unsigned i = 0; (handle = seedWidget->GetSeed(i)) != 0; i++)<br>
{<br>
SeedPoint curPoint;<br>
handle->GetWorldPosition(curPoint);<br>
pointList.push_back(curPoint);<br>
}<br>
<br>
Is this correct?</blockquote><div><br>That is right :). Its retrieved from the seedwidget's children, the handles. <br>
</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
<br>
Second important question -- does the 'world position' returned mean<br>
the 'real' world position or does it -- like vtkContourWidget -- have<br>
world X,Y,Z permuted depending on the orientation of the view?</blockquote><div><br>It returns the real world position.<br><br>Thanks<br>--<br>karthik<br><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<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>
</blockquote></div><br><br clear="all"><br>-- <br>Karthik Krishnan<br>R&D Engineer,<br>Kitware Inc.<br>Ph: 518 881 4919<br>Fax: 518 371 4573<br>