Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
oni::driver::Rs2Stream Class Reference

#include <Rs2Stream.h>

Inheritance diagram for oni::driver::Rs2Stream:
Inheritance graph
[legend]

Public Member Functions

virtual OniStatus convertDepthToColorCoordinates (StreamBase *colorStream, int depthX, int depthY, OniDepthPixel depthZ, int *pColorX, int *pColorY)
 
class Rs2DevicegetDevice ()
 
OniSensorType getOniType () const
 
virtual OniStatus getProperty (int propertyId, void *data, int *dataSize)
 
rs2_stream getRsType () const
 
int getSensorId () const
 
int getStreamId () const
 
const OniVideoMode & getVideoMode () const
 
virtual OniStatus invoke (int commandId, void *data, int dataSize)
 
virtual OniBool isCommandSupported (int commandId)
 
bool isEnabled () const
 
virtual OniBool isPropertySupported (int propertyId)
 
 Rs2Stream (OniSensorType sensorType)
 
virtual OniStatus setProperty (int propertyId, const void *data, int dataSize)
 
virtual OniStatus start ()
 
virtual void stop ()
 
virtual ~Rs2Stream ()
 

Protected Member Functions

Rs2StreamProfileInfogetCurrentProfile ()
 
bool getTable (void *dst, int *size, const std::vector< uint16_t > &table)
 
OniStatus initialize (class Rs2Device *device, rs2_sensor *sensor, int sensorId, int streamId, std::vector< Rs2StreamProfileInfo > *profiles)
 
bool isVideoModeSupported (OniVideoMode *reqMode)
 
void onPipelineStarted ()
 
void onStreamStarted ()
 
void operator= (const Rs2Stream &)
 
 Rs2Stream (const Rs2Stream &)
 
bool setTable (const void *src, int size, std::vector< uint16_t > &table)
 
void shutdown ()
 
void updateIntrinsics ()
 

Protected Attributes

std::vector< uint16_tm_d2s
 
float m_depthScale
 
class Rs2Devicem_device
 
bool m_enabled
 
rs2_extrinsics m_extrinsicsDepthToColor
 
float m_fovX
 
float m_fovY
 
rs2_intrinsics m_intrinsics
 
bool m_needUpdateExtrinsicsDepthToColor
 
OniSensorType m_oniType
 
std::vector< Rs2StreamProfileInfom_profiles
 
rs2_stream m_rsType
 
std::vector< uint16_tm_s2d
 
rs2_sensorm_sensor
 
int m_sensorId
 
int m_streamId
 
OniVideoMode m_videoMode
 

Friends

class Rs2Device
 

Detailed Description

Definition at line 21 of file Rs2Stream.h.

Constructor & Destructor Documentation

oni::driver::Rs2Stream::Rs2Stream ( OniSensorType  sensorType)

Definition at line 8 of file Rs2Stream.cpp.

oni::driver::Rs2Stream::~Rs2Stream ( )
virtual

Definition at line 24 of file Rs2Stream.cpp.

oni::driver::Rs2Stream::Rs2Stream ( const Rs2Stream )
protected

Member Function Documentation

OniStatus oni::driver::Rs2Stream::convertDepthToColorCoordinates ( StreamBase *  colorStream,
int  depthX,
int  depthY,
OniDepthPixel  depthZ,
int *  pColorX,
int *  pColorY 
)
virtual

Definition at line 134 of file Rs2Stream.cpp.

Rs2StreamProfileInfo * oni::driver::Rs2Stream::getCurrentProfile ( )
protected

Definition at line 216 of file Rs2Stream.cpp.

class Rs2Device* oni::driver::Rs2Stream::getDevice ( )
inline

Definition at line 42 of file Rs2Stream.h.

OniSensorType oni::driver::Rs2Stream::getOniType ( ) const
inline

Definition at line 44 of file Rs2Stream.h.

OniStatus oni::driver::Rs2Stream::getProperty ( int  propertyId,
void data,
int *  dataSize 
)
virtual

Definition at line 125 of file Rs2StreamProps.cpp.

rs2_stream oni::driver::Rs2Stream::getRsType ( ) const
inline

Definition at line 43 of file Rs2Stream.h.

int oni::driver::Rs2Stream::getSensorId ( ) const
inline

Definition at line 45 of file Rs2Stream.h.

int oni::driver::Rs2Stream::getStreamId ( ) const
inline

Definition at line 46 of file Rs2Stream.h.

bool oni::driver::Rs2Stream::getTable ( void dst,
int *  size,
const std::vector< uint16_t > &  table 
)
protected

Definition at line 262 of file Rs2Stream.cpp.

const OniVideoMode& oni::driver::Rs2Stream::getVideoMode ( ) const
inline

