Public Member Functions | Protected Member Functions | Static Private Member Functions | Private Attributes | List of all members
Freenect::FreenectDevice Class Reference

#include <libfreenect.hpp>

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

Public Member Functions

virtual void DepthCallback (void *depth, uint32_t timestamp)
 
 FreenectDevice (freenect_context *_ctx, int _index)
 
freenect_depth_format getDepthFormat ()
 
freenect_resolution getDepthResolution ()
 
const freenect_devicegetDevice ()
 
FreenectTiltState getState () const
 
freenect_video_format getVideoFormat ()
 
freenect_resolution getVideoResolution ()
 
void setDepthFormat (freenect_depth_format requested_format, freenect_resolution requested_resolution=FREENECT_RESOLUTION_MEDIUM)
 
int setFlag (freenect_flag flag, bool value)
 
void setLed (freenect_led_options _option)
 
void setTiltDegrees (double _angle)
 
void setVideoFormat (freenect_video_format requested_format, freenect_resolution requested_resolution=FREENECT_RESOLUTION_MEDIUM)
 
void startDepth ()
 
void startVideo ()
 
void stopDepth ()
 
void stopVideo ()
 
void updateState ()
 
virtual void VideoCallback (void *video, uint32_t timestamp)
 
virtual ~FreenectDevice ()
 

Protected Member Functions

int getDepthBufferSize ()
 
int getVideoBufferSize ()
 

Static Private Member Functions

static void freenect_depth_callback (freenect_device *dev, void *depth, uint32_t timestamp)
 
static void freenect_video_callback (freenect_device *dev, void *video, uint32_t timestamp)
 

Private Attributes

freenect_depth_format m_depth_format
 
freenect_resolution m_depth_resolution
 
freenect_devicem_dev
 
freenect_video_format m_video_format
 
freenect_resolution m_video_resolution
 

Additional Inherited Members

- Private Member Functions inherited from Freenect::Noncopyable
 Noncopyable ()
 
 ~Noncopyable ()
 

Detailed Description

Definition at line 63 of file libfreenect.hpp.

Constructor & Destructor Documentation

Freenect::FreenectDevice::FreenectDevice ( freenect_context _ctx,
int  _index 
)
inline

Definition at line 65 of file libfreenect.hpp.

virtual Freenect::FreenectDevice::~FreenectDevice ( )
inlinevirtual

Definition at line 75 of file libfreenect.hpp.

Member Function Documentation

virtual void Freenect::FreenectDevice::DepthCallback ( void *  depth,
uint32_t  timestamp 
)
inlinevirtual

Reimplemented in MyFreenectDevice, MyFreenectDevice, and FreenectDriver::Device.

Definition at line 148 of file libfreenect.hpp.

static void Freenect::FreenectDevice::freenect_depth_callback ( freenect_device dev,
void *  depth,
uint32_t  timestamp 
)
inlinestaticprivate

Definition at line 173 of file libfreenect.hpp.

static void Freenect::FreenectDevice::freenect_video_callback ( freenect_device dev,
void *  video,
uint32_t  timestamp 
)
inlinestaticprivate

Definition at line 177 of file libfreenect.hpp.

int Freenect::FreenectDevice::getDepthBufferSize ( )
inlineprotected

Definition at line 164 of file libfreenect.hpp.

freenect_depth_format Freenect::FreenectDevice::getDepthFormat ( )
inline

Definition at line 132 of file libfreenect.hpp.

freenect_resolution Freenect::FreenectDevice::getDepthResolution ( )
inline

Definition at line 135 of file libfreenect.hpp.

const freenect_device* Freenect::FreenectDevice::getDevice ( )
inline

Definition at line 142 of file libfreenect.hpp.

FreenectTiltState Freenect::FreenectDevice::getState ( ) const
inline

Definition at line 99 of file libfreenect.hpp.

int Freenect::FreenectDevice::getVideoBufferSize ( )
inlineprotected

Definition at line 150 of file libfreenect.hpp.

freenect_video_format Freenect::FreenectDevice::getVideoFormat ( )
inline

Definition at line 114 of file libfreenect.hpp.

freenect_resolution Freenect::FreenectDevice::getVideoResolution ( )
inline

Definition at line 117 of file libfreenect.hpp.

void Freenect::FreenectDevice::setDepthFormat ( freenect_depth_format  requested_format,
freenect_resolution  requested_resolution = FREENECT_RESOLUTION_MEDIUM 
)
inline

Definition at line 120 of file libfreenect.hpp.

int Freenect::FreenectDevice::setFlag ( freenect_flag  flag,
bool  value 
)
inline

Definition at line 138 of file libfreenect.hpp.

void Freenect::FreenectDevice::setLed ( freenect_led_options  _option)
inline

Definition at line 93 of file libfreenect.hpp.

void Freenect::FreenectDevice::setTiltDegrees ( double  _angle)
inline

Definition at line 90 of file libfreenect.hpp.

void Freenect::FreenectDevice::setVideoFormat ( freenect_video_format  requested_format,
freenect_resolution  requested_resolution = FREENECT_RESOLUTION_MEDIUM 
)
inline

Definition at line 102 of file libfreenect.hpp.

void Freenect::FreenectDevice::startDepth ( )
inline

Definition at line 84 of file libfreenect.hpp.

void Freenect::FreenectDevice::startVideo ( )
inline

Definition at line 78 of file libfreenect.hpp.

void Freenect::FreenectDevice::stopDepth ( )
inline

Definition at line 87 of file libfreenect.hpp.

void Freenect::FreenectDevice::stopVideo ( )
inline

Definition at line 81 of file libfreenect.hpp.

void Freenect::FreenectDevice::updateState ( )
inline

Definition at line 96 of file libfreenect.hpp.

virtual void Freenect::FreenectDevice::VideoCallback ( void *  video,
uint32_t  timestamp 
)
inlinevirtual

Reimplemented in MyFreenectDevice, MyFreenectDevice, and FreenectDriver::Device.

Definition at line 146 of file libfreenect.hpp.

Member Data Documentation

freenect_depth_format Freenect::FreenectDevice::m_depth_format
private

Definition at line 170 of file libfreenect.hpp.

freenect_resolution Freenect::FreenectDevice::m_depth_resolution
private

Definition at line 172 of file libfreenect.hpp.

freenect_device* Freenect::FreenectDevice::m_dev
private

Definition at line 168 of file libfreenect.hpp.

freenect_video_format Freenect::FreenectDevice::m_video_format
private

Definition at line 169 of file libfreenect.hpp.

freenect_resolution Freenect::FreenectDevice::m_video_resolution
private

Definition at line 171 of file libfreenect.hpp.


The documentation for this class was generated from the following file:


libfreenect
Author(s): Hector Martin, Josh Blake, Kyle Machulis, OpenKinect community
autogenerated on Thu Jun 6 2019 19:25:39