casa
$Rev:20696$
|
Subclass of PlotMSThread for loading axes in a PlotMSCache. More...
#include <PlotMSCacheThread.qo.h>
Public Member Functions | |
PlotMSCacheThread (PlotMSPlot *plot, PlotMSCacheBase *cache, const vector< PMS::Axis > &axes, const vector< PMS::DataColumn > &data2, const String &msname, const PlotMSSelection &selection, const PlotMSAveraging &averaging, const PlotMSTransformations &transformations, bool setupPlot=false, PMSPTMethod postThreadMethod=NULL, PMSPTObject postThreadObject=NULL) | |
LOADING constructor which takes the PlotMSPlot, the PlotMSData, the axes and data columns, the averaging, a flag for whether to call setupPlot after the loading, and optional post-thread method parameters. | |
PlotMSCacheThread (PlotMSPlot *plot, const vector< PMS::Axis > &axes, PMSPTMethod postThreadMethod=NULL, PMSPTObject postThreadObject=NULL) | |
RELEASING constructor which takes the PlotMSPlot, the axes, and optional post-thread method parameters. | |
~PlotMSCacheThread () | |
Destructor. | |
void | startOperation () |
Implements PlotMSThread::startOperation(). | |
Protected Slots | |
void | background () |
Implements PlotMSThread::background(). | |
void | pause () |
Implements PlotMSThread::pause(). | |
void | resume () |
Implements PlotMSThread::resume(). | |
void | cancel () |
Implements PlotMSThread::cancel(). | |
Protected Member Functions | |
bool | wasCanceled () const |
Implements PlotMSThread::wasCanceled(). | |
void | setProgress (unsigned int progress) |
Allows the cache to set the progress. | |
void | setStatus (const String &status) |
Allows the cache to set the status. | |
void | setProgressAndStatus (unsigned int progress, const String &status) |
Allows the cache to set the progress and the status. | |
Private Slots | |
void | threadFinished () |
Slot for when the QThread finishes. | |
Private Attributes | |
PlotMSPlot * | itsPlot_ |
Plot. | |
PlotMSCacheBase * | itsCache_ |
Data. | |
bool | itsLoad_ |
Load (true) or release (false) axes. | |
vector< PMS::Axis > | itsAxes_ |
Axes. | |
vector< PMS::DataColumn > | itsAxesData_ |
Axes data columns. | |
String | itsMSName_ |
MS selection/averaging info. | |
PlotMSSelection | itsSelection_ |
PlotMSAveraging | itsAveraging_ |
PlotMSTransformations | itsTransformations_ |
bool | itsSetupPlot_ |
Whether to set up the cache afterwards. | |
unsigned int | itsLastProgress_ |
Last set progress. | |
String | itsLastStatus_ |
Last set status. | |
bool | wasCanceled_ |
Flag for whether thread was canceled or not. | |
String | itsCacheError_ |
Error message, if there was one (otherwise empty). | |
Friends | |
class | PlotMSCacheBase |
class | MSCache |
class | CalCache |
class | PlotMSCacheThreadHelper |
Subclass of PlotMSThread for loading axes in a PlotMSCache.
Definition at line 49 of file PlotMSCacheThread.qo.h.
casa::PlotMSCacheThread::PlotMSCacheThread | ( | PlotMSPlot * | plot, |
PlotMSCacheBase * | cache, | ||
const vector< PMS::Axis > & | axes, | ||
const vector< PMS::DataColumn > & | data2, | ||
const String & | msname, | ||
const PlotMSSelection & | selection, | ||
const PlotMSAveraging & | averaging, | ||
const PlotMSTransformations & | transformations, | ||
bool | setupPlot = false , |
||
PMSPTMethod | postThreadMethod = NULL , |
||
PMSPTObject | postThreadObject = NULL |
||
) |
LOADING constructor which takes the PlotMSPlot, the PlotMSData, the axes and data columns, the averaging, a flag for whether to call setupPlot after the loading, and optional post-thread method parameters.
casa::PlotMSCacheThread::PlotMSCacheThread | ( | PlotMSPlot * | plot, |
const vector< PMS::Axis > & | axes, | ||
PMSPTMethod | postThreadMethod = NULL , |
||
PMSPTObject | postThreadObject = NULL |
||
) |
RELEASING constructor which takes the PlotMSPlot, the axes, and optional post-thread method parameters.
Destructor.
void casa::PlotMSCacheThread::background | ( | ) | [protected, virtual, slot] |
void casa::PlotMSCacheThread::cancel | ( | ) | [protected, virtual, slot] |
Implements PlotMSThread::cancel().
Implements casa::PlotMSThread.
void casa::PlotMSCacheThread::pause | ( | ) | [protected, virtual, slot] |
void casa::PlotMSCacheThread::resume | ( | ) | [protected, virtual, slot] |
void casa::PlotMSCacheThread::setProgress | ( | unsigned int | progress | ) | [inline, protected] |
Allows the cache to set the progress.
Definition at line 91 of file PlotMSCacheThread.qo.h.
References itsLastStatus_, and setProgressAndStatus().
void casa::PlotMSCacheThread::setProgressAndStatus | ( | unsigned int | progress, |
const String & | status | ||
) | [protected] |
Allows the cache to set the progress and the status.
Referenced by setProgress(), and setStatus().
void casa::PlotMSCacheThread::setStatus | ( | const String & | status | ) | [inline, protected] |
Allows the cache to set the status.
Definition at line 95 of file PlotMSCacheThread.qo.h.
References itsLastProgress_, and setProgressAndStatus().
void casa::PlotMSCacheThread::startOperation | ( | ) | [virtual] |
Implements PlotMSThread::startOperation().
Implements casa::PlotMSThread.
void casa::PlotMSCacheThread::threadFinished | ( | ) | [private, slot] |
Slot for when the QThread finishes.
bool casa::PlotMSCacheThread::wasCanceled | ( | ) | const [protected, virtual] |
Implements PlotMSThread::wasCanceled().
Implements casa::PlotMSThread.
friend class CalCache [friend] |
Definition at line 55 of file PlotMSCacheThread.qo.h.
friend class MSCache [friend] |
Definition at line 54 of file PlotMSCacheThread.qo.h.
friend class PlotMSCacheBase [friend] |
Definition at line 53 of file PlotMSCacheThread.qo.h.
friend class PlotMSCacheThreadHelper [friend] |
Definition at line 56 of file PlotMSCacheThread.qo.h.
Definition at line 133 of file PlotMSCacheThread.qo.h.
vector<PMS::Axis> casa::PlotMSCacheThread::itsAxes_ [private] |
Axes.
Definition at line 125 of file PlotMSCacheThread.qo.h.
vector<PMS::DataColumn> casa::PlotMSCacheThread::itsAxesData_ [private] |
Axes data columns.
Definition at line 128 of file PlotMSCacheThread.qo.h.
Data.
Definition at line 119 of file PlotMSCacheThread.qo.h.
Error message, if there was one (otherwise empty).
Definition at line 149 of file PlotMSCacheThread.qo.h.
unsigned int casa::PlotMSCacheThread::itsLastProgress_ [private] |
Last set progress.
Definition at line 140 of file PlotMSCacheThread.qo.h.
Referenced by setStatus().
Last set status.
Definition at line 143 of file PlotMSCacheThread.qo.h.
Referenced by setProgress().
bool casa::PlotMSCacheThread::itsLoad_ [private] |
Load (true) or release (false) axes.
Definition at line 122 of file PlotMSCacheThread.qo.h.
String casa::PlotMSCacheThread::itsMSName_ [private] |
MS selection/averaging info.
Definition at line 131 of file PlotMSCacheThread.qo.h.
PlotMSPlot* casa::PlotMSCacheThread::itsPlot_ [private] |
Plot.
Definition at line 116 of file PlotMSCacheThread.qo.h.
Definition at line 132 of file PlotMSCacheThread.qo.h.
bool casa::PlotMSCacheThread::itsSetupPlot_ [private] |
Whether to set up the cache afterwards.
Definition at line 137 of file PlotMSCacheThread.qo.h.
Definition at line 134 of file PlotMSCacheThread.qo.h.
bool casa::PlotMSCacheThread::wasCanceled_ [private] |
Flag for whether thread was canceled or not.
Definition at line 146 of file PlotMSCacheThread.qo.h.