casa
$Rev:20696$
|
Implementation of PlotMSPlot for a single plot on a single canvas. More...
#include <PlotMSIterPlot.h>
Classes | |
class | TCLParams |
Simple class to hold parameter to resume updating after a threaded cache loading. More... | |
Public Member Functions | |
PlotMSIterPlot (PlotMSApp *parent) | |
Non-Static //. | |
~PlotMSIterPlot () | |
Destructor. | |
String | name () const |
Implements PlotMSPlot::name(). | |
String | spectype () const |
implement PlotMSPlot::spectype(). | |
vector< MaskedScatterPlotPtr > | plots () const |
Implements PlotMSPlot::plots(). | |
vector< PlotCanvasPtr > | canvases () const |
Implements PlotMSPlot::canvases(). | |
void | setupPlotSubtabs (PlotMSPlotTab &tab) const |
Implements PlotMSPlot::setupPlotSubtabs(). | |
void | attachToCanvases () |
Implements PlotMSPlot::attachToCanvases(). | |
void | detachFromCanvases () |
Implements PlotMSPlot::detachFromCanvases(). | |
void | plotTabHasChanged (PlotMSPlotTab &tab) |
Implements PlotMSPlot::plotTabHasChanged(). | |
bool | firstIter () |
Step the iteration. | |
bool | prevIter () |
bool | nextIter () |
bool | lastIter () |
virtual 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) |
Post-thread methods for loading the cache. | |
Protected Member Functions | |
bool | assignCanvases (PlotMSPages &pages) |
Implements PlotMSPlot::assignCanvases(). | |
bool | initializePlot () |
Implements PlotMSPlot::initializePlot(). | |
bool | parametersHaveChanged_ (const PlotMSWatchedParameters ¶ms, int updateFlag, bool releaseWhenDone) |
Implements PlotMSPlot::parametersHaveChanged_(). | |
PlotMSRegions | selectedRegions (const vector< PlotCanvasPtr > &canvases) const |
Implements PlotMSPlot::selectedRegions(). | |
void | constructorSetup () |
Overrides PlotMSPlot::constructorSetup(). | |
virtual bool | updateData () |
Clear the underlying data cache. | |
Private Member Functions | |
PlotMSIterPlot (const PlotMSIterPlot ©) | |
Disable copy constructor and operator for now. | |
PlotMSIterPlot & | operator= (const PlotMSIterPlot ©) |
bool | updateCache () |
Updates helper methods. | |
bool | updateIndexing () |
bool | resetIter () |
bool | updateCanvas () |
bool | updateDisplay () |
void | setColors () |
Set default colors. | |
void | logPoints () |
Log the number of points plotted;. | |
void | logIter (Int iter, Int nIter) |
Log iteration info. | |
void | cacheLoaded_ (bool wasCanceled) |
Private Attributes | |
MaskedScatterPlotPtr | itsPlot_ |
Convenient access to single plot. | |
ColoredPlotPtr | itsColoredPlot_ |
Convenient access to single plot as a colored plot. | |
PlotCanvasPtr | itsCanvas_ |
Convenient access to single canvas. | |
TCLParams | itsTCLParams_ |
See TCLParams class documentation. | |
PlotMSIndexerPtr | itsIndexer_ |
The indexer. | |
Int | iter_ |
Iteration counter. | |
Static Private Attributes | |
static const uInt | pixelThreshold |
static const uInt | mediumThreshold |
static const uInt | largeThreshold |
Implementation of PlotMSPlot for a single plot on a single canvas.
Uses PlotMSSinglePlotParameters in addition to PlotMSPlotParameters.
Definition at line 40 of file PlotMSIterPlot.h.
casa::PlotMSIterPlot::PlotMSIterPlot | ( | PlotMSApp * | parent | ) |
Non-Static //.
Constructor which takes the PlotMS parent. Starts out with default parameters.
Destructor.
casa::PlotMSIterPlot::PlotMSIterPlot | ( | const PlotMSIterPlot & | copy | ) | [private] |
Disable copy constructor and operator for now.
bool casa::PlotMSIterPlot::assignCanvases | ( | PlotMSPages & | pages | ) | [protected, virtual] |
Implements PlotMSPlot::assignCanvases().
Implements casa::PlotMSPlot.
void casa::PlotMSIterPlot::attachToCanvases | ( | ) | [virtual] |
Implements PlotMSPlot::attachToCanvases().
Implements casa::PlotMSPlot.
static void casa::PlotMSIterPlot::cacheLoaded | ( | void * | obj, |
bool | wasCanceled | ||
) | [inline, static] |
Post-thread methods for loading the cache.
Definition at line 186 of file PlotMSIterPlot.h.
References cacheLoaded_().
void casa::PlotMSIterPlot::cacheLoaded_ | ( | bool | wasCanceled | ) | [private] |
Referenced by cacheLoaded().
vector<PlotCanvasPtr> casa::PlotMSIterPlot::canvases | ( | ) | const [virtual] |
Implements PlotMSPlot::canvases().
Implements casa::PlotMSPlot.
void casa::PlotMSIterPlot::constructorSetup | ( | ) | [protected, virtual] |
Overrides PlotMSPlot::constructorSetup().
Reimplemented from casa::PlotMSPlot.
void casa::PlotMSIterPlot::detachFromCanvases | ( | ) | [virtual] |
Implements PlotMSPlot::detachFromCanvases().
Implements casa::PlotMSPlot.
bool casa::PlotMSIterPlot::firstIter | ( | ) | [virtual] |
Step the iteration.
Reimplemented from casa::PlotMSPlot.
bool casa::PlotMSIterPlot::initializePlot | ( | ) | [protected, virtual] |
Implements PlotMSPlot::initializePlot().
Implements casa::PlotMSPlot.
virtual Int casa::PlotMSIterPlot::iter | ( | ) | [inline, virtual] |
Reimplemented from casa::PlotMSPlot.
Definition at line 116 of file PlotMSIterPlot.h.
References iter_.
bool casa::PlotMSIterPlot::lastIter | ( | ) | [virtual] |
Reimplemented from casa::PlotMSPlot.
void casa::PlotMSIterPlot::logIter | ( | Int | iter, |
Int | nIter | ||
) | [private] |
Log iteration info.
void casa::PlotMSIterPlot::logPoints | ( | ) | [private] |
Log the number of points plotted;.
static PlotMSPlotParameters casa::PlotMSIterPlot::makeParameters | ( | PlotMSApp * | plotms | ) | [static] |
static void casa::PlotMSIterPlot::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::PlotMSIterPlot::name | ( | ) | const [virtual] |
Implements PlotMSPlot::name().
Implements casa::PlotMSPlot.
bool casa::PlotMSIterPlot::nextIter | ( | ) | [virtual] |
Reimplemented from casa::PlotMSPlot.
PlotMSIterPlot& casa::PlotMSIterPlot::operator= | ( | const PlotMSIterPlot & | copy | ) | [private] |
bool casa::PlotMSIterPlot::parametersHaveChanged_ | ( | const PlotMSWatchedParameters & | params, |
int | updateFlag, | ||
bool | releaseWhenDone | ||
) | [protected, virtual] |
Implements PlotMSPlot::parametersHaveChanged_().
Implements casa::PlotMSPlot.
vector<MaskedScatterPlotPtr> casa::PlotMSIterPlot::plots | ( | ) | const [virtual] |
Implements PlotMSPlot::plots().
Implements casa::PlotMSPlot.
void casa::PlotMSIterPlot::plotTabHasChanged | ( | PlotMSPlotTab & | tab | ) | [inline, virtual] |
Implements PlotMSPlot::plotTabHasChanged().
Implements casa::PlotMSPlot.
Definition at line 108 of file PlotMSIterPlot.h.
bool casa::PlotMSIterPlot::prevIter | ( | ) | [virtual] |
Reimplemented from casa::PlotMSPlot.
bool casa::PlotMSIterPlot::resetIter | ( | ) | [private] |
PlotMSRegions casa::PlotMSIterPlot::selectedRegions | ( | const vector< PlotCanvasPtr > & | canvases | ) | const [protected, virtual] |
Implements PlotMSPlot::selectedRegions().
Implements casa::PlotMSPlot.
void casa::PlotMSIterPlot::setColors | ( | ) | [private] |
Set default colors.
void casa::PlotMSIterPlot::setupPlotSubtabs | ( | PlotMSPlotTab & | tab | ) | const [virtual] |
Implements PlotMSPlot::setupPlotSubtabs().
Implements casa::PlotMSPlot.
String casa::PlotMSIterPlot::spectype | ( | ) | const [inline, virtual] |
implement PlotMSPlot::spectype().
Reimplemented from casa::PlotMSPlot.
Definition at line 90 of file PlotMSIterPlot.h.
bool casa::PlotMSIterPlot::updateCache | ( | ) | [private] |
Updates helper methods.
bool casa::PlotMSIterPlot::updateCanvas | ( | ) | [private] |
virtual bool casa::PlotMSIterPlot::updateData | ( | ) | [inline, protected, virtual] |
Clear the underlying data cache.
Reimplemented from casa::PlotMSPlot.
Definition at line 137 of file PlotMSIterPlot.h.
References casa::PlotMSCacheBase::clear(), casa::PlotMSPlot::itsCache_, and casa::True.
bool casa::PlotMSIterPlot::updateDisplay | ( | ) | [private] |
bool casa::PlotMSIterPlot::updateIndexing | ( | ) | [private] |
Int casa::PlotMSIterPlot::iter_ [private] |
Convenient access to single canvas.
Definition at line 148 of file PlotMSIterPlot.h.
Convenient access to single plot as a colored plot.
Definition at line 145 of file PlotMSIterPlot.h.
The indexer.
Definition at line 154 of file PlotMSIterPlot.h.
Convenient access to single plot.
Definition at line 137 of file PlotMSIterPlot.h.
TCLParams casa::PlotMSIterPlot::itsTCLParams_ [private] |
See TCLParams class documentation.
Definition at line 151 of file PlotMSIterPlot.h.
const uInt casa::PlotMSIterPlot::largeThreshold [static, private] |
Definition at line 198 of file PlotMSIterPlot.h.
const uInt casa::PlotMSIterPlot::mediumThreshold [static, private] |
Definition at line 197 of file PlotMSIterPlot.h.
const uInt casa::PlotMSIterPlot::pixelThreshold [static, private] |
Definition at line 196 of file PlotMSIterPlot.h.