Example #1
0
 public static extern XnStatus xnAutoEnumerateOverSingleInput(XnContext pContext, XnNodeInfoList pList, ProductionNodeDescription pDescription, string strCreationInfo, NodeType InputType, XnEnumerationErrors pErrors, XnNodeQuery pQuery);
Example #2
0
 public static extern XnStatus xnNodeInfoListAdd(XnNodeInfoList pList, ProductionNodeDescription pDescription, string strCreationInfo, XnNodeInfoList pNeededNodes);
Example #3
0
 public static extern XnStatus XnProductionNodeDescriptionToString(ProductionNodeDescription pDescription, IntPtr csResult, XnUInt32 nSize);
 /// @brief Method to get node description for nodes which were active
 /// 
 /// This method gets the saved loaded nodes description in the context.
 /// @param nt The node type to get
 /// @param desc The description of the node type (irrelevant if returns false).
 /// @return true if there was a loaded node of that type, false otherwise.
 public static bool GetProductionNodeInformation(NodeType nt, out ProductionNodeDescription desc)
 {
     for (int i = 0; i < m_nodeInformation.Count; i++)
     {
         desc = m_nodeInformation[i];
         if (desc.Type == nt)
             return true;
     }
     // if we reached here then we found nothing.
     desc = new ProductionNodeDescription();
     return false;
 }