casa
$Rev:20696$
|
Subclass of PlotMSThread that handles following the progress of canvas drawing. More...
#include <PlotMSDrawThread.qo.h>
Public Member Functions | |
PlotMSDrawThread (PlotMSPlotter *plotter, 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. | |
void | startOperation () |
Implements PlotMSThread::startOperation(). | |
bool | isDrawing () const |
void | operationChanged (const PlotOperation &operation) |
Implements PlotOperationWatcher::operationChanged(). | |
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(). | |
Private Attributes | |
PlotMSPlotter * | itsPlotter_ |
Parent plotter. | |
vector< PlotOperationPtr > | itsOperations_ |
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. | |
bool | wasCanceled_ |
Flag for whether thread was canceled or not. |
Subclass of PlotMSThread that handles following the progress of canvas drawing.
Definition at line 43 of file PlotMSDrawThread.qo.h.
casa::PlotMSDrawThread::PlotMSDrawThread | ( | PlotMSPlotter * | plotter, |
PMSPTMethod | postThreadMethod = NULL , |
||
PMSPTObject | postThreadObject = NULL |
||
) |
Constructor which takes the plotter, and optional post-thread method parameters.
Destructor.
void casa::PlotMSDrawThread::background | ( | ) | [protected, virtual, slot] |
void casa::PlotMSDrawThread::cancel | ( | ) | [protected, virtual, slot] |
bool casa::PlotMSDrawThread::isDrawing | ( | ) | const |
void casa::PlotMSDrawThread::operationChanged | ( | const PlotOperation & | operation | ) | [virtual] |
Implements PlotOperationWatcher::operationChanged().
Implements casa::PlotOperationWatcher.
void casa::PlotMSDrawThread::pause | ( | ) | [protected, virtual, slot] |
void casa::PlotMSDrawThread::resume | ( | ) | [protected, virtual, slot] |
void casa::PlotMSDrawThread::startOperation | ( | ) | [virtual] |
Implements PlotMSThread::startOperation().
Implements casa::PlotMSThread.
Updates the internal list of canvases based upon the parent PlotMSPlotter.
bool casa::PlotMSDrawThread::wasCanceled | ( | ) | const [protected, virtual] |
Implements PlotMSThread::wasCanceled().
Implements casa::PlotMSThread.
bool casa::PlotMSDrawThread::isRunning_ [private] |
Flag for if thread is currently running or not.
Definition at line 97 of file PlotMSDrawThread.qo.h.
bool casa::PlotMSDrawThread::itsOperationFlag_ [private] |
Flag indicating that one or more operations tried to call operationChanged() while the operations mutex was locked.
Definition at line 101 of file PlotMSDrawThread.qo.h.
vector<PlotOperationPtr> casa::PlotMSDrawThread::itsOperations_ [private] |
Operations.
Definition at line 91 of file PlotMSDrawThread.qo.h.
QMutex casa::PlotMSDrawThread::itsOperationsMutex_ [private] |
Mutex for accessing operations.
Definition at line 94 of file PlotMSDrawThread.qo.h.
PlotMSPlotter* casa::PlotMSDrawThread::itsPlotter_ [private] |
Parent plotter.
Definition at line 88 of file PlotMSDrawThread.qo.h.
bool casa::PlotMSDrawThread::wasCanceled_ [private] |
Flag for whether thread was canceled or not.
Definition at line 104 of file PlotMSDrawThread.qo.h.