AddMarker
Overloads
| Name | Description |
|---|---|
| AddMarker(Vector3D position, MarkerIcon icon) | 지정한 위치에 기본 옵션으로 마커를 추가합니다. |
| AddMarker(Vector3D position, MarkerIcon icon, MarkerOptions options) | 지정한 위치에 옵션을 적용한 마커를 추가합니다. |
AddMarker(Vector3D position, MarkerIcon icon)
public UInt32 AddMarker(Vector3D position, MarkerIcon icon)
지정한 위치에 기본 옵션으로 마커를 추가합니다.
Parameters
| Name | Type | Description |
|---|---|---|
| position | Vector3D | 마커 기준점 좌표 |
| icon | MarkerIcon | 마커 아이콘 |
Returns
| Type | Description |
|---|---|
| uint | 마커 식별자 (실패 시 0) |
Examples
// VIZCore3DX.NET Control
private VIZCore3DX.NET.VIZCore3DXControl vizcore3dx;
private void Example()
{
uint id = vizcore3dx.View.Effect.AddMarker(
new VIZCore3DX.NET.Data.Vector3D(1000, 2000, 3000),
VIZCore3DX.NET.Data.MarkerIcon.Warning);
}
AddMarker(Vector3D position, MarkerIcon icon, MarkerOptions options)
public UInt32 AddMarker(Vector3D position, MarkerIcon icon, MarkerOptions options)
지정한 위치에 옵션을 적용한 마커를 추가합니다.
Remarks
마커는 픽킹에 참여하지 않아, 마커 위를 클릭하면 뒤에 있는 개체가 선택됩니다.
마커는 화면 크기가 고정되며 항상 카메라를 향합니다.
모델이 닫히면 등록된 마커도 함께 제거됩니다.
마커는 최대 512개까지 등록되며, 상한을 넘긴 호출은 0을 반환합니다.
Parameters
| Name | Type | Description |
|---|---|---|
| position | Vector3D | 마커 기준점 좌표 |
| icon | MarkerIcon | 마커 아이콘 |
| options | MarkerOptions | 마커 표시 옵션 (null 이면 기본값) |
Returns
| Type | Description |
|---|---|
| uint | 마커 식별자 (실패 시 0) |
Examples
// VIZCore3DX.NET Control
private VIZCore3DX.NET.VIZCore3DXControl vizcore3dx;
private void Example()
{
VIZCore3DX.NET.Data.MarkerOptions options = new VIZCore3DX.NET.Data.MarkerOptions();
options.SizePx = 64;
options.BlinkIntervalMs = 500;
options.Label = "DANGER";
options.Group = "PTW_HAZARD";
uint id = vizcore3dx.View.Effect.AddMarker(
new VIZCore3DX.NET.Data.Vector3D(1000, 2000, 3000),
VIZCore3DX.NET.Data.MarkerIcon.Warning, options);
}