CreateProductionNodeFromNative() public static method

public static CreateProductionNodeFromNative ( IntPtr nodeHandle ) : OpenNI.ProductionNode
nodeHandle System.IntPtr
return OpenNI.ProductionNode
示例#1
0
        private void NodeCreationCallback(IntPtr pContext, IntPtr hCreatedNode, IntPtr pCookie)
        {
            EventHandler <NodeCreatedEventArgs> handlers = this.nodeCreated;

            if (handlers != null)
            {
                ProductionNode       createdNode = Context.CreateProductionNodeFromNative(hCreatedNode);
                NodeCreatedEventArgs args        = new NodeCreatedEventArgs(createdNode);
                handlers(this, args);
            }
        }
示例#2
0
 public static ProductionNode FromNative(IntPtr nodeHandle)
 {
     return(Context.CreateProductionNodeFromNative(nodeHandle));
 }