addTxtActor()

Add a 2D text actor to the scene graph.

Usage

txtActor = vis.addTxtActor( text = "ACUSIM",
                                     position = [0.5,0.5],
                                     style = "Times New Roman:bold",
                                     fontSize = 12,
                                     color = [1,0,0],
                                     horAlignment = "CENTER",
                                     verAlignment = "BOTTOM"' )

Parameters

text (string)
Annotation text.
position (list)
Annotation position.
style (string)
Annotation style.
fontSize (integer)
Annotation font size.
color (list)
Annotation color.
horAlignment (string)
Annotation horizontal alignmentValid values are RIGHT, CENTER and LEFT.
verAlignment (string)
Annotation vertical alignment. Valid values are BOTTOM, TOP and HALF.

Return Value

txtActor (object)
The 2D text actor.

Errors

None

Description

This routine adds a 2D text actor to the scene graph. For example,
txtActor = vis.addTxtActor( text = 'Test',
                                     color = [0,0,1],
                                     fontSize = 20 )