casa
$Rev:20696$
|
#include <PlotMSOverPlot.h>
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< MaskedScatterPlotPtr > | plots () const |
Returns the plots assigned to this plot. | |
vector< PlotCanvasPtr > | canvases () 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 ¶ms, 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 ¶ms, 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. | |
PlotMSOverPlot & | operator= (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 |
Definition at line 38 of file PlotMSOverPlot.h.
casa::PlotMSOverPlot::PlotMSOverPlot | ( | PlotMSApp * | parent | ) |
virtual casa::PlotMSOverPlot::~PlotMSOverPlot | ( | ) | [virtual] |
casa::PlotMSOverPlot::PlotMSOverPlot | ( | const PlotMSOverPlot & | ) | [private] |
Disable copy constructor and assignment operator.
bool casa::PlotMSOverPlot::assignCanvases | ( | PlotMSPages & | pages | ) | [protected, virtual] |
Template pattern methods.
Implements casa::PlotMSPlot.
void casa::PlotMSOverPlot::attachToCanvases | ( | ) | [virtual] |
Attaches/Detaches internal plot objects to their assigned canvases.
Implements casa::PlotMSPlot.
static void casa::PlotMSOverPlot::cacheLoaded | ( | void * | obj, |
bool | wasCanceled | ||
) | [inline, static] |
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.
void casa::PlotMSOverPlot::detachFromCanvases | ( | ) | [virtual] |
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 PlotMSPlotParameters casa::PlotMSOverPlot::makeParameters | ( | PlotMSApp * | plotms | ) | [static] |
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.
vector<MaskedScatterPlotPtr> casa::PlotMSOverPlot::plots | ( | ) | const [virtual] |
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.
void casa::PlotMSOverPlot::recalculateIteration | ( | ) | [protected] |
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::updateCanvasesAndPlotsForAxes | ( | ) | [protected] |
bool casa::PlotMSOverPlot::updateDisplay | ( | ) | [protected] |
bool casa::PlotMSOverPlot::updateIndexing | ( | ) | [protected] |
void casa::PlotMSOverPlot::updatePages | ( | ) | [protected] |
void casa::PlotMSOverPlot::updatePlots | ( | ) | [protected] |
Int casa::PlotMSOverPlot::iter_ [private] |
Definition at line 122 of file PlotMSOverPlot.h.
Referenced by iter().
Int casa::PlotMSOverPlot::iterStep_ [private] |
Definition at line 123 of file PlotMSOverPlot.h.
vector<vector<PlotCanvasPtr> > casa::PlotMSOverPlot::itsCanvases_ [private] |
Definition at line 118 of file PlotMSOverPlot.h.
vector<vector<QPScatterPlot*> > casa::PlotMSOverPlot::itsColoredPlots_ [private] |
Definition at line 119 of file PlotMSOverPlot.h.
vector<vector<MaskedScatterPlotPtr> > casa::PlotMSOverPlot::itsPlots_ [private] |
Definition at line 117 of file PlotMSOverPlot.h.
TCLParams casa::PlotMSOverPlot::itsTCLParams_ [private] |
Definition at line 120 of file PlotMSOverPlot.h.
const uInt casa::PlotMSOverPlot::largeThreshold [static, private] |
Definition at line 143 of file PlotMSOverPlot.h.
const uInt casa::PlotMSOverPlot::mediumThreshold [static, private] |
Definition at line 142 of file PlotMSOverPlot.h.
const uInt casa::PlotMSOverPlot::pixelThreshold [static, private] |
Definition at line 141 of file PlotMSOverPlot.h.