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

#include <PlotMSOverPlot.h>

Inheritance diagram for casa::PlotMSOverPlot:
casa::PlotMSPlot casa::PlotMSParametersWatcher

List of all members.

Classes

class  TCLParams
 Simple class to hold parameter to resume updating after a threaded cache loading. More...

Public Member Functions

 PlotMSOverPlot (PlotMSApp *parent)
 
     

virtual ~PlotMSOverPlot ()
String name () const
 virtual methods
String spectype () const
 Returns specialization Id for this plot.
vector< MaskedScatterPlotPtrplots () const
 Returns the plots assigned to this plot.
vector< PlotCanvasPtrcanvases () const
 Returns the canvases that have been assigned to this plot.
void setupPlotSubtabs (PlotMSPlotTab &tab) const
 Sets up subtabs for the given plot tab, using the add/insert subtab methods.
void attachToCanvases ()
 Attaches/Detaches internal plot objects to their assigned canvases.
void detachFromCanvases ()
void plotTabHasChanged (PlotMSPlotTab &)
 Called when the GUI settings in the plot tab have changed.
Int iter ()

Static Public Member Functions

static PlotMSPlotParameters makeParameters (PlotMSApp *plotms)
 Static.
static void makeParameters (PlotMSPlotParameters &params, PlotMSApp *plotms)
 Updates the given PlotMSPlotParameters to be suitable for use with this class, using the given PlotMS parent.
static void cacheLoaded (void *obj, bool wasCanceled)
 
     

Protected Member Functions

bool assignCanvases (PlotMSPages &pages)
 Template pattern methods.
bool initializePlot ()
 Initializes any internal plot objects, but does NOT set parameters or attach to canvases.
bool parametersHaveChanged_ (const PlotMSWatchedParameters &params, int updateFlag, bool releaseWhenDone)
 Updates plot members for parameters specific to the child plot type.
void updateCanvasesAndPlotsForAxes ()
PlotMSRegions selectedRegions (const vector< PlotCanvasPtr > &canvases) const
 Helper method for selectedRegions() and visibleSelectedRegions() that returns the selected regions for plots in the given canvases.
void resize (PlotMSPages &, uInt rows, uInt cols)
void constructorSetup ()
 IMPLEMENTED METHODS //.
void updatePages ()
bool updateCache ()
bool updateCanvas ()
bool updateDisplay ()
void setColors ()
bool firstIter ()
 Steps the iteration.
bool prevIter ()
bool nextIter ()
bool lastIter ()
bool resetIter ()
void recalculateIteration ()
void updatePlots ()
bool updateIndexing ()
void logPoints ()
void logIter (Int iter, Int nIter)

Private Member Functions

 PlotMSOverPlot (const PlotMSOverPlot &)
 Disable copy constructor and assignment operator.
PlotMSOverPlotoperator= (const PlotMSOverPlot &)
void cacheLoaded_ (bool wasCanceled)

Private Attributes

vector< vector
< MaskedScatterPlotPtr > > 
itsPlots_
vector< vector< PlotCanvasPtr > > itsCanvases_
vector< vector< QPScatterPlot * > > itsColoredPlots_
TCLParams itsTCLParams_
Int iter_
Int iterStep_

Static Private Attributes

static const uInt pixelThreshold
static const uInt mediumThreshold
static const uInt largeThreshold

Detailed Description

Definition at line 38 of file PlotMSOverPlot.h.


Constructor & Destructor Documentation

     

Disable copy constructor and assignment operator.


Member Function Documentation

bool casa::PlotMSOverPlot::assignCanvases ( PlotMSPages pages) [protected, virtual]

Template pattern methods.

Implements casa::PlotMSPlot.

Attaches/Detaches internal plot objects to their assigned canvases.

Implements casa::PlotMSPlot.

static void casa::PlotMSOverPlot::cacheLoaded ( void *  obj,
bool  wasCanceled 
) [inline, static]

     

Definition at line 132 of file PlotMSOverPlot.h.

References cacheLoaded_().

void casa::PlotMSOverPlot::cacheLoaded_ ( bool  wasCanceled) [private]

Referenced by cacheLoaded().

vector<PlotCanvasPtr> casa::PlotMSOverPlot::canvases ( ) const [virtual]

Returns the canvases that have been assigned to this plot.

Implements casa::PlotMSPlot.

void casa::PlotMSOverPlot::constructorSetup ( ) [protected, virtual]

IMPLEMENTED METHODS //.

Note: this method MUST be called in the constructor of any children classes.

Reimplemented from casa::PlotMSPlot.

Implements casa::PlotMSPlot.

bool casa::PlotMSOverPlot::firstIter ( ) [protected, virtual]

Steps the iteration.

