Skip to content

SplineWidget ​

Introduction ​

vtkSplineWidget places handles that a closed or open spline is fitted through, either point by point or with a freehand stroke.

Methods ​

getFreehandMinDistance ​

The minimum world distance between two handles placed by a freehand stroke.

getManipulator ​

The manipulator the handles are driven by.

getPoints ​

The sampled points of the spline, as the raw point data of the spline representation output.

getRepresentationsForViewType ​

The representation builders the widget uses in the given view type.

getResetAfterPointPlacement ​

When true, closing the spline resets the widget instead of making it lose the focus.

getResolution ​

The number of points the spline is sampled at.

reset ​

Remove every placed handle.

setHandleSizeInPixels ​

Set the handle size and rescale the already placed handles.

setManipulator ​

Set the manipulator on the widget, on its move handle and on each of its placed handles.

setResolution ​

Set the number of points the spline is sampled at, on the widget and on its spline representation.