All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Friends
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Friends
freenect_camera::FreenectDevice Class Reference

#include <freenect_device.hpp>

Inheritance diagram for freenect_camera::FreenectDevice:
Inheritance graph
[legend]

List of all members.

Public Member Functions

bool findCompatibleDepthMode (const OutputMode &mode, OutputMode &compatible_mode) const
bool findCompatibleImageMode (const OutputMode &mode, OutputMode &compatible_mode) const
 FreenectDevice (freenect_context *driver, std::string serial)
unsigned getAddress () const
float getBaseline () const
unsigned getBus () const
OutputMode getDefaultDepthMode () const
OutputMode getDefaultImageMode () const
OutputMode getDepthOutputMode ()
OutputMode getImageOutputMode ()
const char * getProductName () const
const char * getSerialNumber () const
bool hasDepthStream () const
bool hasImageStream () const
bool hasIRStream () const
bool isDepthRegistered ()
bool isDepthRegistrationSupported () const
bool isDepthStreamRunning ()
bool isImageStreamRunning ()
bool isIRStreamRunning ()
bool isSynchronizationSupported () const
bool isSynchronized () const
template<typename T >
void registerDepthCallback (void(T::*callback)(const ImageBuffer &depth_image, void *cookie), T &instance, void *cookie=NULL)
template<typename T >
void registerImageCallback (void(T::*callback)(const ImageBuffer &image, void *cookie), T &instance, void *cookie=NULL)
template<typename T >
void registerIRCallback (void(T::*callback)(const ImageBuffer &ir_image, void *cookie), T &instance, void *cookie=NULL)
void setDepthOutputMode (OutputMode mode)
void setDepthRegistration (bool enable)
void setImageOutputMode (OutputMode mode)
bool setSynchronization (bool on_off) const
void shutdown ()
void startDepthStream ()
void startImageStream ()
void startIRStream ()
void stopDepthStream ()
void stopImageStream ()
void stopIRStream ()
 ~FreenectDevice ()

Static Public Member Functions

static void freenectDepthCallback (freenect_device *dev, void *depth, uint32_t timestamp)
static void freenectVideoCallback (freenect_device *dev, void *video, uint32_t timestamp)

Private Member Functions

bool _isImageModeEnabled ()
void depthCallback (void *depth)
void executeChanges ()
void videoCallback (void *video)

Private Attributes

ImageBuffer depth_buffer_
boost::function< void(const
ImageBuffer &)> 
depth_callback_
freenect_device * device_
std::string device_serial_
boost::function< void(const
ImageBuffer &)> 
image_callback_
boost::function< void(const
ImageBuffer &)> 
ir_callback_
boost::recursive_mutex m_settings_
freenect_depth_format new_depth_format_
freenect_resolution new_depth_resolution_
freenect_video_format new_video_format_
freenect_resolution new_video_resolution_
freenect_registration registration_
bool should_stream_depth_
bool should_stream_video_
bool streaming_depth_
bool streaming_video_
ImageBuffer video_buffer_

Friends

class FreenectDriver

Detailed Description

Definition at line 28 of file freenect_device.hpp.


Constructor & Destructor Documentation

freenect_camera::FreenectDevice::FreenectDevice ( freenect_context *  driver,
std::string  serial 
) [inline]

Definition at line 32 of file freenect_device.hpp.

Definition at line 56 of file freenect_device.hpp.


Member Function Documentation

Definition at line 372 of file freenect_device.hpp.

void freenect_camera::FreenectDevice::depthCallback ( void *  depth) [inline, private]

Definition at line 377 of file freenect_device.hpp.

Definition at line 300 of file freenect_device.hpp.

bool freenect_camera::FreenectDevice::findCompatibleDepthMode ( const OutputMode mode,
OutputMode compatible_mode 
) const [inline]

Definition at line 217 of file freenect_device.hpp.

bool freenect_camera::FreenectDevice::findCompatibleImageMode ( const OutputMode mode,
OutputMode compatible_mode 
) const [inline]

Definition at line 156 of file freenect_device.hpp.

static void freenect_camera::FreenectDevice::freenectDepthCallback ( freenect_device *  dev,
void *  depth,
uint32_t  timestamp 
) [inline, static]

Definition at line 256 of file freenect_device.hpp.

static void freenect_camera::FreenectDevice::freenectVideoCallback ( freenect_device *  dev,
void *  video,
uint32_t  timestamp 
) [inline, static]

Definition at line 264 of file freenect_device.hpp.

unsigned freenect_camera::FreenectDevice::getAddress ( ) const [inline]

Unsupported

Definition at line 73 of file freenect_device.hpp.

Get the baseline (distance between rgb/depth sensor)

Definition at line 116 of file freenect_device.hpp.

unsigned freenect_camera::FreenectDevice::getBus ( ) const [inline]

