Example #1
0
        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));
        }