TextDrawingManagerAdd Method (Vertex3D, Vector3D, Vector3D, Single, Color, String) |
Namespace: VIZCore3D.NET.Manager
public TextDrawingItem Add( Vertex3D center, Vector3D dir, Vector3D upDir, float height, Color color, string text )
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); }