Class TextCreator
- Namespace
- HelixToolkit.Wpf
- Assembly
- HelixToolkit.Wpf.dll
Creates text label models or visuals.
public static class TextCreator
- Inheritance
-
TextCreator
- Inherited Members
Remarks
Methods
CreateTextLabel3D(string, Brush, bool, double, Point3D, Vector3D, Vector3D)
Creates a Visual3D element containing a text label.
public static ModelVisual3D CreateTextLabel3D(string text, Brush textColor, bool isDoubleSided, double height, Point3D center, Vector3D textDirection, Vector3D updirection)
Parameters
textstringThe string
textColorBrushThe color of the text.
isDoubleSidedboolVisible from both sides?
heightdoubleHeight of the characters
centerPoint3DThe center of the label
textDirectionVector3DHorizontal direction of the label
updirectionVector3DVertical direction of the label
Returns
- ModelVisual3D
Suitable for adding to your Viewport3D
CreateTextLabelModel3D(string, Brush, bool, double, Point3D, Vector3D, Vector3D)
Creates a model for the text label.
public static GeometryModel3D CreateTextLabelModel3D(string text, Brush textColor, bool isDoubleSided, double height, Point3D center, Vector3D textDirection, Vector3D updirection)
Parameters
textstringThe text.
textColorBrushColor of the text.
isDoubleSidedbooldouble sided text if set to
true.heightdoubleThe height.
centerPoint3DThe center.
textDirectionVector3DThe textDirection.
updirectionVector3DThe updirection.
Returns
- GeometryModel3D
A model.