Image Component Library (ICL)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Static Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes
icl::io::icl_openni::OpenNIContext Class Reference

A Context object encapsulating the OpenNI-Context-object. More...

#include <OpenNIUtils.h>

Inheritance diagram for icl::io::icl_openni::OpenNIContext:
icl::utils::Uncopyable

List of all members.

Static Public Member Functions

static XnStatus waitAndUpdate ()
 calls waitAnyUpdateAll on the internal OpenNI context.
static XnStatus CreateProductionTree (xn::NodeInfo &Tree, xn::ProductionNode &node)
 calls CreateProductionTree on the internal OpenNI context.
static XnStatus EnumerateProductionTrees (XnProductionNodeType type, const xn::Query *pQuery, xn::NodeInfoList &TreesList, xn::EnumerationErrors *pErrors=NULL)
 calls EnumerateProductionTrees on the internal OpenNI context.
static XnStatus Create (xn::DepthGenerator *generator)
 calls Create on the internal OpenNI context.

Private Member Functions

 OpenNIContext ()
 This is a singleton class so Constructor is private.
 ~OpenNIContext ()
 releases the corresponding OpenNI context object.

Static Private Member Functions

static OpenNIContextgetInst ()
 initializes the context. only used internally.

Private Attributes

utils::Mutex m_Lock
 Lock for thread safety.
bool m_Initialized
 Tells whether the internal context in initialized or not.
xn::Context m_Context
 The internal context object.

Detailed Description

A Context object encapsulating the OpenNI-Context-object.


Constructor & Destructor Documentation

This is a singleton class so Constructor is private.

releases the corresponding OpenNI context object.


Member Function Documentation

static XnStatus icl::io::icl_openni::OpenNIContext::Create ( xn::DepthGenerator *  generator) [static]

calls Create on the internal OpenNI context.

static XnStatus icl::io::icl_openni::OpenNIContext::CreateProductionTree ( xn::NodeInfo &  Tree,
xn::ProductionNode &  node 
) [static]

calls CreateProductionTree on the internal OpenNI context.

static XnStatus icl::io::icl_openni::OpenNIContext::EnumerateProductionTrees ( XnProductionNodeType  type,
const xn::Query *  pQuery,
xn::NodeInfoList &  TreesList,
xn::EnumerationErrors *  pErrors = NULL 
) [static]

calls EnumerateProductionTrees on the internal OpenNI context.

initializes the context. only used internally.

calls waitAnyUpdateAll on the internal OpenNI context.


Member Data Documentation

The internal context object.

Tells whether the internal context in initialized or not.

Lock for thread safety.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines