GetData
Overloads
| Name | Description |
|---|---|
| GetData(int id) | Get Metadata |
| GetData(string path, int id) | 지정된 VIZ 파일에 아이디(ID)에 해당하는 메타데이터 바이너리 정보 반환 |
GetData(int id)
public Byte[] GetData(int id)
Get Metadata
Parameters
| Name | Type | Description |
|---|---|---|
| id | int | ID |
Returns
| Type | Description |
|---|---|
| Byte[] | Metadata Stream |
Examples
// VIZCore3D.NET Control
private VIZCore3D.NET.VIZCore3DControl vizcore3d;
private void Example()
{
if (vizcore3d.Model.IsOpen() == false) return;
// Count
int count = vizcore3d.Metadata.Count;
// Map : ID-NAME
Dictionary<int, string> data = vizcore3d.Metadata.GetIdNameMap();
foreach (KeyValuePair<int, string> item in data)
{
int id = item.Key;
string name = item.Value;
// Get Metadata Binary
byte[] buffer = vizcore3d.Metadata.GetData(id);
// Some code here...
}
}
GetData(string path, int id)
public Byte[] GetData(string path, int id)
지정된 VIZ 파일에 아이디(ID)에 해당하는 메타데이터 바이너리 정보 반환
Parameters
| Name | Type | Description |
|---|---|---|
| path | string | VIZ 파일 경로 (경로 + 파일) |
| id | int | 메타데이터 아이디(ID) |
Returns
| Type | Description |
|---|---|
| Byte[] | VIZ 파일에 아이디(ID)에 해당하는 메타데이터 바이너리 정보 반환 |