casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Protected Slots | Protected Member Functions | Private Attributes
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

List of all members.

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

PlotMSPlotteritsPlotter_
 Parent plotter.
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.
bool wasCanceled_
 Flag for whether thread was canceled or not.

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,
PMSPTMethod  postThreadMethod = NULL,
PMSPTObject  postThreadObject = NULL 
)

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

Destructor.


Member Function Documentation

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

Implements PlotMSThread::background().

Currently is unimplemented.

Implements casa::PlotMSThread.

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

Implements PlotMSThread::cancel().

Currently is unimplemented.

Implements casa::PlotMSThread.

void casa::PlotMSDrawThread::operationChanged ( const PlotOperation operation) [virtual]
void casa::PlotMSDrawThread::pause ( ) [protected, virtual, slot]

Implements PlotMSThread::pause().

Currently is unimplemented.

Implements casa::PlotMSThread.

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

Implements PlotMSThread::resume().

Currently is unimplemented.

Implements casa::PlotMSThread.

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

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

Member Data Documentation

Flag for if thread is currently running or not.

Definition at line 97 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 101 of file PlotMSDrawThread.qo.h.

Operations.

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

Mutex for accessing operations.

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

Parent plotter.

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

Flag for whether thread was canceled or not.

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


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