AERA
Public Member Functions | List of all members
video_screen::VideoScreen Class Reference

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::Codeget_fovea_pattern () const
 

Detailed Description

Definition at line 61 of file video_screen.h.

Constructor & Destructor Documentation

◆ VideoScreen()

video_screen::VideoScreen::VideoScreen ( int  width,
int  height 
)

Create a VideoScreen of the given dimensions.

Parameters
widthThe screen width.
heightThe screen height.

Definition at line 65 of file video_screen.cpp.

Member Function Documentation

◆ get_fovea_pattern()

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.

◆ load()

bool video_screen::VideoScreen::load ( const std::vector< r_code::Code * > *  objects)

Get the fovea_patterns_ from objects and initialize the screen.

Parameters
objectsThe objects array from load(), used to call find_object.
Returns
True for success, false if can't initialize.

Definition at line 75 of file video_screen.cpp.

◆ move_eye()

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.

Parameters
delta_xThe requested move delta X.
delta_yThe requested move delta Y.
actual_delta_xSet this to the actual delta X moved.
actual_delta_ySet this to the actual delta Y moved.

Definition at line 608 of file video_screen.cpp.


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