Kiretu
Public Member Functions

Hud Class Reference

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

Hud::Hud ( )

Constructor of the Hud-class.

Hud::~Hud ( )

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:
printTrue: Label is printed. False: Label is not printed.
void Hud::printGLLabel ( )

Prints the labels 'Depth Map' and 'Video Output' using printGLTextPos(int x, int y, std::string text, bool printLarge).

void Hud::printGLScanning ( bool  print)

Prints a 'Scanning'-label in the middle of the depth-map-frame while scanning.

Parameters:
printTrue: 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:
printTrue: Label is printed. False: Label is not printed.
angleThe current Kinect's angle.
formatString with the current format of the video stream. Should be 'RGB', 'YUV-RGB' or 'IR'.
statesArray 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:
textThe text which should be printed.
printLargeFalse: 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:
xX-coordinate of the wanted text-position.
yY-coordinate of the wanted text-position.
textThe text which should be printed.
printLargeFalse: 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:
 All Data Structures Files Functions Variables Enumerations Enumerator
[Page Up]