Kent:<br><br>I apologize for any poor documentation.. will try to add some. Here is an explanation.<br><br>vtkPointHandleRepresentation2D - The geometrical representation (a 2D cross hair) is composed of vtkActor2D and entirely exists on the overlay plane. Being rendered as an overlay, it will be visible even if you change slices etc. This is the only representation that exists on the overlay plane.<br>
<br>vtkPointHandleRepresentation3D - Its rendered as a 3D cross hair (much like vtkCursor3D) and exists in physical space. It will change its visibility as you toggle slices. Try to set the point placer as a vtkImageActorPointPlacer on this representation if you are placing it on an image actor. I'll try to add a test/example when I get a chance.<br>
<br>vtkSphereHandleRepresentation - Same as vtkPointHandleRepresentation3D, except that its rendered as a sphere<br><br>vtkPolygonalHandleRepresentation3D - Same as vtkPointHandleRepresentation3D, except that it is rendered as an arbitrary polygonal shape.<br>
<br>Thanks<br>--<br>karthik<br><br><div class="gmail_quote">On Thu, Apr 23, 2009 at 5:42 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 was having nothing but trouble trying to get the vtkSeedWidget<br>
going, and I instrumented it so I could quickly try all the<br>
HandleRepresentation types.<br>
<br>
What I'd like is for points to display in a 2D viewer, allow all the<br>
normal interactions, and when I change to a different slice, the<br>
handles disappear. When I change back to the slice, the points should<br>
reappear.<br>
<br>
What actually happens is this, depending on representation:<br>
<br>
1. vtkPointHandleRepresentation2D: Points stuck at one pixel size,<br>
regardless of zoom. Nearly invisible. They stay visible no matter<br>
what slice you go to.<br>
2. vtkPointHandleRepresentation3D: Nothing shows up in my 2D viewer at all.<br>
3. vtkPolygonalRepresentation3D -- with geometry provided by a<br>
vtkSphereSource: Spheres display, but don't disappear if you change<br>
slices. Points can't be selected, moved, or deleted with the mouse.<br>
4.vtkSphereHandleRepresentation -- pretty much as case #3.<br>
<br>
I am using vtkinria3d's vtkViewWidget2D class, and not<br>
vtkImageViewer2, but that shouldn't cause this problem -- I though if<br>
I used 3D, the handles would disappear when i changed slices and<br>
reappear when i went back to the original slice.<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>