Unsupported

Definition at line 68 of file freenect_device.hpp.

Definition at line 213 of file freenect_device.hpp.

Definition at line 152 of file freenect_device.hpp.

Definition at line 203 of file freenect_device.hpp.

Definition at line 142 of file freenect_device.hpp.

const char* freenect_camera::FreenectDevice::getProductName ( ) const [inline]

Definition at line 77 of file freenect_device.hpp.

const char* freenect_camera::FreenectDevice::getSerialNumber ( ) const [inline]

Definition at line 81 of file freenect_device.hpp.

Definition at line 89 of file freenect_device.hpp.

Definition at line 85 of file freenect_device.hpp.

Definition at line 93 of file freenect_device.hpp.

Definition at line 228 of file freenect_device.hpp.

Definition at line 97 of file freenect_device.hpp.

Definition at line 249 of file freenect_device.hpp.

Definition at line 179 of file freenect_device.hpp.

Definition at line 196 of file freenect_device.hpp.

Definition at line 101 of file freenect_device.hpp.

Definition at line 105 of file freenect_device.hpp.

template<typename T >
void freenect_camera::FreenectDevice::registerDepthCallback ( void(T::*)(const ImageBuffer &depth_image, void *cookie)  callback,
T &  instance,
void *  cookie = NULL 
) [inline]

Definition at line 128 of file freenect_device.hpp.

template<typename T >
void freenect_camera::FreenectDevice::registerImageCallback ( void(T::*)(const ImageBuffer &image, void *cookie)  callback,
T &  instance,
void *  cookie = NULL 
) [inline]

Definition at line 122 of file freenect_device.hpp.

template<typename T >
void freenect_camera::FreenectDevice::registerIRCallback ( void(T::*)(const ImageBuffer &ir_image, void *cookie)  callback,
T &  instance,
void *  cookie = NULL 
) [inline]

Definition at line 134 of file freenect_device.hpp.

Definition at line 208 of file freenect_device.hpp.

Definition at line 233 of file freenect_device.hpp.

Definition at line 147 of file freenect_device.hpp.

bool freenect_camera::FreenectDevice::setSynchronization ( bool  on_off) const [inline]

Definition at line 109 of file freenect_device.hpp.

Definition at line 60 of file freenect_device.hpp.

Definition at line 244 of file freenect_device.hpp.

Definition at line 173 of file freenect_device.hpp.

Definition at line 190 of file freenect_device.hpp.

Definition at line 239 of file freenect_device.hpp.

Definition at line 167 of file freenect_device.hpp.

Definition at line 184 of file freenect_device.hpp.

void freenect_camera::FreenectDevice::videoCallback ( void *  video) [inline, private]

Definition at line 383 of file freenect_device.hpp.


Friends And Related Function Documentation

friend class FreenectDriver [friend]

Definition at line 274 of file freenect_device.hpp.


Member Data Documentation

Definition at line 290 of file freenect_device.hpp.

boost::function<void(const ImageBuffer&)> freenect_camera::FreenectDevice::depth_callback_ [private]

Definition at line 281 of file freenect_device.hpp.

freenect_device* freenect_camera::FreenectDevice::device_ [private]

Definition at line 276 of file freenect_device.hpp.

Definition at line 277 of file freenect_device.hpp.

boost::function<void(const ImageBuffer&)> freenect_camera::FreenectDevice::image_callback_ [private]

Definition at line 280 of file freenect_device.hpp.

boost::function<void(const ImageBuffer&)> freenect_camera::FreenectDevice::ir_callback_ [private]

Definition at line 282 of file freenect_device.hpp.

boost::recursive_mutex freenect_camera::FreenectDevice::m_settings_ [private]

Definition at line 298 of file freenect_device.hpp.

freenect_depth_format freenect_camera::FreenectDevice::new_depth_format_ [private]

Definition at line 294 of file freenect_device.hpp.

Definition at line 293 of file freenect_device.hpp.

freenect_video_format freenect_camera::FreenectDevice::new_video_format_ [private]

Definition at line 288 of file freenect_device.hpp.

Definition at line 287 of file freenect_device.hpp.

freenect_registration freenect_camera::FreenectDevice::registration_ [private]

Definition at line 278 of file freenect_device.hpp.

Definition at line 292 of file freenect_device.hpp.

Definition at line 286 of file freenect_device.hpp.

Definition at line 291 of file freenect_device.hpp.

Definition at line 285 of file freenect_device.hpp.

Definition at line 284 of file freenect_device.hpp.


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


freenect_camera
Author(s): Patrick Mihelich, Suat Gedikli, Radu Bogdan Rusu (original openni_camera driver). Piyush Khandelwal (libfreenect port).
autogenerated on Wed May 1 2013 10:40:36