Click or drag to resize

UDAManagerContainsNode Method

지정된 UDA 속성에 포함된 노드 확인

Namespace: VIZCore3D.NET.Manager
Assembly: VIZCore3D.NET (in VIZCore3D.NET.dll) Version: 2.8.24.910 (2.8.24.910)
Syntax
C#
public Dictionary<int, bool> ContainsNode(
	string key,
	string value,
	List<int> index,
	bool bottomUp = false
)

Parameters

key  String
UDA KEY
value  String
UDA VALUE
index  ListInt32
포함여부를 검색하고자 하는 노드 인덱스
bottomUp  Boolean  (Optional)
상위 노드 검색 여부: True(상위 노드에 부여된 속성의 하위 노드 여부 판단) / False(해당 노드인덱스의 UDA 검색)

Return Value

DictionaryInt32, Boolean
인덱스별 포함 여부 결과
Example
C#
// 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");
        }
    }
}
See Also