Fawkes API
Fawkes Development Version
depth_drawer.h
1
2
/***************************************************************************
3
* depth_drawer.h - Skeleton Visualization GUI: depth drawer
4
*
5
* Created: Tue Mar 29 17:03:59 2011 (on the way to Magdeburg for GO2011)
6
* Copyright 2006-2011 Tim Niemueller [www.niemueller.de]
7
*
8
****************************************************************************/
9
10
/* This program is free software; you can redistribute it and/or modify
11
* it under the terms of the GNU General Public License as published by
12
* the Free Software Foundation; either version 2 of the License, or
13
* (at your option) any later version.
14
*
15
* This program is distributed in the hope that it will be useful,
16
* but WITHOUT ANY WARRANTY; without even the implied warranty of
17
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18
* GNU Library General Public License for more details.
19
*
20
* Read the full text in the LICENSE.GPL file in the doc directory.
21
*/
22
23
#ifndef _PLUGINS_OPENNI_SKELGUI_DEPTH_DRAWER_H_
24
#define _PLUGINS_OPENNI_SKELGUI_DEPTH_DRAWER_H_
25
26
#include "texture_drawer.h"
27
28
#include <utils/misc/autofree.h>
29
30
namespace
firevision {
31
class
Camera;
32
}
33
34
class
SkelGuiDepthDrawer
:
public
SkelGuiTextureDrawer
35
{
36
public
:
37
SkelGuiDepthDrawer
(
firevision::Camera
*depth_cam,
38
firevision::Camera
*label_cam,
39
unsigned
int
max_depth);
40
~SkelGuiDepthDrawer
();
41
42
virtual
void
fill_texture
();
43
44
void
toggle_show_labels
();
45
46
private
:
47
firevision::Camera
*depth_cam_;
48
firevision::Camera
*label_cam_;
49
50
fawkes::MemAutoFree
rgb_buf_raii_;
51
unsigned
char
* rgb_buf_;
52
53
const
unsigned
int
max_depth_;
54
fawkes::MemAutoFree
histogram_raii_;
55
float
* histogram_;
56
57
bool
show_labels_;
58
};
59
60
#endif
SkelGuiDepthDrawer
Draw images from camera in texture.
Definition:
depth_drawer.h:35
SkelGuiDepthDrawer::SkelGuiDepthDrawer
SkelGuiDepthDrawer(firevision::Camera *depth_cam, firevision::Camera *label_cam, unsigned int max_depth)
Constructor.
Definition:
depth_drawer.cpp:53
SkelGuiDepthDrawer::fill_texture
virtual void fill_texture()
Fill texture.
Definition:
depth_drawer.cpp:84
SkelGuiDepthDrawer::toggle_show_labels
void toggle_show_labels()
Toggle label state.
Definition:
depth_drawer.cpp:77
SkelGuiDepthDrawer::~SkelGuiDepthDrawer
~SkelGuiDepthDrawer()
Destructor.
Definition:
depth_drawer.cpp:69
SkelGuiTextureDrawer
Draw images from camera in texture.
Definition:
texture_drawer.h:33
fawkes::MemAutoFree
Automatically free memory on destruction.
Definition:
autofree.h:30
firevision::Camera
Camera interface for image aquiring devices in FireVision.
Definition:
camera.h:33
src
plugins
openni
skelgui
depth_drawer.h
Generated by
1.9.4