ContainsNode
Overloads
| Name | Description |
|---|---|
| ContainsNode(string key, string value, List<int> index, bool bottomUp) | 지정된 UDA 속성에 포함된 노드 확인 |
ContainsNode(string key, string value, List<int> index, bool bottomUp)
public Dictionary<int, bool> ContainsNode(string key, string value, List<int> index, bool bottomUp)
지정된 UDA 속성에 포함된 노드 확인
Parameters
| Name | Type | Description |
|---|---|---|
| key | string | UDA KEY |
| value | string | UDA VALUE |
| index | List<int> | 포함여부를 검색하고자 하는 노드 인덱스 |
| bottomUp | bool | 상위 노드 검색 여부: True(상위 노드에 부여된 속성의 하위 노드 여부 판단) / False(해당 노드인덱스의 UDA 검색) |
Returns
| Type | Description |
|---|---|
| Dictionary<int, bool> | 인덱스별 포함 여부 결과 |
Examples
// VIZCore3D.NET Control
private VIZCore3D.NET.VIZCore3DControl vizcore3d;
private void Example()
{
string key = "TYPE";
string val = "PIPE";
List<int> node = new List<int>() { 1, 4, 5, 7, 9, 100, 200 };
Dictionary<int, bool> result =
vizcore3d.Object3D.UDA.ContainsNode(
key /* UDA::KEY */
, val /* UDA::VALUE */
, node /* Node List */
, true /* True(Bottom Up), False(Current Node Index) */
);
foreach (KeyValuePair<int, bool> item in result)
{
if(item.Value == true)
{
System.Console.WriteLine("Contain");
}
else
{
System.Console.WriteLine("Does Not Contain");
}
}
}