#include <XnCppWrapper.h>
Represents an OpenNI context object.
Definition at line 4036 of file XnCppWrapper.h.
xn::Context::Context | ( | ) | [inline] |
Ctor.
Definition at line 4040 of file XnCppWrapper.h.
xn::Context::Context | ( | XnContext * | pContext | ) | [inline] |
xn::Context::Context | ( | const Context & | other | ) | [inline] |
Copy Ctor
other | [in] Another context. Note that the context will only be destroyed when The original object is destroyed. |
Definition at line 4053 of file XnCppWrapper.h.
xn::Context::~Context | ( | ) | [inline] |
Dtor.
Definition at line 4056 of file XnCppWrapper.h.
XnStatus xn::Context::AddLicense | ( | const XnLicense & | License | ) | [inline] |
Definition at line 4149 of file XnCppWrapper.h.
XnStatus xn::Context::AutoEnumerateOverSingleInput | ( | NodeInfoList & | List, |
XnProductionNodeDescription & | description, | ||
const XnChar * | strCreationInfo, | ||
XnProductionNodeType | InputType, | ||
EnumerationErrors * | pErrors, | ||
Query * | pQuery = NULL |
||
) | const [inline] |
Definition at line 4387 of file XnCppWrapper.h.
XnStatus xn::Context::CreateAnyProductionTree | ( | XnProductionNodeType | type, |
Query * | pQuery, | ||
ProductionNode & | node, | ||
EnumerationErrors * | pErrors = NULL |
||
) | [inline] |
Enumerates for production trees for a specific node type, and creates the first found tree. This function is a shortcut version for using xnEnumerateProductionTrees(), iterating the list, and then calling xnCreateProductionTree().
For full details and usage, see xnCreateAnyProductionTreeDefinition at line 4191 of file XnCppWrapper.h.
XnStatus xn::Context::CreateCodec | ( | XnCodecID | codecID, |
ProductionNode & | initializerNode, | ||
Codec & | codec | ||
) | [inline] |
Definition at line 4129 of file XnCppWrapper.h.
XnStatus xn::Context::CreateMockNode | ( | XnProductionNodeType | type, |
const XnChar * | strName, | ||
ProductionNode & | node | ||
) | [inline] |
Creates a production node which is only a mock. This node does not represent an actual node, but only keeps a state and implements an interface above it. Mock nodes are useful when simulating nodes for playing recordings, or for use in tests. See also xnCreateMockNodeBasedOn().
For full details and usage, see xnCreateMockNodeDefinition at line 4113 of file XnCppWrapper.h.
XnStatus xn::Context::CreateMockNodeBasedOn | ( | ProductionNode & | originalNode, |
const XnChar * | strName, | ||
ProductionNode & | mockNode | ||
) | [inline] |
Creates a production node which is only a mock, base on the type and properties of another node. This node does not represent an actual node, but only keeps a state and implements an interface above it. Mock nodes are useful when simulating nodes for playing recordings, or for use in tests. See also xnCreateMockNode().
For full details and usage, see xnCreateMockNodeBasedOnDefinition at line 4121 of file XnCppWrapper.h.
XnStatus xn::Context::CreateProductionTree | ( | NodeInfo & | Tree | ) | [inline] |
Creates a production node. If the tree specifies additional needed nodes, and those nodes do not exist, they will be created too, and passed to this node as input.
For full details and usage, see xnCreateProductionTreeDefinition at line 4209 of file XnCppWrapper.h.
XnStatus xn::Context::EnumerateExistingNodes | ( | NodeInfoList & | list | ) | const [inline] |
Gets a list of all existing node in the context. Each node that was returned increases its ref count. The list must be freed using xnNodeInfoListFree().
For full details and usage, see xnEnumerateExistingNodesDefinition at line 4223 of file XnCppWrapper.h.
XnStatus xn::Context::EnumerateExistingNodes | ( | NodeInfoList & | list, |
XnProductionNodeType | type | ||
) | const [inline] |
Gets a list of all existing node in the context. Each node that was returned increases its ref count. The list must be freed using xnNodeInfoListFree().
For full details and usage, see xnEnumerateExistingNodesByTypeDefinition at line 4237 of file XnCppWrapper.h.
XnStatus xn::Context::EnumerateLicenses | ( | XnLicense *& | aLicenses, |
XnUInt32 & | nCount | ||
) | const [inline] |
Definition at line 4157 of file XnCppWrapper.h.
XnStatus xn::Context::EnumerateProductionTrees | ( | XnProductionNodeType | Type, |
Query * | pQuery, | ||
NodeInfoList & | TreesList, | ||
EnumerationErrors * | pErrors = NULL |
||
) | const [inline] |
Enumerates all available production trees for a specific node type. The trees populated in the list should be freed by calling xnNodeInfoListFree() once not needed.
For full details and usage, see xnEnumerateProductionTreesDefinition at line 4173 of file XnCppWrapper.h.
XnStatus xn::Context::FindExistingNode | ( | XnProductionNodeType | type, |
ProductionNode & | node | ||
) | const [inline] |
Returns the first found existing node of the specified type.
For full details and usage, see xnFindExistingNodeByTypeDefinition at line 4251 of file XnCppWrapper.h.
void xn::Context::FreeImpl | ( | ) | [inline, private] |
Definition at line 4403 of file XnCppWrapper.h.
static void xn::Context::FreeLicensesList | ( | XnLicense | aLicenses[] | ) | [inline, static] |
Definition at line 4165 of file XnCppWrapper.h.
XnStatus xn::Context::GetGlobalErrorState | ( | ) | [inline] |
Gets the global error state of the context. If one of the nodes in the context is in error state, that state will be returned. If more than one node is in error state, XN_STATUS_MULTIPLE_NODES_ERROR is returned. An application can query each node error state by calling xnGetNodeErrorState().
For full details and usage, see xnGetGlobalErrorStateDefinition at line 4331 of file XnCppWrapper.h.
XnBool xn::Context::GetGlobalMirror | ( | ) | [inline] |
Gets the global mirror flag.
For full details and usage, see xnGetGlobalMirrorDefinition at line 4323 of file XnCppWrapper.h.
XnStatus xn::Context::GetProductionNodeByName | ( | const XnChar * | strInstanceName, |
ProductionNode & | node | ||
) | const [inline] |
Gets a handle to an existing production node instance using that instance name.
For full details and usage, see xnGetNodeHandleByNameDefinition at line 4267 of file XnCppWrapper.h.
XnStatus xn::Context::GetProductionNodeInfoByName | ( | const XnChar * | strInstanceName, |
NodeInfo & | nodeInfo | ||
) | const [inline] |
Gets a handle to an existing production node instance using that instance name.
For full details and usage, see xnGetNodeHandleByNameDefinition at line 4283 of file XnCppWrapper.h.
XnContext* xn::Context::GetUnderlyingObject | ( | ) | const [inline] |
Gets the underlying C object.
Definition at line 4062 of file XnCppWrapper.h.
XnStatus xn::Context::Init | ( | ) | [inline] |
Initializes the OpenNI library.
For full details and usage, see xnInitDefinition at line 4067 of file XnCppWrapper.h.
XnStatus xn::Context::InitFromXmlFile | ( | const XnChar * | strFileName, |
EnumerationErrors * | pErrors = NULL |
||
) | [inline] |
Initializes OpenNI context, and then configures it using the given file.
For full details and usage, see xnInitFromXmlFileDefinition at line 4094 of file XnCppWrapper.h.
XnStatus xn::Context::OpenFileRecording | ( | const XnChar * | strFileName | ) | [inline] |
Opens a recording file, adding all nodes in it to the context.
For full details and usage, see xnContextOpenFileRecordingDefinition at line 4105 of file XnCppWrapper.h.
XnStatus xn::Context::RegisterToErrorStateChange | ( | XnErrorStateChangedHandler | handler, |
void * | pCookie, | ||
XnCallbackHandle & | hCallback | ||
) | [inline] |
Registers a callback function to global error state changes.
For full details and usage, see xnRegisterToGlobalErrorStateChangeDefinition at line 4339 of file XnCppWrapper.h.
XnStatus xn::Context::RunXmlScript | ( | const XnChar * | strScript, |
EnumerationErrors * | pErrors = NULL |
||
) | [inline] |
Runs an XML script in the given context.
For full details and usage, see xnContextRunXmlScriptDefinition at line 4078 of file XnCppWrapper.h.
XnStatus xn::Context::RunXmlScriptFromFile | ( | const XnChar * | strFileName, |
EnumerationErrors * | pErrors = NULL |
||
) | [inline] |
Runs an XML script in the given context.
For full details and usage, see xnContextRunXmlScriptFromFileDefinition at line 4086 of file XnCppWrapper.h.
XnStatus xn::Context::SetGlobalMirror | ( | XnBool | bMirror | ) | [inline] |
Sets the global mirror flag. This will set all current existing nodes' mirror state, and also affect future created nodes. The default mirror flag is FALSE.
For full details and usage, see xnSetGlobalMirrorDefinition at line 4315 of file XnCppWrapper.h.
void xn::Context::SetHandle | ( | XnContext * | pContext | ) | [inline] |
Replaces the underlying C object pointed to by this object.
Definition at line 4393 of file XnCppWrapper.h.
void xn::Context::Shutdown | ( | ) | [inline] |
Shuts down the OpenNI library. No other OpenNI function can be called after calling this function.
For full details and usage, see xnShutdownDefinition at line 4137 of file XnCppWrapper.h.
XnStatus xn::Context::StartGeneratingAll | ( | ) | [inline] |
Make sure all generators are generating data.
For full details and usage, see xnStartGeneratingAllDefinition at line 4299 of file XnCppWrapper.h.
XnStatus xn::Context::StopGeneratingAll | ( | ) | [inline] |
Stop all generators from generating data.
For full details and usage, see xnStopGeneratingAllDefinition at line 4307 of file XnCppWrapper.h.
void xn::Context::UnregisterFromErrorStateChange | ( | XnCallbackHandle | hCallback | ) | [inline] |
Unregisters a callback function which was registered using xnRegisterToGlobalErrorStateChange().
For full details and usage, see xnUnregisterFromGlobalErrorStateChangeDefinition at line 4347 of file XnCppWrapper.h.
XnStatus xn::Context::WaitAndUpdateAll | ( | ) | [inline] |
Updates all generators nodes in the context, waiting for all to have new data.
For full details and usage, see xnWaitAndUpdateAllDefinition at line 4355 of file XnCppWrapper.h.
XnStatus xn::Context::WaitAnyUpdateAll | ( | ) | [inline] |
Updates all generators nodes in the context, once any of them have new data.
For full details and usage, see xnWaitAnyUpdateAllDefinition at line 4363 of file XnCppWrapper.h.
XnStatus xn::Context::WaitNoneUpdateAll | ( | ) | [inline] |
Updates all generator nodes in the context, without any waiting. If a node has new data, it will be updated.
For full details and usage, see xnWaitNoneUpdateAllDefinition at line 4379 of file XnCppWrapper.h.
XnStatus xn::Context::WaitOneUpdateAll | ( | ProductionNode & | node | ) | [inline] |
Updates all generators nodes in the context, waiting for a specific one to have new data.
For full details and usage, see xnWaitOneUpdateAllDefinition at line 4371 of file XnCppWrapper.h.
XnBool xn::Context::m_bAllocated [private] |
Definition at line 4414 of file XnCppWrapper.h.
XnContext* xn::Context::m_pContext [private] |
Definition at line 4413 of file XnCppWrapper.h.