C++-class which represents a HUD. The HUD (Head Up Display) is used for displaying various information to the application using OpenGL.
More...
#include <Hud.h>
Public Member Functions |
| Hud () |
| Constructor of the Hud-class.
|
| ~Hud () |
| Deconstructor of the Hud-class.
|
void | printGLText (std::string text, bool printLarge) |
| Prints text using OpenGL's glutBitmapCharacter(void *font, int character) without specifying a certain position.
|
void | printGLTextPos (int x, int y, std::string text, bool printLarge) |
| Calls printGLText(std::string text, bool printLarge) after setting a specified position using OpenGL's glRasterPos2i(GLint x, GLint y).
|
void | printGLLabel () |
| Prints the labels 'Depth Map' and 'Video Output' using printGLTextPos(int x, int y, std::string text, bool printLarge).
|
void | printGLScanning (bool print) |
| Prints a 'Scanning'-label in the middle of the depth-map-frame while scanning.
|
void | printGLHelp (bool print) |
| Prints the help-box in the lower left corner of the window.
|
void | printGLState (bool print, int angle, std::string format, bool states[5]) |
| Prints the state-box in the lower right corner of the window.
|
Detailed Description
C++-class which represents a HUD. The HUD (Head Up Display) is used for displaying various information to the application using OpenGL.
- Author:
- Daniel Wunderlich (d.wunderlich@stud.uni-heidelberg.de)
- Version:
- 0.6
- Date:
- 2011-01-16
Constructor & Destructor Documentation
Constructor of the Hud-class.
Deconstructor of the Hud-class.
Member Function Documentation
void Hud::printGLHelp |
( |
bool |
print | ) |
|
Prints the help-box in the lower left corner of the window.
- Parameters:
-
print | True: Label is printed. False: Label is not printed. |
void Hud::printGLLabel |
( |
| ) |
|
void Hud::printGLScanning |
( |
bool |
print | ) |
|
Prints a 'Scanning'-label in the middle of the depth-map-frame while scanning.
- Parameters:
-
print | True: Label is printed. False: Label is not printed. |
void Hud::printGLState |
( |
bool |
print, |
|
|
int |
angle, |
|
|
std::string |
format, |
|
|
bool |
states[5] |
|
) |
| |
Prints the state-box in the lower right corner of the window.
- Parameters:
-
print | True: Label is printed. False: Label is not printed. |
angle | The current Kinect's angle. |
format | String with the current format of the video stream. Should be 'RGB', 'YUV-RGB' or 'IR'. |
states | Array with 5 element indicating the steps of the pointcloud reconstruction. The meaning of the steps are explained at KinectCloud::getReconstructionSteps(). |
void Hud::printGLText |
( |
std::string |
text, |
|
|
bool |
printLarge |
|
) |
| |
Prints text using OpenGL's glutBitmapCharacter(void *font, int character) without specifying a certain position.
- Parameters:
-
text | The text which should be printed. |
printLarge | False: Text is printed with OpenGL's GLUT_BITMAP_HELVETICA_12. True: Text is printed with GLUT_BITMAP_HELVETICA_18. |
void Hud::printGLTextPos |
( |
int |
x, |
|
|
int |
y, |
|
|
std::string |
text, |
|
|
bool |
printLarge |
|
) |
| |
Calls printGLText(std::string text, bool printLarge) after setting a specified position using OpenGL's glRasterPos2i(GLint x, GLint y).
- Parameters:
-
x | X-coordinate of the wanted text-position. |
y | Y-coordinate of the wanted text-position. |
text | The text which should be printed. |
printLarge | False: Text is printed with OpenGL's GLUT_BITMAP_HELVETICA_12. True: Text is printed with GLUT_BITMAP_HELVETICA_18. |
The documentation for this class was generated from the following files:
- /home/wu/Desktop/kiretu-0.8/Hud.h
- /home/wu/Desktop/kiretu-0.8/Hud.cpp