Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes
xn::Context Class Reference

#include <XnCppWrapper.h>

List of all members.

Public Member Functions

XnStatus AddLicense (const XnLicense &License)
XnStatus AutoEnumerateOverSingleInput (NodeInfoList &List, XnProductionNodeDescription &description, const XnChar *strCreationInfo, XnProductionNodeType InputType, EnumerationErrors *pErrors, Query *pQuery=NULL) const
 Context ()
 Ctor.
 Context (XnContext *pContext)
 Context (const Context &other)
XnStatus CreateAnyProductionTree (XnProductionNodeType type, Query *pQuery, ProductionNode &node, EnumerationErrors *pErrors=NULL)
XnStatus CreateCodec (XnCodecID codecID, ProductionNode &initializerNode, Codec &codec)
XnStatus CreateMockNode (XnProductionNodeType type, const XnChar *strName, ProductionNode &node)
XnStatus CreateMockNodeBasedOn (ProductionNode &originalNode, const XnChar *strName, ProductionNode &mockNode)
XnStatus CreateProductionTree (NodeInfo &Tree)
XnStatus EnumerateExistingNodes (NodeInfoList &list) const
XnStatus EnumerateExistingNodes (NodeInfoList &list, XnProductionNodeType type) const
XnStatus EnumerateLicenses (XnLicense *&aLicenses, XnUInt32 &nCount) const
XnStatus EnumerateProductionTrees (XnProductionNodeType Type, Query *pQuery, NodeInfoList &TreesList, EnumerationErrors *pErrors=NULL) const
XnStatus FindExistingNode (XnProductionNodeType type, ProductionNode &node) const
XnStatus GetGlobalErrorState ()
XnBool GetGlobalMirror ()
XnStatus GetProductionNodeByName (const XnChar *strInstanceName, ProductionNode &node) const
XnStatus GetProductionNodeInfoByName (const XnChar *strInstanceName, NodeInfo &nodeInfo) const
XnContextGetUnderlyingObject () const
 Gets the underlying C object.
XnStatus Init ()
XnStatus InitFromXmlFile (const XnChar *strFileName, EnumerationErrors *pErrors=NULL)
XnStatus OpenFileRecording (const XnChar *strFileName)
XnStatus RegisterToErrorStateChange (XnErrorStateChangedHandler handler, void *pCookie, XnCallbackHandle &hCallback)
XnStatus RunXmlScript (const XnChar *strScript, EnumerationErrors *pErrors=NULL)
XnStatus RunXmlScriptFromFile (const XnChar *strFileName, EnumerationErrors *pErrors=NULL)
XnStatus SetGlobalMirror (XnBool bMirror)
void SetHandle (XnContext *pContext)
 Replaces the underlying C object pointed to by this object.
void Shutdown ()
XnStatus StartGeneratingAll ()
XnStatus StopGeneratingAll ()
void UnregisterFromErrorStateChange (XnCallbackHandle hCallback)
XnStatus WaitAndUpdateAll ()
XnStatus WaitAnyUpdateAll ()
XnStatus WaitNoneUpdateAll ()
XnStatus WaitOneUpdateAll (ProductionNode &node)
 ~Context ()
 Dtor.

Static Public Member Functions

static void FreeLicensesList (XnLicense aLicenses[])

Private Member Functions

void FreeImpl ()

Private Attributes

XnBool m_bAllocated
XnContextm_pContext

Detailed Description

Represents an OpenNI context object.

Definition at line 4036 of file XnCppWrapper.h.


Constructor & Destructor Documentation

xn::Context::Context ( ) [inline]

Ctor.

Definition at line 4040 of file XnCppWrapper.h.

xn::Context::Context ( XnContext pContext) [inline]

Ctor

Parameters:
pContext[in] Underlying C object

Definition at line 4046 of file XnCppWrapper.h.

xn::Context::Context ( const Context other) [inline]

Copy Ctor

Parameters:
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.


Member Function Documentation

