24 #include <plugins/openni/aspect/openni_inifin.h> 25 #include <core/threading/thread_finalizer.h> 26 #include <XnCppWrapper.h> 51 if (openni_thread == NULL) {
53 "OpenNiAspect, but RTTI says it " 54 "has not. ", thread->
name());
56 if (! __openni_context) {
60 openni_thread->init_OpenNiAspect(__openni_context);
75 __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.