[vtkusers] vtkDistanceWidget - changing the bound shape

Sid Murthy sid.murthy at gmail.com
Sat Sep 27 10:19:55 EDT 2014

Thanks Carlos -

   That did work although I noticed the size of handle doesn't scale
properly as the user zooms out (it gets bigger). I ended up setting handle
size to a small amount (essentially making it not visible to the user and
just having a straight line with the measurement label).

I am positioning this widget programmatically with
SetPoint1WorldPosition/SetPoint2WorldPosition and don't want users to
change it's position (although I can't get the widgets to be "locked" in
place to avoid this).


On Sat, Sep 27, 2014 at 2:14 AM, Carlos Martinez <carlinhosmp87 at gmail.com>

> Hello Sid,
> Yes it is possible, as you can see in the documentation:
> http://www.vtk.org/doc/nightly/html/classvtkDistanceRepresentation.html#details
> you can create a vtkDistanceRepresentation and use this method:
> *SetHandleRepresentation(vtkHandleRepresentation). *
> Then u can pass a *vtkSphereHandleRepresentation *to this method, because
> this class inherits from *vtkHandleRepresentation* and use spheres as the
> handles of the widget!
> Regards!
> 2014-09-27 0:35 GMT+02:00 Sid Murthy <sid.murthy at gmail.com>:
>> I was wondering if the cross shape at the endpoints can be changed (or
>> removed)? I don't see anything in the docs that let me do this. Or maybe
>> just reduce the size?
>> thanks,
>> Sid
>> _______________________________________________
>> 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://public.kitware.com/mailman/listinfo/vtkusers
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20140927/01af4ac2/attachment.html>

More information about the vtkusers mailing list