This class handles the 1D animated plots of 2D data using Qwt. More...
#include <DGVAnimatedScan.h>
Public Slots | |
| void | setTimerInterval (double interval) |
| void | saveFrame (QString filename) |
Public Member Functions | |
| DGVAnimatedScan (QWidget *parent=0) | |
| DGVAnimatedScan (Array< imageType, 2 > &data, QString scanName, QWidget *parent=0) | |
| virtual | ~DGVAnimatedScan () |
| QString | strippedName () |
| Returns the stripped (path removed) name of the scan. | |
| QString | strippedNamePrefix () |
| Returns the stripped (path removed) name of the scan with "Scan" prefix. | |
Protected Member Functions | |
| virtual void | timerEvent (QTimerEvent *e) |
Private Member Functions | |
| void | alignScales () |
| void | setupCounter () |
| void | newValues () |
Private Attributes | |
| int | d_interval |
| int | d_timerId |
| int | plotRow |
| int | frameNo |
| QString | name |
| Array< imageType, 1 > | xValues |
| Array< imageType, 1 > | yValues |
| Array< imageType, 2 > * | scanData |
| Data to be scanned. | |
This class handles the 1D animated plots of 2D data using Qwt.
This allows a 1D "scan" of 2D data where the interval of the frames can be adjusted.
Definition at line 36 of file DGVAnimatedScan.h.
| DGVAnimatedScan::DGVAnimatedScan | ( | QWidget * | parent = 0 |
) |
Disable polygon clipping
We don't need the cache here
Set background
Assign a title
Insert new curves
Set curve styles
Attach (don't copy) data. Both curves use the same x array.
Axis
Definition at line 32 of file DGVAnimatedScan.cpp.
| DGVAnimatedScan::DGVAnimatedScan | ( | Array< imageType, 2 > & | data, | |
| QString | scanName, | |||
| QWidget * | parent = 0 | |||
| ) |
Disable polygon clipping
We don't need the cache here
Set background
Assign a title
Insert new curves
Set curve styles
Attach (don't copy) data. Both curves use the same x array.
Axis
Definition at line 105 of file DGVAnimatedScan.cpp.
| DGVAnimatedScan::~DGVAnimatedScan | ( | ) | [virtual] |
Definition at line 180 of file DGVAnimatedScan.cpp.
| void DGVAnimatedScan::alignScales | ( | ) | [private] |
The code below shows how to align the scales to the canvas frame, but is also a good example demonstrating why the spreaded API needs polishing.
Definition at line 235 of file DGVAnimatedScan.cpp.
| void DGVAnimatedScan::newValues | ( | ) | [private] |
Definition at line 283 of file DGVAnimatedScan.cpp.
| void DGVAnimatedScan::saveFrame | ( | QString | filename | ) | [slot] |
Definition at line 208 of file DGVAnimatedScan.cpp.
| void DGVAnimatedScan::setTimerInterval | ( | double | interval | ) | [slot] |
Definition at line 195 of file DGVAnimatedScan.cpp.
| void DGVAnimatedScan::setupCounter | ( | ) | [private] |
| QString DGVAnimatedScan::strippedName | ( | ) |
Returns the stripped (path removed) name of the scan.
Definition at line 185 of file DGVAnimatedScan.cpp.
| QString DGVAnimatedScan::strippedNamePrefix | ( | ) |
Returns the stripped (path removed) name of the scan with "Scan" prefix.
Definition at line 190 of file DGVAnimatedScan.cpp.
| void DGVAnimatedScan::timerEvent | ( | QTimerEvent * | e | ) | [protected, virtual] |
Definition at line 218 of file DGVAnimatedScan.cpp.
int DGVAnimatedScan::d_interval [private] |
Definition at line 64 of file DGVAnimatedScan.h.
int DGVAnimatedScan::d_timerId [private] |
Definition at line 65 of file DGVAnimatedScan.h.
int DGVAnimatedScan::frameNo [private] |
Definition at line 68 of file DGVAnimatedScan.h.
QString DGVAnimatedScan::name [private] |
Definition at line 69 of file DGVAnimatedScan.h.
int DGVAnimatedScan::plotRow [private] |
Definition at line 67 of file DGVAnimatedScan.h.
Array<imageType,2>* DGVAnimatedScan::scanData [private] |
Data to be scanned.
Definition at line 74 of file DGVAnimatedScan.h.
Array<imageType,1> DGVAnimatedScan::xValues [private] |
Definition at line 72 of file DGVAnimatedScan.h.
Array<imageType,1> DGVAnimatedScan::yValues [private] |
Definition at line 73 of file DGVAnimatedScan.h.
1.7.1