$search

openni_wrapper::DeviceONI Class Reference

Concrete implementation of the interface OpenNIDevice for a virtual device playing back an ONI file. More...

#include <openni_device_oni.h>

Inheritance diagram for openni_wrapper::DeviceONI:
Inheritance graph
[legend]

List of all members.

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< ImagegetCurrentImage (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

Detailed Description

Concrete implementation of the interface OpenNIDevice for a virtual device playing back an ONI file.

Author:
Suat Gedikli
Date:
19. june 2011

Definition at line 53 of file openni_device_oni.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

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.


Friends And Related Function Documentation

friend class OpenNIDriver [friend]

Definition at line 55 of file openni_device_oni.h.


Member Data Documentation

Definition at line 90 of file openni_device_oni.h.

Definition at line 91 of file openni_device_oni.h.

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.

Definition at line 89 of file openni_device_oni.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines


openni_camera
Author(s): Suat Gedikli, Patrick Mihelich, Radu Bogdan Rusu
autogenerated on Fri Mar 1 16:23:58 2013