#include <densityloadthread.h>
Definition at line 39 of file densityloadthread.h.
Public Member Functions | |
DensityLoadThread (std::vector< double > *densityPoints, QTextStream *stream, DensityBase *densityDialog, const unsigned int numSkipValues, const unsigned int totalPoints) | |
The default constructor. | |
~DensityLoadThread () | |
The default destructor. | |
virtual void | run () |
Does the actual reading after the proper parameters have been set. | |
void | stop () |
Requests the thread to stop. | |
bool | success () |
Returns whether the desired number of points was succesfully read. | |
Private Attributes | |
std::vector< double > * | data |
The pointer to the recipient for the data. | |
QTextStream * | textStream |
The pointer to the datastream. | |
unsigned int | numSkip |
The number of values to skip at each read. | |
unsigned int | numValues |
The total number of values to read. | |
bool | stopRequested |
Is set to true if the thread should be stopped. | |
DensityBase * | parent |
The widget which should get notifications. | |
unsigned int | progress |
Used to transfer the progress to the parent dialog. |
|
The default constructor.
Definition at line 45 of file densityloadthread.cpp. |
|
The default destructor.
Definition at line 66 of file densityloadthread.cpp. |
|
Does the actual reading after the proper parameters have been set. It is run with a call to start(). Definition at line 73 of file densityloadthread.cpp. |
|
Requests the thread to stop.
Definition at line 125 of file densityloadthread.cpp. |
|
Returns whether the desired number of points was succesfully read.
Definition at line 132 of file densityloadthread.cpp. |
|
The pointer to the recipient for the data.
Definition at line 55 of file densityloadthread.h. |
|
The pointer to the datastream.
Definition at line 56 of file densityloadthread.h. |
|
The number of values to skip at each read.
Definition at line 57 of file densityloadthread.h. |
|
The total number of values to read.
Definition at line 58 of file densityloadthread.h. |
|
Is set to true if the thread should be stopped.
Definition at line 59 of file densityloadthread.h. |
|
The widget which should get notifications.
Definition at line 60 of file densityloadthread.h. |
|
Used to transfer the progress to the parent dialog.
Definition at line 61 of file densityloadthread.h. |