[vtkusers] vtkDistanceWidget - changing the bound shape
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:
> 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!
> 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?
>> Powered by www.kitware.com
>> Visit other Kitware open-source projects at
>> Please keep messages on-topic and check the VTK FAQ at:
>> Follow this link to subscribe/unsubscribe:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the vtkusers