Fawkes API
Fawkes Development Version
|
Draw images from camera in texture. More...
#include "image_drawer.h"
Public Member Functions | |
SkelGuiDepthDrawer (firevision::Camera *depth_cam, firevision::Camera *label_cam, unsigned int max_depth) | |
Constructor. More... | |
~SkelGuiDepthDrawer () | |
Destructor. More... | |
virtual void | fill_texture () |
Fill texture. More... | |
void | toggle_show_labels () |
Toggle label state. More... | |
![]() | |
SkelGuiTextureDrawer (unsigned int width, unsigned int height) | |
Constructor. More... | |
virtual | ~SkelGuiTextureDrawer () |
Destructor. More... | |
void | draw () |
Draw texture to screen. More... | |
Additional Inherited Members | |
![]() | |
void | copy_rgb_to_texture (const unsigned char *rgb_buf) |
Copy an RGB buffer to texture. More... | |
![]() | |
unsigned char * | __texture |
Texture buffer. More... | |
const unsigned int | __width |
Width of visible area from texture. More... | |
const unsigned int | __height |
Height of visible area from texture. More... | |
const unsigned int | __texture_width |
Real texture width. More... | |
const unsigned int | __texture_height |
Real texture height. More... | |
Draw images from camera in texture.
Uses texture mapping to show an image acquired from a camera in the background.
Definition at line 32 of file depth_drawer.h.
SkelGuiDepthDrawer::SkelGuiDepthDrawer | ( | firevision::Camera * | depth_cam, |
firevision::Camera * | label_cam, | ||
unsigned int | max_depth | ||
) |
Constructor.
depth_cam | camera to capture depth image |
label_cam | label to capture label frame |
max_depth | maximum depth value to expect |
Definition at line 51 of file depth_drawer.cpp.
References SkelGuiTextureDrawer::__height, and SkelGuiTextureDrawer::__width.
SkelGuiDepthDrawer::~SkelGuiDepthDrawer | ( | ) |
Destructor.
Definition at line 65 of file depth_drawer.cpp.
|
virtual |
Fill texture.
Implements SkelGuiTextureDrawer.
Definition at line 82 of file depth_drawer.cpp.
References SkelGuiTextureDrawer::__height, SkelGuiTextureDrawer::__width, firevision::Camera::buffer(), firevision::Camera::capture(), SkelGuiTextureDrawer::copy_rgb_to_texture(), firevision::Camera::dispose_buffer(), and fawkes::Exception::print_trace().
void SkelGuiDepthDrawer::toggle_show_labels | ( | ) |
Toggle label state.
Turns on or off the label coloring of the depth map.
Definition at line 75 of file depth_drawer.cpp.