Skip to content

PaintWidget ​

Introduction ​

vtkPaintWidget provides a circular or spherical brush that follows the pointer and records the stamps of the current stroke as a trail of states.

Methods ​

getColor ​

The value the brush paints with.

getManipulator ​

The manipulator the brush handle is driven by.

getPainting ​

True while a stroke is being painted.

getRadius ​

The brush radius.

getRepresentationsForViewType ​

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

getTrueOrigin ​

The unsnapped world position of the pointer, before the handle origin is constrained.

setManipulator ​

Set the manipulator on the widget and on its brush handle.

setRadius ​

Set the brush radius. Also updates the scale of the brush handle.