OpenNI.Context.CreateAnyProductionTreeImpl C# (CSharp) Method

CreateAnyProductionTreeImpl() private method

private CreateAnyProductionTreeImpl ( NodeType type, OpenNI.Query query ) : IntPtr
type NodeType
query OpenNI.Query
return System.IntPtr
        internal IntPtr CreateAnyProductionTreeImpl(NodeType type, Query query)
        {
            IntPtr nodeHandle;
            using (EnumerationErrors errors = new EnumerationErrors())
            {
                int status = SafeNativeMethods.xnCreateAnyProductionTree(this.InternalObject, type,
                    query == null ? IntPtr.Zero : query.InternalObject,
                    out nodeHandle, errors.InternalObject);
                WrapperUtils.CheckEnumeration(status, errors);
            }

            return nodeHandle;
        }

Usage Example

Example #1
0
 private static IntPtr Create(Context context, Query query)
 {
     return(context.CreateAnyProductionTreeImpl(NodeType.Device, query));
 }
All Usage Examples Of OpenNI.Context::CreateAnyProductionTreeImpl