Public Member Functions | |
EvoDataViewer (int nchunks, int chunksize, int style=0, QWidget *parent=0, Qt::WindowFlags flags=0) | |
EvodaViewer constructor. More... | |
void | listVisibleChunks () |
Creates a list of the visible chunks. More... | |
void | reset () |
Cleans the screen and resets chunk indexes in order to display new data. More... | |
void | setChunkColor (int ch, QColor color) |
void | setChunkLabel (int ch, const QString &label) |
set the chunk label More... | |
void | setChunkProperties (int ch, double rangeMin, double rangeMax, const QString &label, QColor color, bool visible) |
Set all the chunk properties in one step. More... | |
void | setChunkRange (int ch, double mn, double mx) |
set the range of the incoming data More... | |
void | setChunkValue (int ch, double value) |
set chunk value by chunck id More... | |
bool | setChunkValue (const QString &name, double value) |
set chunk value by chunk label More... | |
void | setCurrentStep (int step) |
it stores the current step for each value. More... | |
void | setStyle (int style) |
set the drawing style 0: filled lines, 1: simple line More... | |
int | visibleChunks () |
Public Attributes | |
bool | nviewChange |
Protected Member Functions | |
void | mousePressEvent (QMouseEvent *evt) |
void | paintEvent (QPaintEvent *evt) |
void | resizeEvent (QResizeEvent *evt) |
Detailed Description
Definition at line 132 of file evodataviewer.h.
Constructor & Destructor Documentation
EvoDataViewer | ( | int | nchunks, |
int | chunksize, | ||
int | style = 0 , |
||
QWidget * | parent = 0 , |
||
Qt::WindowFlags | flags = 0 |
||
) |
EvodaViewer constructor.
Definition at line 41 of file evodataviewer.cpp.
References EvoDataViewer::listVisibleChunks().
Member Function Documentation
void listVisibleChunks | ( | ) |
Creates a list of the visible chunks.
Definition at line 351 of file evodataviewer.cpp.
Referenced by EvoDataViewer::EvoDataViewer(), and EvoDataViewer::reset().
void reset | ( | ) |
Cleans the screen and resets chunk indexes in order to display new data.
Definition at line 381 of file evodataviewer.cpp.
References EvoDataViewer::listVisibleChunks().
void setChunkLabel | ( | int | ch, |
const QString & | label | ||
) |
set the chunk label
Definition at line 232 of file evodataviewer.cpp.
void setChunkProperties | ( | int | ch, |
double | rangeMin, | ||
double | rangeMax, | ||
const QString & | label, | ||
QColor | color, | ||
bool | visible | ||
) |
Set all the chunk properties in one step.
Definition at line 372 of file evodataviewer.cpp.
void setChunkRange | ( | int | ch, |
double | mn, | ||
double | mx | ||
) |
set the range of the incoming data
Definition at line 263 of file evodataviewer.cpp.
void setChunkValue | ( | int | ch, |
double | value | ||
) |
set chunk value by chunck id
Definition at line 238 of file evodataviewer.cpp.
Referenced by EvoDataViewer::setChunkValue().
bool setChunkValue | ( | const QString & | name, |
double | value | ||
) |
set chunk value by chunk label
Definition at line 247 of file evodataviewer.cpp.
References EvoDataViewer::setChunkValue().
void setCurrentStep | ( | int | step | ) |
it stores the current step for each value.
It is useful for retriving later the value and the step of a single point by clicking on the graph
Definition at line 317 of file evodataviewer.cpp.
void setStyle | ( | int | style | ) |
set the drawing style 0: filled lines, 1: simple line
Definition at line 323 of file evodataviewer.cpp.
The documentation for this class was generated from the following files:
- experiments/evorobot/include/evodataviewer.h
- experiments/evorobot/src/evodataviewer.cpp