Image Component Library (ICL)
|
A Context object encapsulating the OpenNI-Context-object. More...
#include <OpenNIUtils.h>
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 OpenNIContext * | getInst () |
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. |
A Context object encapsulating the OpenNI-Context-object.
icl::io::icl_openni::OpenNIContext::OpenNIContext | ( | ) | [private] |
This is a singleton class so Constructor is private.
icl::io::icl_openni::OpenNIContext::~OpenNIContext | ( | ) | [private] |
releases the corresponding OpenNI context object.
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.
static OpenNIContext* icl::io::icl_openni::OpenNIContext::getInst | ( | ) | [static, private] |
initializes the context. only used internally.
static XnStatus icl::io::icl_openni::OpenNIContext::waitAndUpdate | ( | ) | [static] |
calls waitAnyUpdateAll on the internal OpenNI context.
xn::Context icl::io::icl_openni::OpenNIContext::m_Context [private] |
The internal context object.
bool icl::io::icl_openni::OpenNIContext::m_Initialized [private] |
Tells whether the internal context in initialized or not.
Lock for thread safety.