AddTextLabel
Overloads
| Name | Description |
|---|---|
| AddTextLabel(Vector3D position, string text) | 지정한 위치에 기본 옵션으로 텍스트 라벨을 추가합니다. |
| AddTextLabel(Vector3D position, string text, TextLabelOptions options) | 지정한 위치에 옵션을 적용한 텍스트 라벨을 추가합니다. |
AddTextLabel(Vector3D position, string text)
public UInt32 AddTextLabel(Vector3D position, string text)
지정한 위치에 기본 옵션으로 텍스트 라벨을 추가합니다.
Parameters
| Name | Type | Description |
|---|---|---|
| position | Vector3D | 라벨 기준점 좌표 |
| text | string | 표시할 문자열 |
Returns
| Type | Description |
|---|---|
| uint | 라벨 식별자 (실패 시 0) |
Examples
// VIZCore3DX.NET Control
private VIZCore3DX.NET.VIZCore3DXControl vizcore3dx;
private void Example()
{
uint id = vizcore3dx.View.Effect.AddTextLabel(
new VIZCore3DX.NET.Data.Vector3D(1000, 2000, 3000), "DANGER ZONE");
}
AddTextLabel(Vector3D position, string text, TextLabelOptions options)
public UInt32 AddTextLabel(Vector3D position, string text, TextLabelOptions options)
지정한 위치에 옵션을 적용한 텍스트 라벨을 추가합니다.
Remarks
Note(노트 마크업)와는 용도가 다릅니다 — 문서에 남지 않는 표시 전용 그림으로,
선택·저장과 연동되지 않고 크기·색·점멸·자동 소멸을 제어할 수 있습니다.
라벨은 픽킹에 참여하지 않아, 라벨 위를 클릭하면 뒤에 있는 개체가 선택됩니다.
라벨은 화면 크기가 고정되며 항상 카메라를 향합니다.
모델이 닫히면 등록된 라벨도 함께 제거됩니다.
라벨은 최대 512개까지 등록되며, 상한을 넘긴 호출은 0을 반환합니다.
Parameters
| Name | Type | Description |
|---|---|---|
| position | Vector3D | 라벨 기준점 좌표 |
| text | string | 표시할 문자열 |
| options | TextLabelOptions | 라벨 표시 옵션 (null 이면 기본값) |
Returns
| Type | Description |
|---|---|
| uint | 라벨 식별자 (실패 시 0) |
Examples
// VIZCore3DX.NET Control
private VIZCore3DX.NET.VIZCore3DXControl vizcore3dx;
private void Example()
{
VIZCore3DX.NET.Data.TextLabelOptions options = new VIZCore3DX.NET.Data.TextLabelOptions();
options.SizePx = 32;
options.Group = "PTW_LABEL";
uint id = vizcore3dx.View.Effect.AddTextLabel(
new VIZCore3DX.NET.Data.Vector3D(1000, 2000, 3000), "위험 구역", options);
}