[vtkusers] Problem using vtkDistanceWidget

Karthik Krishnan karthik.krishnan at kitware.com
Mon Feb 21 00:04:24 EST 2011


The distance widget by default uses the vtkDistanceRepresentation2D
prop which is a Actor2D and exists on the overlay plane. You either
need to enable/disable the widget manually by using some higher level
logic based on the slice -or- create another rep that where you manage
this internally by setting the image actor on this representation


On 2/20/11, Jafari, Kourosh <kjafari at rad.hfh.edu> wrote:
> Dear all,
> Im using vtkDistanceWidget to interactively measure distance between two
> points in a 2D image displayed using vtkImageReslice for a 3D volume. It
> works fine but the problem is that I have assigned a scrollbar to this
> window and when I click on it the window shows a different slice, but the
> distance widget stays still. It does not disappear when I go to a different
> slice. Any idea how to fix this problem?
> Thanks a lot!
> Kourosh
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>



More information about the vtkusers mailing list