Definition at line 47 of file Rs2Stream.h.

OniStatus oni::driver::Rs2Stream::initialize ( class Rs2Device device,
rs2_sensor sensor,
int  sensorId,
int  streamId,
std::vector< Rs2StreamProfileInfo > *  profiles 
)
protected

Definition at line 31 of file Rs2Stream.cpp.

OniStatus oni::driver::Rs2Stream::invoke ( int  commandId,
void data,
int  dataSize 
)
virtual

Definition at line 109 of file Rs2Stream.cpp.

OniBool oni::driver::Rs2Stream::isCommandSupported ( int  commandId)
virtual

Definition at line 124 of file Rs2Stream.cpp.

bool oni::driver::Rs2Stream::isEnabled ( ) const
inline

Definition at line 48 of file Rs2Stream.h.

OniBool oni::driver::Rs2Stream::isPropertySupported ( int  propertyId)
virtual

Definition at line 394 of file Rs2StreamProps.cpp.

bool oni::driver::Rs2Stream::isVideoModeSupported ( OniVideoMode *  reqMode)
protected

Definition at line 239 of file Rs2Stream.cpp.

void oni::driver::Rs2Stream::onPipelineStarted ( )
protected

Definition at line 195 of file Rs2Stream.cpp.

void oni::driver::Rs2Stream::onStreamStarted ( )
protected

Definition at line 190 of file Rs2Stream.cpp.

void oni::driver::Rs2Stream::operator= ( const Rs2Stream )
protected
OniStatus oni::driver::Rs2Stream::setProperty ( int  propertyId,
const void data,
int  dataSize 
)
virtual

Definition at line 15 of file Rs2StreamProps.cpp.

bool oni::driver::Rs2Stream::setTable ( const void src,
int  size,
std::vector< uint16_t > &  table 
)
protected

Definition at line 277 of file Rs2Stream.cpp.

void oni::driver::Rs2Stream::shutdown ( )
protected

Definition at line 70 of file Rs2Stream.cpp.

OniStatus oni::driver::Rs2Stream::start ( )
virtual

Definition at line 87 of file Rs2Stream.cpp.

void oni::driver::Rs2Stream::stop ( )
virtual

Definition at line 99 of file Rs2Stream.cpp.

void oni::driver::Rs2Stream::updateIntrinsics ( )
protected

Definition at line 199 of file Rs2Stream.cpp.

Friends And Related Function Documentation

friend class Rs2Device
friend

Definition at line 23 of file Rs2Stream.h.

Member Data Documentation

std::vector<uint16_t> oni::driver::Rs2Stream::m_d2s
protected

Definition at line 89 of file Rs2Stream.h.

float oni::driver::Rs2Stream::m_depthScale
protected

Definition at line 84 of file Rs2Stream.h.

class Rs2Device* oni::driver::Rs2Stream::m_device
protected

Definition at line 73 of file Rs2Stream.h.

bool oni::driver::Rs2Stream::m_enabled
protected

Definition at line 77 of file Rs2Stream.h.

rs2_extrinsics oni::driver::Rs2Stream::m_extrinsicsDepthToColor
protected

Definition at line 82 of file Rs2Stream.h.

float oni::driver::Rs2Stream::m_fovX
protected

Definition at line 85 of file Rs2Stream.h.

float oni::driver::Rs2Stream::m_fovY
protected

Definition at line 86 of file Rs2Stream.h.

rs2_intrinsics oni::driver::Rs2Stream::m_intrinsics
protected

Definition at line 81 of file Rs2Stream.h.

bool oni::driver::Rs2Stream::m_needUpdateExtrinsicsDepthToColor
protected

Definition at line 83 of file Rs2Stream.h.

OniSensorType oni::driver::Rs2Stream::m_oniType
protected

Definition at line 71 of file Rs2Stream.h.

std::vector<Rs2StreamProfileInfo> oni::driver::Rs2Stream::m_profiles
protected

Definition at line 79 of file Rs2Stream.h.

rs2_stream oni::driver::Rs2Stream::m_rsType
protected

Definition at line 70 of file Rs2Stream.h.

std::vector<uint16_t> oni::driver::Rs2Stream::m_s2d
protected

Definition at line 88 of file Rs2Stream.h.

rs2_sensor* oni::driver::Rs2Stream::m_sensor
protected

Definition at line 74 of file Rs2Stream.h.

int oni::driver::Rs2Stream::m_sensorId
protected

Definition at line 75 of file Rs2Stream.h.

int oni::driver::Rs2Stream::m_streamId
protected

Definition at line 76 of file Rs2Stream.h.

OniVideoMode oni::driver::Rs2Stream::m_videoMode
protected

Definition at line 80 of file Rs2Stream.h.


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


librealsense2
Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:50:40