casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Protected Slots | Protected Member Functions | Private Slots | Private Attributes | Friends
casa::PlotMSCacheThread Class Reference

Subclass of PlotMSThread for loading axes in a PlotMSCache. More...

#include <PlotMSCacheThread.qo.h>

Inheritance diagram for casa::PlotMSCacheThread:
casa::PlotMSThread

List of all members.

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

PlotMSPlotitsPlot_
 Plot.
PlotMSCacheBaseitsCache_
 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

Detailed Description

Subclass of PlotMSThread for loading axes in a PlotMSCache.

Definition at line 49 of file PlotMSCacheThread.qo.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

void casa::PlotMSCacheThread::background ( ) [protected, virtual, slot]

Implements PlotMSThread::background().

Currently is unimplemented.

Implements casa::PlotMSThread.

void casa::PlotMSCacheThread::cancel ( ) [protected, virtual, slot]

Implements PlotMSThread::cancel().

Implements casa::PlotMSThread.

void casa::PlotMSCacheThread::pause ( ) [protected, virtual, slot]

Implements PlotMSThread::pause().

Currently is unimplemented.

Implements casa::PlotMSThread.

void casa::PlotMSCacheThread::resume ( ) [protected, virtual, slot]

Implements PlotMSThread::resume().

Currently is unimplemented.

Implements casa::PlotMSThread.

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::threadFinished ( ) [private, slot]

Slot for when the QThread finishes.

bool casa::PlotMSCacheThread::wasCanceled ( ) const [protected, virtual]

Friends And Related Function Documentation

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.


Member Data Documentation

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.

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().

Load (true) or release (false) axes.

Definition at line 122 of file PlotMSCacheThread.qo.h.

MS selection/averaging info.

Definition at line 131 of file PlotMSCacheThread.qo.h.

Plot.

Definition at line 116 of file PlotMSCacheThread.qo.h.

Definition at line 132 of file PlotMSCacheThread.qo.h.

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.

Flag for whether thread was canceled or not.

Definition at line 146 of file PlotMSCacheThread.qo.h.


The documentation for this class was generated from the following file: