MachineIntelligenceCore:Visualization
WindowMazeOfDigits.hpp
Go to the documentation of this file.
1 
23 #ifndef SRC_OPENGL_VISUALIZATION_WINDOWMAZEOFDIGITS_HPP_
24 #define SRC_OPENGL_VISUALIZATION_WINDOWMAZEOFDIGITS_HPP_
25 
27 
28 // Dependencies on core types.
29 #include <types/TensorTypes.hpp>
30 #include <types/Position2D.hpp>
31 using namespace mic::types;
32 
33 namespace mic {
34 namespace opengl {
35 namespace visualization {
36 
41 enum class MazeOfDigitsChannels : std::size_t
42 {
43  Digits = 0,
44  Goals = 1,
45  Walls = 2,
46  Agent = 3,
47  Count = 4
48 };
49 
54 class WindowMazeOfDigits: public Window {
55 public:
59  WindowMazeOfDigits(std::string name_ = "MazeOfDigits",
60  unsigned int position_x_ = 0, unsigned int position_y_ = 0,
61  unsigned int width_ = 512, unsigned int height_ = 512);
62 
66  virtual ~WindowMazeOfDigits();
67 
68 
72  void displayHandler(void);
73 
77  void setMazePointer(mic::types::TensorXfPtr displayed_maze_);
78 
82  void setPathPointer(std::shared_ptr<std::vector <mic::types::Position2D> > saccadic_path_);
83 
84 private:
85 
89  mic::types::TensorXfPtr displayed_maze;
90 
92  std::shared_ptr<std::vector <mic::types::Position2D> > saccadic_path;
93 
94 };
95 
96 } /* namespace visualization */
97 } /* namespace opengl */
98 } /* namespace mic */
99 
100 #endif /* SRC_OPENGL_VISUALIZATION_WINDOWMAZEOFDIGITS_HPP_ */
std::shared_ptr< std::vector< mic::types::Position2D > > saccadic_path
Saccadic path to be displayed - a sequence of consecutive agent positions.
Contains declaration of parent class of all OpenGL-based windows.
OpenGL-based window responsible for displaying maze of digits (0-9) in a heat map-like form...
Parent class of all OpenGL-based windows (abstract).
Definition: Window.hpp:51
MazeOfDigitsChannels
MazeOfDigits channels.