Skip to content

TextActor

Introduction

vtkTextActor can be used to place text annotation into a window.

Methods

extend

Method used to decorate a given object (publicAPI+model) with vtkActor characteristics.

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

getProperty

Get the property object that controls this actors properties.

Returns

TypeDescription
vtkTextPropertyThe vtkTextProperty instance.

makeProperty

Create a new property suitable for use with this type of TextActor.

ArgumentTypeRequiredDescription
initialValuesITextPropertyInitialValuesNo(default: {})

newInstance

Method used to create a new instance of vtkTextActor

ArgumentTypeRequiredDescription
initialValuesITextActorInitialValuesNofor pre-setting some of its content

setInput

Set the text to be displayed by the actor.

ArgumentTypeRequiredDescription
inputYesThe text to be displayed by the actor.

setProperty

Set the property object that controls this actors properties.

ArgumentTypeRequiredDescription
propertyvtkTextPropertyYesThe vtkTextProperty instance.