GA graph display for Qt.
More...
#include <qrgamonitor.h>
GA graph display for Qt.
The QRGAMonitorGraph provides the widget to display a graph with the evolution of the fitness function represent by double.
Constructor of the graph display.
- Parameters
-
parent | Parent of the widget. |
Destructor of the graph display.
virtual QSize sizeHint |
( |
| ) |
const |
|
virtual |
Returns a recommended size for the graph.
Clear the values and the graph.
void setVScale |
( |
const double |
v | ) |
|
Set the maximal value for the Y axis.
- Parameters
-
void setHScale |
( |
const size_t |
h | ) |
|
Set the maximal value for the X axis.
- Parameters
-
void AddValue |
( |
const double |
value | ) |
|
Add a new value.
- Parameters
-
virtual void paintEvent |
( |
QPaintEvent * |
| ) |
|
|
protectedvirtual |
virtual void resizeEvent |
( |
QResizeEvent * |
event | ) |
|
|
protectedvirtual |
virtual void mousePressEvent |
( |
QMouseEvent * |
e | ) |
|
|
protectedvirtual |
Mouse button press event method.
- Parameters
-
The maximal number of generations.
The maximal value of the fitness.
Number of values received actually.
The list of values received.
The values representing the graph have changed.
The QPixmap representing the graph.