xn.Context.EnumerateProductionTrees C# (CSharp) 메소드

EnumerateProductionTrees() 공개 메소드

public EnumerateProductionTrees ( NodeType type, Query query ) : NodeInfoList
type NodeType
query Query
리턴 NodeInfoList
        public NodeInfoList EnumerateProductionTrees(NodeType type, Query query)
        {
            IntPtr resultList;

            using (EnumerationErrors errors = new EnumerationErrors())
            {
                UInt32 status = OpenNIImporter.xnEnumerateProductionTrees(this.InternalObject, type,
                    query == null ? IntPtr.Zero : query.InternalObject,
                    out resultList,
                    errors.InternalObject);
                WrapperUtils.CheckEnumeration(status, errors);
            }

            return new NodeInfoList(resultList);
        }