Reimplemented from casa::PlotMSPlot.

bool casa::PlotMSOverPlot::initializePlot ( ) [protected, virtual]

Initializes any internal plot objects, but does NOT set parameters or attach to canvases.

Will only be called ONCE, before assignCanvases and parametersUpdated, as long as the public initializePlot method is not overridden. Returns true for success, false for failure.

Implements casa::PlotMSPlot.

Int casa::PlotMSOverPlot::iter ( ) [inline, virtual]

Reimplemented from casa::PlotMSPlot.

Definition at line 83 of file PlotMSOverPlot.h.

References iter_.

bool casa::PlotMSOverPlot::lastIter ( ) [protected, virtual]

Reimplemented from casa::PlotMSPlot.

void casa::PlotMSOverPlot::logIter ( Int  iter,
Int  nIter 
) [protected]
void casa::PlotMSOverPlot::logPoints ( ) [protected]

Static.

See PlotMSPlot::makeParameters()

Reimplemented from casa::PlotMSPlot.

static void casa::PlotMSOverPlot::makeParameters ( PlotMSPlotParameters params,
PlotMSApp plotms 
) [static]

Updates the given PlotMSPlotParameters to be suitable for use with this class, using the given PlotMS parent.

Reimplemented from casa::PlotMSPlot.

String casa::PlotMSOverPlot::name ( ) const [virtual]

virtual methods

Implements casa::PlotMSPlot.

bool casa::PlotMSOverPlot::nextIter ( ) [protected, virtual]

Reimplemented from casa::PlotMSPlot.

PlotMSOverPlot& casa::PlotMSOverPlot::operator= ( const PlotMSOverPlot ) [private]
bool casa::PlotMSOverPlot::parametersHaveChanged_ ( const PlotMSWatchedParameters params,
int  updateFlag,
bool  releaseWhenDone 
) [protected, virtual]

Updates plot members for parameters specific to the child plot type.

Returns true if the drawing should be released right away; if false is returned, the child class is expect to release drawing when finished.

Implements casa::PlotMSPlot.

Returns the plots assigned to this plot.

Implements casa::PlotMSPlot.

void casa::PlotMSOverPlot::plotTabHasChanged ( PlotMSPlotTab tab) [inline, virtual]

Called when the GUI settings in the plot tab have changed.

Implements casa::PlotMSPlot.

Definition at line 82 of file PlotMSOverPlot.h.

bool casa::PlotMSOverPlot::prevIter ( ) [protected, virtual]

Reimplemented from casa::PlotMSPlot.

bool casa::PlotMSOverPlot::resetIter ( ) [protected]
void casa::PlotMSOverPlot::resize ( PlotMSPages ,
uInt  rows,
uInt  cols 
) [protected]
PlotMSRegions casa::PlotMSOverPlot::selectedRegions ( const vector< PlotCanvasPtr > &  canvases) const [protected, virtual]

Helper method for selectedRegions() and visibleSelectedRegions() that returns the selected regions for plots in the given canvases.

Implements casa::PlotMSPlot.

void casa::PlotMSOverPlot::setColors ( ) [protected]
void casa::PlotMSOverPlot::setupPlotSubtabs ( PlotMSPlotTab tab) const [virtual]

Sets up subtabs for the given plot tab, using the add/insert subtab methods.

Implements casa::PlotMSPlot.

String casa::PlotMSOverPlot::spectype ( ) const [inline, virtual]

Returns specialization Id for this plot.

Reimplemented from casa::PlotMSPlot.

Definition at line 76 of file PlotMSOverPlot.h.

bool casa::PlotMSOverPlot::updateCache ( ) [protected]
bool casa::PlotMSOverPlot::updateCanvas ( ) [protected]
void casa::PlotMSOverPlot::updatePages ( ) [protected]
void casa::PlotMSOverPlot::updatePlots ( ) [protected]

Member Data Documentation

Definition at line 122 of file PlotMSOverPlot.h.

Referenced by iter().

Definition at line 123 of file PlotMSOverPlot.h.

Definition at line 118 of file PlotMSOverPlot.h.

vector<vector<QPScatterPlot*> > casa::PlotMSOverPlot::itsColoredPlots_ [private]

Definition at line 119 of file PlotMSOverPlot.h.

Definition at line 117 of file PlotMSOverPlot.h.

Definition at line 120 of file PlotMSOverPlot.h.

const uInt casa::PlotMSOverPlot::largeThreshold [static, private]

Definition at line 143 of file PlotMSOverPlot.h.

Definition at line 142 of file PlotMSOverPlot.h.

const uInt casa::PlotMSOverPlot::pixelThreshold [static, private]

Definition at line 141 of file PlotMSOverPlot.h.


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