MachineIntelligenceCore:Visualization
WindowMatrix2D.hpp
Go to the documentation of this file.
1 
23 #ifndef SRC_VISUALIZATION_OPENGL_WINDOWMATRIX2D_HPP_
24 #define SRC_VISUALIZATION_OPENGL_WINDOWMATRIX2D_HPP_
25 
27 
28 // Dependencies on core types.
29 #include <types/MatrixTypes.hpp>
30 using namespace mic::types;
31 
32 namespace mic {
33 namespace opengl {
34 namespace visualization {
35 
40 class WindowMatrix2D: public Window {
41 public:
45  WindowMatrix2D(std::string name_ = "Matrix2D",
46  unsigned int position_x_ = 0, unsigned int position_y_ = 0,
47  unsigned int width_ = 512, unsigned int height_ = 512);
48 
52  virtual ~WindowMatrix2D();
53 
54 
58  void displayHandler(void);
59 
64  void setMatrixSynchronized(mic::types::MatrixXf & displayed_matrix_);
65 
70  void setMatrixUnsynchronized(mic::types::MatrixXf & displayed_matrix_);
71 
72 
77  void setMatrixPointerSynchronized(mic::types::MatrixXfPtr displayed_matrix_ptr_);
78 
83  void setMatrixPointerUnsynchronized(mic::types::MatrixXfPtr displayed_matrix_ptr_);
84 
85 private:
86 
90  mic::types::MatrixXfPtr displayed_matrix_ptr;
91 };
92 
93 } /* namespace visualization */
94 } /* namespace opengl */
95 } /* namespace mic */
96 
97 #endif /* SRC_VISUALIZATION_OPENGL_WINDOWMATRIX2D_HPP_ */
OpenGL-based window responsible for displaying 2D matrices.
Contains declaration of parent class of all OpenGL-based windows.
Parent class of all OpenGL-based windows (abstract).
Definition: Window.hpp:51