OpenNI 1.0.0

XnContext.h File Reference

#include <XnTypes.h>
#include <XnQueries.h>
#include <XnPrdNodeInfoList.h>

Go to the source code of this file.

Functions

Initialization

Functions for initializing and shutting down an OpenNI context.

XN_C_API XnStatus xnInit (XnContext **ppContext)
XN_C_API XnStatus xnContextRunXmlScriptFromFile (XnContext *pContext, const XnChar *strFileName, XnEnumerationErrors *pErrors)
XN_C_API XnStatus xnContextRunXmlScript (XnContext *pContext, const XnChar *xmlScript, XnEnumerationErrors *pErrors)
XN_C_API XnStatus xnInitFromXmlFile (const XnChar *strFileName, XnContext **ppContext, XnEnumerationErrors *pErrors)
XN_C_API XnStatus xnContextOpenFileRecording (XnContext *pContext, const XnChar *strFileName)
XN_C_API void xnShutdown (XnContext *pContext)
Enumeration

Functions for enumeration and creation of nodes.

XN_C_API XnStatus xnEnumerateProductionTrees (XnContext *pContext, XnProductionNodeType Type, const XnNodeQuery *pQuery, XnNodeInfoList **ppTreesList, XnEnumerationErrors *pErrors)
XN_C_API XnStatus xnCreateProductionTree (XnContext *pContext, XnNodeInfo *pTree, XnNodeHandle *phNode)
XN_C_API XnStatus xnCreateAnyProductionTree (XnContext *pContext, XnProductionNodeType type, XnNodeQuery *pQuery, XnNodeHandle *phNode, XnEnumerationErrors *pErrors)
XN_C_API XnStatus xnCreateMockNode (XnContext *pContext, XnProductionNodeType type, const XnChar *strName, XnNodeHandle *phNode)
XN_C_API XnStatus xnCreateMockNodeBasedOn (XnContext *pContext, XnNodeHandle hOriginalNode, const XnChar *strName, XnNodeHandle *phMockNode)
XN_C_API XnStatus xnProductionNodeAddRef (XnNodeHandle hNode)
XN_C_API XnStatus xnRefProductionNode (XnNodeHandle hNode)
XN_C_API void xnProductionNodeRelease (XnNodeHandle hNode)
XN_C_API void xnUnrefProductionNode (XnNodeHandle hNode)
XN_C_API XnStatus xnEnumerateExistingNodes (XnContext *pContext, XnNodeInfoList **ppList)
XN_C_API XnStatus xnEnumerateExistingNodesByType (XnContext *pContext, XnProductionNodeType type, XnNodeInfoList **ppList)
XN_C_API XnStatus xnFindExistingNodeByType (XnContext *pContext, XnProductionNodeType type, XnNodeHandle *phNode)
XN_C_API XnStatus xnGetNodeHandleByName (XnContext *pContext, const XnChar *strInstanceName, XnNodeHandle *phNode)
Multi-Node Handling

Functions that affect all the nodes in the context.

XN_C_API XnStatus xnWaitAndUpdateAll (XnContext *pContext)
XN_C_API XnStatus xnWaitOneUpdateAll (XnContext *pContext, XnNodeHandle hNode)
XN_C_API XnStatus xnWaitAnyUpdateAll (XnContext *pContext)
XN_C_API XnStatus xnWaitNoneUpdateAll (XnContext *pContext)
XN_C_API XnStatus xnStartGeneratingAll (XnContext *pContext)
XN_C_API XnStatus xnStopGeneratingAll (XnContext *pContext)
XN_C_API XnStatus xnSetGlobalMirror (XnContext *pContext, XnBool bMirror)
XN_C_API XnBool xnGetGlobalMirror (XnContext *pContext)
XN_C_API XnStatus xnGetGlobalErrorState (XnContext *pContext)
XN_C_API XnStatus xnRegisterToGlobalErrorStateChange (XnContext *pContext, XnErrorStateChangedHandler handler, void *pCookie, XnCallbackHandle *phCallback)
XN_C_API void xnUnregisterFromGlobalErrorStateChange (XnContext *pContext, XnCallbackHandle hCallback)