38 #ifndef __OPENNI_DEVICE_ONI__ 39 #define __OPENNI_DEVICE_ONI__ 57 DeviceONI (xn::Context& context,
const std::string& file_name,
bool repeat =
false,
bool streaming =
true) throw (
OpenNIException);
73 virtual
bool isImageResizeSupported (
unsigned input_width,
unsigned input_height,
unsigned output_width,
unsigned output_height) const throw ();
75 bool trigger () throw (OpenNIException);
96 #endif //__OPENNI_DEVICE_ONI__ virtual void startDepthStream()
virtual boost::shared_ptr< Image > getCurrentImage(boost::shared_ptr< xn::ImageMetaData > image_meta_data) const
virtual void stopIRStream()
bool image_stream_running_
virtual void stopDepthStream()
boost::thread player_thread_
Driver class implemented as Singleton. This class contains the xn::Context object used by all devices...
Image class containing just a reference to image meta data. Thus this class just provides an interfac...
bool depth_stream_running_
virtual bool isDepthStreamRunning() const
static void __stdcall NewONIImageDataAvailable(xn::ProductionNode &node, void *cookie)
virtual void startIRStream()
static void __stdcall NewONIDepthDataAvailable(xn::ProductionNode &node, void *cookie)
static void __stdcall NewONIIRDataAvailable(xn::ProductionNode &node, void *cookie)
virtual void startImageStream()
Concrete implementation of the interface OpenNIDevice for a virtual device playing back an ONI file...
virtual void stopImageStream()
virtual bool isIRStreamRunning() const
virtual bool isImageResizeSupported(unsigned input_width, unsigned input_height, unsigned output_width, unsigned output_height) const
virtual bool isImageStreamRunning() const
Class representing an astract device for Primesense or MS Kinect devices.
void PlayerThreadFunction()
boost::condition_variable player_condition_
DeviceONI(xn::Context &context, const std::string &file_name, bool repeat=false, bool streaming=true)
boost::mutex player_mutex_