XnStatus xn::Context::AddLicense ( const XnLicense License) [inline]
For full details and usage, see xnAddLicense

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]
For full details and usage, see xnAutoEnumerateOverSingleInput

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 xnCreateAnyProductionTree

Definition at line 4191 of file XnCppWrapper.h.

XnStatus xn::Context::CreateCodec ( XnCodecID  codecID,
ProductionNode initializerNode,
Codec codec 
) [inline]
For full details and usage, see xnCreateCodec

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 xnCreateMockNode

Definition 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 xnCreateMockNodeBasedOn

Definition at line 4121 of file XnCppWrapper.h.

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 xnCreateProductionTree

Definition at line 4209 of file XnCppWrapper.h.

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 xnEnumerateExistingNodes

Definition at line 4223 of file XnCppWrapper.h.

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 xnEnumerateExistingNodesByType

Definition at line 4237 of file XnCppWrapper.h.

XnStatus xn::Context::EnumerateLicenses ( XnLicense *&  aLicenses,
XnUInt32 nCount 
) const [inline]
For full details and usage, see xnEnumerateLicenses

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 xnEnumerateProductionTrees

Definition at line 4173 of file XnCppWrapper.h.

Returns the first found existing node of the specified type.

For full details and usage, see xnFindExistingNodeByType

Definition 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]
For full details and usage, see xnFreeLicensesList

Definition at line 4165 of file XnCppWrapper.h.

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 xnGetGlobalErrorState

Definition at line 4331 of file XnCppWrapper.h.

Gets the global mirror flag.

For full details and usage, see xnGetGlobalMirror

Definition 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 xnGetNodeHandleByName

Definition 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 xnGetNodeHandleByName

Definition at line 4283 of file XnCppWrapper.h.

Gets the underlying C object.

Definition at line 4062 of file XnCppWrapper.h.

Initializes the OpenNI library.

For full details and usage, see xnInit

Definition 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 xnInitFromXmlFile

Definition 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 xnContextOpenFileRecording

Definition at line 4105 of file XnCppWrapper.h.

Registers a callback function to global error state changes.

For full details and usage, see xnRegisterToGlobalErrorStateChange

Definition 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 xnContextRunXmlScript

Definition 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 xnContextRunXmlScriptFromFile

Definition at line 4086 of file XnCppWrapper.h.

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 xnSetGlobalMirror

Definition 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.

Shuts down the OpenNI library. No other OpenNI function can be called after calling this function.

For full details and usage, see xnShutdown

Definition at line 4137 of file XnCppWrapper.h.

Make sure all generators are generating data.

For full details and usage, see xnStartGeneratingAll

Definition at line 4299 of file XnCppWrapper.h.

Stop all generators from generating data.

For full details and usage, see xnStopGeneratingAll

Definition at line 4307 of file XnCppWrapper.h.

Unregisters a callback function which was registered using xnRegisterToGlobalErrorStateChange().

For full details and usage, see xnUnregisterFromGlobalErrorStateChange

Definition at line 4347 of file XnCppWrapper.h.

Updates all generators nodes in the context, waiting for all to have new data.

For full details and usage, see xnWaitAndUpdateAll

Definition at line 4355 of file XnCppWrapper.h.

Updates all generators nodes in the context, once any of them have new data.

For full details and usage, see xnWaitAnyUpdateAll

Definition at line 4363 of file XnCppWrapper.h.

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 xnWaitNoneUpdateAll

Definition at line 4379 of file XnCppWrapper.h.

Updates all generators nodes in the context, waiting for a specific one to have new data.

For full details and usage, see xnWaitOneUpdateAll

Definition at line 4371 of file XnCppWrapper.h.


Member Data Documentation

Definition at line 4414 of file XnCppWrapper.h.

Definition at line 4413 of file XnCppWrapper.h.


The documentation for this class was generated from the following file:


nao_openni
Author(s): Bener SUAY
autogenerated on Mon Jan 6 2014 11:27:52