CreateProductionNodeObject() private method

private CreateProductionNodeObject ( IntPtr nodeHandle ) : OpenNI.ProductionNode
nodeHandle System.IntPtr
return OpenNI.ProductionNode
コード例 #1
0
        static public ProductionNode CreateProductionNodeFromNative(IntPtr nodeHandle)
        {
            IntPtr  pContext = SafeNativeMethods.xnGetRefContextFromNodeHandle(nodeHandle);
            Context context  = Context.FromNative(pContext);

            SafeNativeMethods.xnContextRelease(pContext);
            return(context.CreateProductionNodeObject(nodeHandle));
        }