Click or drag to resize
AB4D logo

InstancedText Class

InstancedText object is returned from the InstancedTextNode.AddText method and can be used to change the text's position, color, show or hide the text. The class also defines the size of the 3D text.
Inheritance Hierarchy
SystemObject
  Ab3d.DirectX.ModelsInstancedText

Namespace: Ab3d.DirectX.Models
Assembly: Ab3d.DXEngine.Wpf (in Ab3d.DXEngine.Wpf.dll) Version: 7.0.8865.1045
Syntax
C#
public class InstancedText

The InstancedText type exposes the following members.

Properties
 NameDescription
Public propertyColor Gets the color of the text
Public propertyHasBackSide Gets Boolean that specifies if back side texture is rendered for this text (if the text is also visible from the back side)
Public propertyIsVisible Gets a Boolean that specifies if the text is visible.
Public propertyText Gets the text
Public propertyTextBounds Gets the Rect3D that define the size and position of the text in 3D space.
Public propertyWorldMatrix Gets the WorldMatrix that defines the position, rotation and scale of the text. To change position use Move(Vector3D) method. To change the matrix value use SetWorldMatrix(Matrix3D) method.
Top
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