Image Component Library (ICL)
Static Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
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

Static Public Member Functions

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

Private Member Functions

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

Static Private Member Functions

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

Private Attributes

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

Additional Inherited Members

- Protected Member Functions inherited from icl::utils::Uncopyable
 Uncopyable ()
 Empty base constructor. More...
 

Detailed Description

A Context object encapsulating the OpenNI-Context-object.

Constructor & Destructor Documentation

◆ OpenNIContext()

icl::io::icl_openni::OpenNIContext::OpenNIContext ( )
private

This is a singleton class so Constructor is private.

◆ ~OpenNIContext()

icl::io::icl_openni::OpenNIContext::~OpenNIContext ( )
private

releases the corresponding OpenNI context object.

Member Function Documentation

◆ Create()

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

calls Create on the internal OpenNI context.

◆ CreateProductionTree()

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

calls CreateProductionTree on the internal OpenNI context.

◆ EnumerateProductionTrees()

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.

◆ getInst()

static OpenNIContext* icl::io::icl_openni::OpenNIContext::getInst ( )
staticprivate

initializes the context. only used internally.

◆ waitAndUpdate()

static XnStatus icl::io::icl_openni::OpenNIContext::waitAndUpdate ( )
static

calls waitAnyUpdateAll on the internal OpenNI context.

Member Data Documentation

◆ m_Context

xn::Context icl::io::icl_openni::OpenNIContext::m_Context
private

The internal context object.

◆ m_Initialized

bool icl::io::icl_openni::OpenNIContext::m_Initialized
private

Tells whether the internal context in initialized or not.

◆ m_Lock

utils::Mutex icl::io::icl_openni::OpenNIContext::m_Lock
private

Lock for thread safety.


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