Class that defines a 2D text actor. A two-dimensional text is used to
annotate the rendered object (i.e. inserting titles, authors and
labels).
|
|
__init__(self,
scene,
text,
viewport=0)
Initialise the 2D text actor. |
|
|
|
|
__setInput(self)
Set the input for the 2D text. |
|
|
|
|
|
|
|
boldOn(self)
Bold the 2D text. |
|
|
|
|
setColor(self,
color)
Set the color of the 2D text. |
|
|
|
|
|
|
|
setFontToArial(self)
Set the 2D text font type to Arial. |
|
|
|
|
setFontToCourier(self)
Set the 2D text front type to Courier. |
|
|
|
|
setFontToTimes(self)
Set the 2D text font type to Times New Roman. |
|
|
|
|
shadowOn(self)
Apply shadow onto the 2D text to ease visibility. |
|
|
|
Inherited from actor.Actor2D:
setPosition
|