Table of Contents

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

text string

The string

textColor Brush

The color of the text.

isDoubleSided bool

Visible from both sides?

height double

Height of the characters

center Point3D

The center of the label

textDirection Vector3D

Horizontal direction of the label

updirection Vector3D

Vertical 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

text string

The text.

textColor Brush

Color of the text.

isDoubleSided bool

double sided text if set to true.

height double

The height.

center Point3D

The center.

textDirection Vector3D

The textDirection.

updirection Vector3D

The updirection.

Returns

GeometryModel3D

A model.