MachineIntelligenceCore:Visualization
mic::opengl::visualization::WindowProbability Class Reference

#include <WindowProbability.hpp>

Inheritance diagram for mic::opengl::visualization::WindowProbability:
Collaboration diagram for mic::opengl::visualization::WindowProbability:

Public Member Functions

 WindowProbability (std::string name_="WindowProbability", unsigned int position_x_=0, unsigned int position_y_=0, unsigned int width_=512, unsigned int height_=512)
 
virtual ~WindowProbability ()
 
void displayHandler (void)
 
void setMatrixPointer1 (mic::types::MatrixXfPtr displayed_matrix_)
 
void setMatrixPointer2 (mic::types::MatrixXfPtr displayed_matrix_)
 
- Public Member Functions inherited from mic::opengl::visualization::Window
 Window (std::string name_="OpenGlWindow", unsigned int position_x_=0, unsigned int position_y_=0, unsigned int width_=512, unsigned int height_=512)
 
virtual ~Window ()
 
unsigned int getId () const
 
std::string getName () const
 
virtual void mouseHandler (int button, int state, int x, int y)
 
virtual void reshapeHandler (int width_, int height_)
 
- Public Member Functions inherited from mic::opengl::visualization::DrawingUtils
virtual ~DrawingUtils ()
 
void draw_frame (float x1, float y1, float x2, float y2, float r, float g, float b, float a)
 
void draw_grid (float r, float g, float b, float a, float cells_h, float cells_v, float line_width_=1.0)
 
void draw_mark (mark m, float x, float y, float size, float line_width, float r, float g, float b, float a)
 
void draw_circle (float x, float y, float size, float line_width, float r, float g, float b, float a)
 
void draw_plus (float x, float y, float size, float line_width, float r, float g, float b, float a)
 
void draw_cross (float x, float y, float size, float line_width, float r, float g, float b, float a)
 
void draw_square (float x, float y, float size, float line_width, float r, float g, float b, float a)
 
void draw_square_in_place (float size, float line_width, float r, float g, float b, float a)
 
void draw_filled_square (float x, float y, float size, float r, float g, float b, float a)
 
void draw_rectangle (float x, float y, float h, float w, float r, float g, float b, float a)
 
void draw_filled_rectangle (float x, float y, float h, float w, float r, float g, float b, float a)
 
void draw_texture_in_place (float size)
 
void draw_filled_square_in_place (float radius, float line_width, float r, float g, float b, float a)
 
void draw_filled_rectangle_in_place (float radius_x, float radius_y, float line_width, float r, float g, float b, float a)
 
void draw_cuboid (float radius, float line_width, float height, float r, float g, float b, float a)
 
void draw_text (float x, float y, char *string, float r, float g, float b, float a, void *font)
 
void draw_text_3i (float x, float y, float z, char *string, float r, float g, float b, float a, void *font)
 
void draw_cursor (float x, float y, float r, float g, float b, float a)
 
void draw_text_3d (GLfloat x, GLfloat y, char *text)
 
float to_radians (float degrees)
 

Private Attributes

mic::types::MatrixXfPtr displayed_matrix1
 
mic::types::MatrixXfPtr displayed_matrix2
 

Additional Inherited Members

- Protected Member Functions inherited from mic::opengl::visualization::Window
void keyhandlerFullscreen (void)
 
- Protected Attributes inherited from mic::opengl::visualization::Window
std::string name
 
unsigned int position_x
 
unsigned int position_y
 
unsigned int width
 
unsigned int height
 
unsigned int previous_width
 
unsigned int previous_height
 
unsigned int id
 
bool fullscreen_mode
 

Detailed Description

Author
tkornuta

Definition at line 42 of file WindowProbability.hpp.

Constructor & Destructor Documentation

mic::opengl::visualization::WindowProbability::WindowProbability ( std::string  name_ = "WindowProbability",
unsigned int  position_x_ = 0,
unsigned int  position_y_ = 0,
unsigned int  width_ = 512,
unsigned int  height_ = 512 
)

Constructor. NULLs the pointer to probability data.

Definition at line 33 of file WindowProbability.cpp.

References displayed_matrix1, and displayed_matrix2.

mic::opengl::visualization::WindowProbability::~WindowProbability ( )
virtual

Destructor.

Definition at line 44 of file WindowProbability.cpp.

Member Function Documentation

void mic::opengl::visualization::WindowProbability::displayHandler ( void  )
virtual

Refreshes the content of the window.

Implements mic::opengl::visualization::Window.

Definition at line 49 of file WindowProbability.cpp.

References displayed_matrix1, displayed_matrix2, mic::opengl::visualization::DrawingUtils::draw_rectangle(), and mic::opengl::visualization::DrawingUtils::draw_text().

Here is the call graph for this function:

void mic::opengl::visualization::WindowProbability::setMatrixPointer1 ( mic::types::MatrixXfPtr  displayed_matrix_)

Sets pointer to first displayed matrix with probability distribution.

Parameters
displayed_matrix_

Definition at line 138 of file WindowProbability.cpp.

References displayed_matrix1.

void mic::opengl::visualization::WindowProbability::setMatrixPointer2 ( mic::types::MatrixXfPtr  displayed_matrix_)

Sets pointer to second displayed matrix with probability distribution.

Parameters
displayed_matrix_

Definition at line 146 of file WindowProbability.cpp.

References displayed_matrix2.

Member Data Documentation

mic::types::MatrixXfPtr mic::opengl::visualization::WindowProbability::displayed_matrix1
private

Pointer to first displayed matrix with probabilities.

Definition at line 79 of file WindowProbability.hpp.

Referenced by displayHandler(), setMatrixPointer1(), and WindowProbability().

mic::types::MatrixXfPtr mic::opengl::visualization::WindowProbability::displayed_matrix2
private

Pointer to second displayed matrix with probabilities.

Definition at line 84 of file WindowProbability.hpp.

Referenced by displayHandler(), setMatrixPointer2(), and WindowProbability().


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