AERA
|
Public Member Functions | |
VideoScreen (int width, int height) | |
bool | load (const std::vector< r_code::Code * > *objects) |
void | move_eye (int delta_x, int delta_y, int &actual_delta_x, int &actual_delta_y) |
r_code::Code * | get_fovea_pattern () const |
Definition at line 61 of file video_screen.h.
video_screen::VideoScreen::VideoScreen | ( | int | width, |
int | height | ||
) |
Create a VideoScreen of the given dimensions.
width | The screen width. |
height | The screen height. |
Definition at line 65 of file video_screen.cpp.
Code * video_screen::VideoScreen::get_fovea_pattern | ( | ) | const |
Get the fovea pattern at fovea_x_ and fovea_y_.
Definition at line 620 of file video_screen.cpp.
bool video_screen::VideoScreen::load | ( | const std::vector< r_code::Code * > * | objects | ) |
Get the fovea_patterns_ from objects and initialize the screen.
objects | The objects array from load(), used to call find_object. |
Definition at line 75 of file video_screen.cpp.
void video_screen::VideoScreen::move_eye | ( | int | delta_x, |
int | delta_y, | ||
int & | actual_delta_x, | ||
int & | actual_delta_y | ||
) |
Move the eye (and the fovea with it) by the given delta X and Y. Set the output values to that actual delta moved, which can be less if hitting the edge screen, which allows for the full fovea to still be within the screen boundaries.
delta_x | The requested move delta X. |
delta_y | The requested move delta Y. |
actual_delta_x | Set this to the actual delta X moved. |
actual_delta_y | Set this to the actual delta Y moved. |
Definition at line 608 of file video_screen.cpp.