Click or drag to resize
AB4D logo

InstancedText Methods

The InstancedText type exposes the following members.

Methods
 NameDescription
Public methodChangeColor Changes the color of the text.
Public methodChangeText Changes the text of this InstancedText to the new text.
Public methodGetTextSize GetTextSize calculates the size of the text from the WorldMatrix (from the length of the X axis). This method uses Math.Sqrt to get the size so it is not very fast.
Public methodHide Hides the text
Public methodMove Moves the text for the specified moveVector
Public methodSetOrientation(Vector3D, Vector3D) Sets the Orientation of the text by providing the text direction and up direction (directions are normalized inside the method). This method calculates the normalDirection from the textDirection and upDirection. The text size is calculated from the existing WorldMatrix. If you know the text normal or text size, then it is faster to call the SetOrientation(Vector3D, Vector3D, Vector3D, Double).
Public methodSetOrientation(Vector3D, Vector3D, Vector3D, Double) Sets the Orientation of the text by providing the orientation vectors and size of the text. All Vector3D values must be normalized.
Public methodSetWorldMatrix(Matrix3D) Sets the WorldMatrix of this text.
Public methodSetWorldMatrix(Matrix3D) Sets the WorldMatrix of this text.
Public methodShow Shows the text
Top
See Also