Skip to content

RectangleContextRepresentation ​

Introduction ​

vtkRectangleContextRepresentation renders the rectangle spanned by the origin and the corner of a widget state, as a filled face and/or a border.

Methods ​

extend ​

Method use to decorate a given object (publicAPI+model) with vtkRectangleContextRepresentation characteristics.

ArgumentTypeRequiredDescription
publicAPIYesobject on which methods will be bounds (public)
modelYesobject on which data structure will be bounds (protected)
initialValuesIRectangleContextRepresentationInitialValuesNo(default: {})

requestData ​

Builds the rectangle from the origin, corner and up vector of the first state. Only the first state is used.

setOpacity ​

Forwards the opacity to the actor property.