casa::PlotMSDrawThread Class Reference

Subclass of PlotMSThread that handles following the progress of canvas drawing. More...

#include <PlotMSDrawThread.qo.h>

Inheritance diagram for casa::PlotMSDrawThread:
casa::PlotMSThread casa::PlotOperationWatcher casa::ThreadController casa::ThreadCommunication

List of all members.

Public Member Functions

 PlotMSDrawThread (PlotMSPlotter *plotter, QtProgressWidget *progress, PMSPTMethod postThreadMethod=NULL, PMSPTObject postThreadObject=NULL)
 Constructor which takes the plotter, and optional post-thread method parameters.
 ~PlotMSDrawThread ()
 Destructor.
void updatePlotterCanvases ()
 Updates the internal list of canvases based upon the parent PlotMSPlotter.
virtual void startOperation ()
 Implements PlotMSThread::startOperation().
bool isDrawing () const
void operationChanged (const PlotOperation &operation)
 Implements PlotOperationWatcher::operationChanged().
virtual QString getName () const

Protected Member Functions

void cancel ()
 For when the user requests "cancel" for the thread.

Private Member Functions

 PlotMSDrawThread (const PlotMSDrawThread &other)
PlotMSDrawThread operator= (const PlotMSDrawThread &other)

Private Attributes

PlotMSPlotteritsPlotter_
std::vector< PlotOperationPtritsOperations_
 Operations.
QMutex itsOperationsMutex_
 Mutex for accessing operations.
bool isRunning_
 Flag for if thread is currently running or not.
bool itsOperationFlag_
 Flag indicating that one or more operations tried to call operationChanged() while the operations mutex was locked.

Detailed Description

Subclass of PlotMSThread that handles following the progress of canvas drawing.

Definition at line 43 of file PlotMSDrawThread.qo.h.


Constructor & Destructor Documentation

casa::PlotMSDrawThread::PlotMSDrawThread ( PlotMSPlotter plotter,
QtProgressWidget progress,
PMSPTMethod  postThreadMethod = NULL,
PMSPTObject  postThreadObject = NULL 
)

Constructor which takes the plotter, and optional post-thread method parameters.

casa::PlotMSDrawThread::~PlotMSDrawThread (  ) 

Destructor.

casa::PlotMSDrawThread::PlotMSDrawThread ( const PlotMSDrawThread other  )  [private]

Member Function Documentation

void casa::PlotMSDrawThread::cancel (  )  [protected, virtual]

For when the user requests "cancel" for the thread.

Reimplemented from casa::ThreadController.

virtual QString casa::PlotMSDrawThread::getName (  )  const [virtual]

Implements casa::PlotMSThread.

bool casa::PlotMSDrawThread::isDrawing (  )  const
void casa::PlotMSDrawThread::operationChanged ( const PlotOperation operation  )  [virtual]
PlotMSDrawThread casa::PlotMSDrawThread::operator= ( const PlotMSDrawThread other  )  [private]

Reimplemented from casa::ThreadController.

virtual void casa::PlotMSDrawThread::startOperation (  )  [virtual]
void casa::PlotMSDrawThread::updatePlotterCanvases (  ) 

Updates the internal list of canvases based upon the parent PlotMSPlotter.


Member Data Documentation

Flag for if thread is currently running or not.

Definition at line 88 of file PlotMSDrawThread.qo.h.

Flag indicating that one or more operations tried to call operationChanged() while the operations mutex was locked.

Definition at line 92 of file PlotMSDrawThread.qo.h.

Operations.

Definition at line 82 of file PlotMSDrawThread.qo.h.

Mutex for accessing operations.

Definition at line 85 of file PlotMSDrawThread.qo.h.

Definition at line 79 of file PlotMSDrawThread.qo.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 31 Aug 2016 for casa by  doxygen 1.6.1