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. More... | |
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
-
mapWidth the width of the neural map mapHeight the height of the neural map parent the 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
-
image the 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
-
x the x coordinate of the mark (must be between 0 and 1) y the y coordinate of the mark (must be between 0 and 1) markCenter the color of the central part of the mark markSurrounding the 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 206 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 504 of file evorobotviewer.cpp.
The documentation for this class was generated from the following files:
- experiments/evorobot/include/evorobotviewer.h
- experiments/evorobot/src/evorobotviewer.cpp