Public Member Functions | Static Public Member Functions | Public Attributes | Private Attributes | List of all members
rs2::texture_buffer Class Reference

#include <rendering.h>

Public Member Functions

void draw_grid (float step)
 
void draw_motion_data (float x, float y, float z)
 
void draw_pose_data (const rs2_pose &pose, int id)
 
void draw_texture (const rect &s, const rect &t) const
 
GLuint get_gl_handle () const
 
rs2::frame get_last_frame (bool with_texture=false) const
 
void multiply_vector_by_matrix (GLfloat vec[], GLfloat mat[], GLfloat *result)
 
texture_bufferoperator= (const texture_buffer &other)
 
void print_text_in_3d (float x, float y, float z, const char *text, bool center_text, GLfloat model[], GLfloat proj[], float vec_norm)
 
void show (const rect &r, float alpha, const rect &normalized_zoom=rect{0, 0, 1, 1}) const
 
void show_preview (const rect &r, const rect &normalized_zoom=rect{0, 0, 1, 1})
 
 texture_buffer (const texture_buffer &other)
 
 texture_buffer ()
 
bool try_pick (int x, int y, float *result)
 
void upload (rs2::frame frame, rs2_format prefered_format=RS2_FORMAT_ANY)
 
void upload_image (int w, int h, void *data, int format=GL_RGBA)
 
float2 xyz_to_xy (float x, float y, float z, GLfloat model[], GLfloat proj[], float vec_norm)
 

Static Public Member Functions

static void draw_axes (float axis_size=1.f, float axisWidth=4.f)
 
static void draw_circle (float xx, float xy, float xz, float yx, float yy, float yz, float radius=1.1, float3 center={0.0, 0.0, 0.0}, float intensity=0.5f)
 

Public Attributes

std::shared_ptr< colorizercolorize
 
rect curr_preview_rect {}
 
std::shared_ptr< depth_huffman_decoderdepth_decode
 
int texture_id = 0
 
std::shared_ptr< yuy_decoderyuy2rgb
 
bool zoom_preview = false
 

Private Attributes

rs2::frame last [2]
 
rs2::frame_queue last_queue [2]
 
GLuint texture
 

Detailed Description

Definition at line 861 of file rendering.h.

Constructor & Destructor Documentation

rs2::texture_buffer::texture_buffer ( const texture_buffer other)
inline

Definition at line 874 of file rendering.h.

rs2::texture_buffer::texture_buffer ( )
inline

Definition at line 891 of file rendering.h.

Member Function Documentation

static void rs2::texture_buffer::draw_axes ( float  axis_size = 1.f,
float  axisWidth = 4.f 
)
inlinestatic

Definition at line 1148 of file rendering.h.

static void rs2::texture_buffer::draw_circle ( float  xx,
float  xy,
float  xz,
float  yx,
float  yy,
float  yz,
float  radius = 1.1,
float3  center = { 0.0, 0.0, 0.0 },
float  intensity = 0.5f 
)
inlinestatic

Definition at line 1206 of file rendering.h.

void rs2::texture_buffer::draw_grid ( float  step)
inline

Definition at line 1349 of file rendering.h.

void rs2::texture_buffer::draw_motion_data ( float  x,
float  y,
float  z 
)
inline

Definition at line 1264 of file rendering.h.

void rs2::texture_buffer::draw_pose_data ( const rs2_pose pose,
int  id 
)
inline

Definition at line 1368 of file rendering.h.

void rs2::texture_buffer::draw_texture ( const rect s,
const rect t 
) const
inline

Definition at line 1444 of file rendering.h.

GLuint rs2::texture_buffer::get_gl_handle ( ) const
inline

Definition at line 893 of file rendering.h.

rs2::frame rs2::texture_buffer::get_last_frame ( bool  with_texture = false) const
inline

Definition at line 885 of file rendering.h.

void rs2::texture_buffer::multiply_vector_by_matrix ( GLfloat  vec[],
GLfloat  mat[],
GLfloat result 
)
inline

Definition at line 1228 of file rendering.h.

texture_buffer& rs2::texture_buffer::operator= ( const texture_buffer other)
inline

Definition at line 879 of file rendering.h.

void rs2::texture_buffer::print_text_in_3d ( float  x,
float  y,
float  z,
const char *  text,
bool  center_text,
GLfloat  model[],
GLfloat  proj[],
float  vec_norm 
)
inline

Definition at line 1256 of file rendering.h.

void rs2::texture_buffer::show ( const rect r,
float  alpha,
const rect normalized_zoom = rect{0, 0, 1, 1} 
) const
inline

Definition at line 1456 of file rendering.h.

void rs2::texture_buffer::show_preview ( const rect r,
const rect normalized_zoom = rect{0, 0, 1, 1} 
)
inline

Definition at line 1476 of file rendering.h.

bool rs2::texture_buffer::try_pick ( int  x,
int  y,
float *  result 
)
inline

Definition at line 1410 of file rendering.h.

void rs2::texture_buffer::upload ( rs2::frame  frame,
rs2_format  prefered_format = RS2_FORMAT_ANY 
)
inline

Definition at line 919 of file rendering.h.

void rs2::texture_buffer::upload_image ( int  w,
int  h,
void data,
int  format = GL_RGBA 
)
inline

Definition at line 906 of file rendering.h.

float2 rs2::texture_buffer::xyz_to_xy ( float  x,
float  y,
float  z,
GLfloat  model[],
GLfloat  proj[],
float  vec_norm 
)
inline

Definition at line 1242 of file rendering.h.

Member Data Documentation

std::shared_ptr<colorizer> rs2::texture_buffer::colorize

Definition at line 867 of file rendering.h.

rect rs2::texture_buffer::curr_preview_rect {}

Definition at line 871 of file rendering.h.

std::shared_ptr<depth_huffman_decoder> rs2::texture_buffer::depth_decode

Definition at line 869 of file rendering.h.

rs2::frame rs2::texture_buffer::last[2]
mutableprivate

Definition at line 865 of file rendering.h.

rs2::frame_queue rs2::texture_buffer::last_queue[2]
private

Definition at line 864 of file rendering.h.

GLuint rs2::texture_buffer::texture
private

Definition at line 863 of file rendering.h.

int rs2::texture_buffer::texture_id = 0

Definition at line 872 of file rendering.h.

std::shared_ptr<yuy_decoder> rs2::texture_buffer::yuy2rgb

Definition at line 868 of file rendering.h.

bool rs2::texture_buffer::zoom_preview = false

Definition at line 870 of file rendering.h.


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


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