DensityLoadThread Class Reference

#include <densityloadthread.h>

List of all members.


Detailed Description

This class loads the density data for the class DensityBase.

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.
DensityBaseparent
 The widget which should get notifications.
unsigned int progress
 Used to transfer the progress to the parent dialog.


Constructor & Destructor Documentation

DensityLoadThread::DensityLoadThread std::vector< double > *  densityPoints,
QTextStream *  stream,
DensityBase densityDialog,
const unsigned int  numSkipValues,
const unsigned int  totalPoints
 

The default constructor.

Parameters:
[out] densityPoints : the resulting density values read from file.
[in] stream : the stream connected to an opened file.
[in] densityDialog : the parent DensityBase widget were messages are sent to.
[in] numSkipValues : the number of points to skip when reading from the stream.
[in] totalPoints : the total number of points to read.

Definition at line 45 of file densityloadthread.cpp.

DensityLoadThread::~DensityLoadThread  ) 
 

The default destructor.

Definition at line 66 of file densityloadthread.cpp.


Member Function Documentation

void DensityLoadThread::run  )  [virtual]
 

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.

void DensityLoadThread::stop  ) 
 

Requests the thread to stop.

Definition at line 125 of file densityloadthread.cpp.

bool DensityLoadThread::success  ) 
 

Returns whether the desired number of points was succesfully read.

Definition at line 132 of file densityloadthread.cpp.


Member Data Documentation

std::vector<double>* DensityLoadThread::data [private]
 

The pointer to the recipient for the data.

Definition at line 55 of file densityloadthread.h.

QTextStream* DensityLoadThread::textStream [private]
 

The pointer to the datastream.

Definition at line 56 of file densityloadthread.h.

unsigned int DensityLoadThread::numSkip [private]
 

The number of values to skip at each read.

Definition at line 57 of file densityloadthread.h.

unsigned int DensityLoadThread::numValues [private]
 

The total number of values to read.

Definition at line 58 of file densityloadthread.h.

bool DensityLoadThread::stopRequested [private]
 

Is set to true if the thread should be stopped.

Definition at line 59 of file densityloadthread.h.

DensityBase* DensityLoadThread::parent [private]
 

The widget which should get notifications.

Definition at line 60 of file densityloadthread.h.

unsigned int DensityLoadThread::progress [private]
 

Used to transfer the progress to the parent dialog.

Definition at line 61 of file densityloadthread.h.


Generated on Fri May 19 14:31:57 2006 for Brabosphere by  doxygen 1.4.6-NO