[vtkusers] sticky spline widget handles

Dean Inglis dean.inglis at camris.ca
Wed Mar 31 21:29:44 EDT 2010


Hi Lydia,

there is no API to do this with vtkSplineWidget.
One way to do this is to write a subclass of vtkSplineRepresentation
to work with vtkSplineWidget2.  You might need to
have some of the methods made virtual so feel free to make 
those requests.

regards,
Dean



Hi :)

I am using a vtkSplineWidget in my program. After initially adding it
to the scene I would like the first and the last handle of the spline
widget to be sticky - ie the user can only move the remaining handles
in between but not the first and the last handle. So far I have not
found a way to do this except for saving the location of those two
handles at the beginning and then resetting it every now and then
which is less than a nice solution it seems.
Is there any other way to do this?


Cheers
Lydia

-- 
Lydia Pintscher
Amarok community manager
kde.org - amarok.kde.org - kubuntu.org
claimid.com/nightrose





More information about the vtkusers mailing list