Click or drag to resize

TextDrawingManagerAdd Method (Vertex3D, Vector3D, Vector3D, Single, Color, String)

Draw Text

Namespace:  VIZCore3D.NET.Manager
Assembly:  VIZCore3D.NET (in VIZCore3D.NET.dll) Version: 2.8.24.1104 (2.8.24.1104)
Syntax
C#
public TextDrawingItem Add(
	Vertex3D center,
	Vector3D dir,
	Vector3D upDir,
	float height,
	Color color,
	string text
)

Parameters

center
Type: VIZCore3D.NET.DataVertex3D
Text Center
dir
Type: VIZCore3D.NET.DataVector3D
Text Direction : 텍스트가 작성되는 방향. Camera가 Z+ 인 경우, 텍스트는 X+ 방향으로 작성 (1, 0, 0)
upDir
Type: VIZCore3D.NET.DataVector3D
Text Up Direction : 텍스트의 위쪽 방향. Camera가 Z+ 인 경우, 위쪽 방향은 Y+ 임 (0, 1, 0)
height
Type: SystemSingle
Text Height
color
Type: System.DrawingColor
Text Color
text
Type: SystemString
Text

Return Value

Type: TextDrawingItem
Text Drawing Item
Examples
C#
private VIZCore3D.NET.VIZCore3DControl vizcore3d;

private void DrawText()
{
    VIZCore3D.NET.Data.TextDrawingItem item = vizcore3d.TextDrawing.Add(
        new VIZCore3D.NET.Data.Vertex3D(0, 0, 0)
        , new VIZCore3D.NET.Data.Vector3D(1, 0, 0) /* X+ 방향으로 텍스트가 표시 */
        , new VIZCore3D.NET.Data.Vector3D(0, 1, 0) /* 텍스트의 위쪽 방향 : Z+에서 볼때, Y+가 위쪽 임. */
        , 3500
        , Color.Black
        , "ZONE_001"
        );

    vizcore3d.TextDrawing.Show(item.ID, true);
}
See Also