Public Member Functions | Static Public Member Functions | Static Public Attributes | Private Types | Private Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes | List of all members
FreenectDriver::DepthStream Class Reference

#include <DepthStream.hpp>

Inheritance diagram for FreenectDriver::DepthStream:
Inheritance graph
[legend]

Public Member Functions

 DepthStream (Freenect::FreenectDevice *pDevice)
 
OniImageRegistrationMode getImageRegistrationMode () const
 
OniStatus getProperty (int propertyId, void *data, int *pDataSize)
 
OniBool isImageRegistrationModeSupported (OniImageRegistrationMode mode)
 
OniBool isPropertySupported (int propertyId)
 
OniStatus setImageRegistrationMode (OniImageRegistrationMode mode)
 
- Public Member Functions inherited from FreenectDriver::VideoStream
void buildFrame (void *data, uint32_t timestamp)
 
OniBool isPropertySupported (int propertyId)
 
virtual OniStatus setProperty (int propertyId, const void *data, int dataSize)
 
OniStatus start ()
 
void stop ()
 
 VideoStream (Freenect::FreenectDevice *device)
 
- Public Member Functions inherited from oni::driver::StreamBase
virtual OniStatus convertDepthToColorCoordinates (StreamBase *, int, int, OniDepthPixel, int *, int *)
 
virtual int getRequiredFrameSize ()
 
virtual OniStatus invoke (int, void *, int)
 
virtual OniBool isCommandSupported (int)
 
virtual void notifyAllProperties ()
 
virtual void setNewFrameCallback (NewFrameCallback handler, void *pCookie)
 
virtual void setPropertyChangedCallback (PropertyChangedCallback handler, void *pCookie)
 
virtual void setServices (StreamServices *pStreamServices)
 
 StreamBase ()
 
virtual ~StreamBase ()
 

Static Public Member Functions

static OniSensorInfo getSensorInfo ()
 

Static Public Attributes

static const unsigned long long CONST_SHIFT_VAL = 200
 
static const float DIAGONAL_FOV = 70 * (M_PI / 180)
 
static const double EMITTER_DCMOS_DISTANCE_VAL = 7.5
 
static const unsigned long long GAIN_VAL = 42
 
static const float HORIZONTAL_FOV = 58.5 * (M_PI / 180)
 
static const unsigned long long MAX_SHIFT_VAL = 2047
 
static const int MAX_VALUE = 10000
 
static const unsigned long long PARAM_COEFF_VAL = 4
 
static const unsigned long long SHIFT_SCALE_VAL = 10
 
static const float VERTICAL_FOV = 45.6 * (M_PI / 180)
 
static const unsigned long long ZERO_PLANE_DISTANCE_VAL = 120
 
static const double ZERO_PLANE_PIXEL_SIZE_VAL = 0.10520000010728836
 

Private Types

typedef std::map< OniVideoMode, std::pair< freenect_depth_format, freenect_resolution > > FreenectDepthModeMap
 

Private Member Functions

void populateFrame (void *data, OniFrame *frame) const
 
OniStatus setVideoMode (OniVideoMode requested_mode)
 

Static Private Member Functions

static FreenectDepthModeMap getSupportedVideoModes ()
 

Private Attributes

OniImageRegistrationMode image_registration_mode
 

Static Private Attributes

static const OniSensorType sensor_type = ONI_SENSOR_DEPTH
 

Additional Inherited Members

- Protected Member Functions inherited from oni::driver::StreamBase
StreamServicesgetServices ()
 
void raiseNewFrame (OniFrame *pFrame)
 
void raisePropertyChanged (int propertyId, const void *data, int dataSize)
 
- Protected Attributes inherited from FreenectDriver::VideoStream
OniCropping cropping
 
Freenect::FreenectDevicedevice
 
bool mirroring
 
bool running
 
OniVideoMode video_mode
 
- Static Protected Attributes inherited from FreenectDriver::VideoStream
static const OniSensorType sensor_type
 

Detailed Description

Definition at line 16 of file DepthStream.hpp.

Member Typedef Documentation

Definition at line 35 of file DepthStream.hpp.

Constructor & Destructor Documentation

