24 #include <core/threading/thread_finalizer.h> 25 #include <plugins/openni/aspect/openni_inifin.h> 27 #include <XnCppWrapper.h> 47 openni_thread = dynamic_cast<OpenNiAspect *>(thread);
48 if (openni_thread == NULL) {
50 "OpenNiAspect, but RTTI says it " 54 if (!openni_context_) {
58 openni_thread->init_OpenNiAspect(openni_context_);
72 openni_context_ = openni_context;
OpenNiAspectIniFin()
Constructor.
virtual void init(Thread *thread)
Initialize thread.
Fawkes library namespace.
Thread aspect to get access to the OpenNI context.
Thread class encapsulation of pthreads.
Thread cannot be initialized.
void set_openni_context(LockPtr< xn::Context > openni_context)
Set the OpenNI context to use for aspect initialization.
const char * name() const
Get name of thread.
virtual void finalize(Thread *thread)
Finalize thread.
Aspect initializer/finalizer base class.