$search
Concrete implementation of the interface OpenNIDevice for a virtual device playing back an ONI file. More...
#include <openni_device_oni.h>
Public Member Functions | |
DeviceONI (xn::Context &context, const std::string &file_name, bool repeat=false, bool streaming=true) throw (OpenNIException) | |
virtual bool | isDepthStreamRunning () const throw (OpenNIException) |
virtual bool | isImageResizeSupported (unsigned input_width, unsigned input_height, unsigned output_width, unsigned output_height) const throw () |
virtual bool | isImageStreamRunning () const throw (OpenNIException) |
virtual bool | isIRStreamRunning () const throw (OpenNIException) |
bool | isStreaming () const throw (OpenNIException) |
virtual void | startDepthStream () throw (OpenNIException) |
virtual void | startImageStream () throw (OpenNIException) |
virtual void | startIRStream () throw (OpenNIException) |
virtual void | stopDepthStream () throw (OpenNIException) |
virtual void | stopImageStream () throw (OpenNIException) |
virtual void | stopIRStream () throw (OpenNIException) |
bool | trigger () throw (OpenNIException) |
virtual | ~DeviceONI () throw () |
Protected Member Functions | |
virtual boost::shared_ptr< Image > | getCurrentImage (boost::shared_ptr< xn::ImageMetaData > image_meta_data) const throw () |
void | PlayerThreadFunction () throw (OpenNIException) |
Static Protected Member Functions | |
static void __stdcall | NewONIDepthDataAvailable (xn::ProductionNode &node, void *cookie) throw () |
static void __stdcall | NewONIImageDataAvailable (xn::ProductionNode &node, void *cookie) throw () |
static void __stdcall | NewONIIRDataAvailable (xn::ProductionNode &node, void *cookie) throw () |
Protected Attributes | |
bool | depth_stream_running_ |
bool | image_stream_running_ |
bool | ir_stream_running_ |
xn::Player | player_ |
boost::condition_variable | player_condition_ |
boost::mutex | player_mutex_ |
boost::thread | player_thread_ |
bool | streaming_ |
Friends | |
class | OpenNIDriver |
Concrete implementation of the interface OpenNIDevice for a virtual device playing back an ONI file.
Definition at line 53 of file openni_device_oni.h.
openni_wrapper::DeviceONI::DeviceONI | ( | xn::Context & | context, | |
const std::string & | file_name, | |||
bool | repeat = false , |
|||
bool | streaming = true | |||
) | throw (OpenNIException) |
Definition at line 46 of file openni_device_oni.cpp.
openni_wrapper::DeviceONI::~DeviceONI | ( | ) | throw () [virtual] |
Definition at line 91 of file openni_device_oni.cpp.
boost::shared_ptr< Image > openni_wrapper::DeviceONI::getCurrentImage | ( | boost::shared_ptr< xn::ImageMetaData > | image_meta_data | ) | const throw () [protected, virtual] |
Implements openni_wrapper::OpenNIDevice.
Definition at line 196 of file openni_device_oni.cpp.
bool openni_wrapper::DeviceONI::isDepthStreamRunning | ( | ) | const throw (OpenNIException) [virtual] |
Reimplemented from openni_wrapper::OpenNIDevice.
Definition at line 141 of file openni_device_oni.cpp.
bool openni_wrapper::DeviceONI::isImageResizeSupported | ( | unsigned | input_width, | |
unsigned | input_height, | |||
unsigned | output_width, | |||
unsigned | output_height | |||
) | const throw () [virtual] |
Implements openni_wrapper::OpenNIDevice.
Definition at line 201 of file openni_device_oni.cpp.
bool openni_wrapper::DeviceONI::isImageStreamRunning | ( | ) | const throw (OpenNIException) [virtual] |
Reimplemented from openni_wrapper::OpenNIDevice.
Definition at line 136 of file openni_device_oni.cpp.
bool openni_wrapper::DeviceONI::isIRStreamRunning | ( | ) | const throw (OpenNIException) [virtual] |
Reimplemented from openni_wrapper::OpenNIDevice.
Definition at line 146 of file openni_device_oni.cpp.
bool openni_wrapper::DeviceONI::isStreaming | ( | ) | const throw (OpenNIException) |
Definition at line 163 of file openni_device_oni.cpp.
void __stdcall openni_wrapper::DeviceONI::NewONIDepthDataAvailable | ( | xn::ProductionNode & | node, | |
void * | cookie | |||
) | throw () [static, protected] |
Definition at line 175 of file openni_device_oni.cpp.
void __stdcall openni_wrapper::DeviceONI::NewONIImageDataAvailable | ( | xn::ProductionNode & | node, | |
void * | cookie | |||
) | throw () [static, protected] |
Definition at line 182 of file openni_device_oni.cpp.
void __stdcall openni_wrapper::DeviceONI::NewONIIRDataAvailable | ( | xn::ProductionNode & | node, | |
void * | cookie | |||
) | throw () [static, protected] |
Definition at line 189 of file openni_device_oni.cpp.
void openni_wrapper::DeviceONI::PlayerThreadFunction | ( | ) | throw (OpenNIException) [protected] |
Definition at line 168 of file openni_device_oni.cpp.
void openni_wrapper::DeviceONI::startDepthStream | ( | ) | throw (OpenNIException) [virtual] |
Reimplemented from openni_wrapper::OpenNIDevice.
Definition at line 112 of file openni_device_oni.cpp.
void openni_wrapper::DeviceONI::startImageStream | ( | ) | throw (OpenNIException) [virtual] |
Reimplemented from openni_wrapper::OpenNIDevice.
Definition at line 100 of file openni_device_oni.cpp.
void openni_wrapper::DeviceONI::startIRStream | ( | ) | throw (OpenNIException) [virtual] |
Reimplemented from openni_wrapper::OpenNIDevice.
Definition at line 124 of file openni_device_oni.cpp.
void openni_wrapper::DeviceONI::stopDepthStream | ( | ) | throw (OpenNIException) [virtual] |
Reimplemented from openni_wrapper::OpenNIDevice.
Definition at line 118 of file openni_device_oni.cpp.
void openni_wrapper::DeviceONI::stopImageStream | ( | ) | throw (OpenNIException) [virtual] |
Reimplemented from openni_wrapper::OpenNIDevice.
Definition at line 106 of file openni_device_oni.cpp.
void openni_wrapper::DeviceONI::stopIRStream | ( | ) | throw (OpenNIException) [virtual] |
Reimplemented from openni_wrapper::OpenNIDevice.
Definition at line 130 of file openni_device_oni.cpp.
bool openni_wrapper::DeviceONI::trigger | ( | ) | throw (OpenNIException) |
Definition at line 151 of file openni_device_oni.cpp.
friend class OpenNIDriver [friend] |
Definition at line 55 of file openni_device_oni.h.
bool openni_wrapper::DeviceONI::depth_stream_running_ [protected] |
Definition at line 90 of file openni_device_oni.h.
bool openni_wrapper::DeviceONI::image_stream_running_ [protected] |
Definition at line 91 of file openni_device_oni.h.
bool openni_wrapper::DeviceONI::ir_stream_running_ [protected] |
Definition at line 92 of file openni_device_oni.h.
xn::Player openni_wrapper::DeviceONI::player_ [protected] |
Definition at line 85 of file openni_device_oni.h.
boost::condition_variable openni_wrapper::DeviceONI::player_condition_ [protected] |
Definition at line 88 of file openni_device_oni.h.
boost::mutex openni_wrapper::DeviceONI::player_mutex_ [mutable, protected] |
Definition at line 87 of file openni_device_oni.h.
boost::thread openni_wrapper::DeviceONI::player_thread_ [protected] |
Definition at line 86 of file openni_device_oni.h.
bool openni_wrapper::DeviceONI::streaming_ [protected] |
Definition at line 89 of file openni_device_oni.h.