DepthStream::DepthStream ( Freenect::FreenectDevice pDevice)

Definition at line 7 of file DepthStream.cpp.

Member Function Documentation

OniImageRegistrationMode FreenectDriver::DepthStream::getImageRegistrationMode ( ) const
inline

Definition at line 56 of file DepthStream.hpp.

OniStatus FreenectDriver::DepthStream::getProperty ( int  propertyId,
void *  data,
int *  pDataSize 
)
inlinevirtual

Reimplemented from FreenectDriver::VideoStream.

Definition at line 91 of file DepthStream.hpp.

static OniSensorInfo FreenectDriver::DepthStream::getSensorInfo ( )
inlinestatic

Definition at line 47 of file DepthStream.hpp.

DepthStream::FreenectDepthModeMap DepthStream::getSupportedVideoModes ( )
staticprivate

Definition at line 18 of file DepthStream.cpp.

OniBool FreenectDriver::DepthStream::isImageRegistrationModeSupported ( OniImageRegistrationMode  mode)
inline

Definition at line 66 of file DepthStream.hpp.

OniBool FreenectDriver::DepthStream::isPropertySupported ( int  propertyId)
inlinevirtual

Reimplemented from oni::driver::StreamBase.

Definition at line 68 of file DepthStream.hpp.

void DepthStream::populateFrame ( void *  data,
OniFrame frame 
) const
privatevirtual

Implements FreenectDriver::VideoStream.

Definition at line 56 of file DepthStream.cpp.

OniStatus FreenectDriver::DepthStream::setImageRegistrationMode ( OniImageRegistrationMode  mode)
inline

Definition at line 57 of file DepthStream.hpp.

OniStatus DepthStream::setVideoMode ( OniVideoMode  requested_mode)
privatevirtual

Implements FreenectDriver::VideoStream.

Definition at line 28 of file DepthStream.cpp.

Member Data Documentation

const unsigned long long FreenectDriver::DepthStream::CONST_SHIFT_VAL = 200
static

Definition at line 26 of file DepthStream.hpp.

const float FreenectDriver::DepthStream::DIAGONAL_FOV = 70 * (M_PI / 180)
static

Definition at line 20 of file DepthStream.hpp.

const double FreenectDriver::DepthStream::EMITTER_DCMOS_DISTANCE_VAL = 7.5
static

Definition at line 32 of file DepthStream.hpp.

const unsigned long long FreenectDriver::DepthStream::GAIN_VAL = 42
static

Definition at line 25 of file DepthStream.hpp.

const float FreenectDriver::DepthStream::HORIZONTAL_FOV = 58.5 * (M_PI / 180)
static

Definition at line 21 of file DepthStream.hpp.

OniImageRegistrationMode FreenectDriver::DepthStream::image_registration_mode
private

Definition at line 37 of file DepthStream.hpp.

const unsigned long long FreenectDriver::DepthStream::MAX_SHIFT_VAL = 2047
static

Definition at line 27 of file DepthStream.hpp.

const int FreenectDriver::DepthStream::MAX_VALUE = 10000
static

Definition at line 24 of file DepthStream.hpp.

const unsigned long long FreenectDriver::DepthStream::PARAM_COEFF_VAL = 4
static

Definition at line 28 of file DepthStream.hpp.

const OniSensorType FreenectDriver::DepthStream::sensor_type = ONI_SENSOR_DEPTH
staticprivate

Definition at line 36 of file DepthStream.hpp.

const unsigned long long FreenectDriver::DepthStream::SHIFT_SCALE_VAL = 10
static

Definition at line 29 of file DepthStream.hpp.

const float FreenectDriver::DepthStream::VERTICAL_FOV = 45.6 * (M_PI / 180)
static

Definition at line 22 of file DepthStream.hpp.

const unsigned long long FreenectDriver::DepthStream::ZERO_PLANE_DISTANCE_VAL = 120
static

Definition at line 30 of file DepthStream.hpp.

const double FreenectDriver::DepthStream::ZERO_PLANE_PIXEL_SIZE_VAL = 0.10520000010728836
static

Definition at line 31 of file DepthStream.hpp.


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


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