Instanced |
public class InstancedText
The InstancedText type exposes the following members.
Name | Description | |
---|---|---|
Color | Gets the color of the text | |
HasBackSide | Gets Boolean that specifies if back side texture is rendered for this text (if the text is also visible from the back side) | |
IsVisible | Gets a Boolean that specifies if the text is visible. | |
Text | Gets the text | |
TextBounds | Gets the Rect3D that define the size and position of the text in 3D space. | |
WorldMatrix | 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. |
Name | Description | |
---|---|---|
ChangeColor | Changes the color of the text. | |
ChangeText | Changes the text of this InstancedText to the new text. | |
GetTextSize | 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. | |
Hide | Hides the text | |
Move | Moves the text for the specified moveVector | |
SetOrientation(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). | |
SetOrientation(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. | |
SetWorldMatrix(Matrix3D) | Sets the WorldMatrix of this text. | |
SetWorldMatrix(Matrix3D) | Sets the WorldMatrix of this text. | |
Show | Shows the text |