TestIndividualGUI Class Reference

A gui visualizing the camera and the projection of objects on the retina. More...

Inheritance diagram for TestIndividualGUI:

Public Member Functions

 TestIndividualGUI (TestIndividual *tb, QWidget *parent=NULL, Qt::WindowFlags flags=0)
 An helper class to display an image.
 

Detailed Description

A gui visualizing the camera and the projection of objects on the retina.

This keeps the current image and adds marks on it. If you set a new image all previous marks are lost Constructor

Parameters
mapWidththe width of the neural map
mapHeightthe height of the neural map
parentthe parent of this widget Destructor Sets the new image to display

This resets the old image and also changes the dimension of the widget to match that of the image

Parameters
imagethe new image Adds a mark on the image at the given position

x and y are normalized (i.e. within 0 and 1) coordinates. They are converted to the actual image coordinates by this function

Parameters
xthe x coordinate of the mark (must be between 0 and 1)
ythe y coordinate of the mark (must be between 0 and 1)
markCenterthe color of the central part of the mark
markSurroundingthe color of the surrounding part of the mark The image with marks The helper widget displaying the image This widget allows the user to select a seed and test individual agents

Definition at line 301 of file evorobotviewer.h.

Constructor & Destructor Documentation

TestIndividualGUI ( TestIndividual tb,
QWidget *  parent = NULL,
Qt::WindowFlags  flags = 0 
)

An helper class to display an image.

This takes a pointer to the image to show and also resizes itself to match the image dimension

Definition at line 590 of file evorobotviewer.cpp.


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