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::PlotMSIterPlot Class Reference

Implementation of PlotMSPlot for a single plot on a single canvas. More...

#include <PlotMSIterPlot.h>

Inheritance diagram for casa::PlotMSIterPlot:
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

 PlotMSIterPlot (PlotMSApp *parent)
 Non-Static //.
 ~PlotMSIterPlot ()
 Destructor.
String name () const
 Implements PlotMSPlot::name().
String spectype () const
 implement PlotMSPlot::spectype().
vector< MaskedScatterPlotPtrplots () const
 Implements PlotMSPlot::plots().
vector< PlotCanvasPtrcanvases () 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 &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)
 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 &params, 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 &copy)
 Disable copy constructor and operator for now.
PlotMSIterPlotoperator= (const PlotMSIterPlot &copy)
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

Detailed Description

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.


Constructor & Destructor Documentation

Non-Static //.

Constructor which takes the PlotMS parent. Starts out with default parameters.

Destructor.

Disable copy constructor and operator for now.


Member Function Documentation

bool casa::PlotMSIterPlot::assignCanvases ( PlotMSPages pages) [protected, virtual]
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.

bool casa::PlotMSIterPlot::firstIter ( ) [virtual]

Step the iteration.

Reimplemented from casa::PlotMSPlot.

bool casa::PlotMSIterPlot::initializePlot ( ) [protected, virtual]
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 //.

See PlotMSPlot::makeParameters().

Reimplemented from casa::PlotMSPlot.

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::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]
void casa::PlotMSIterPlot::setColors ( ) [private]

Set default colors.

void casa::PlotMSIterPlot::setupPlotSubtabs ( PlotMSPlotTab tab) const [virtual]
String casa::PlotMSIterPlot::spectype ( ) const [inline, virtual]

implement PlotMSPlot::spectype().

Reimplemented from casa::PlotMSPlot.

Definition at line 90 of file PlotMSIterPlot.h.

Updates helper methods.

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.


Member Data Documentation

Iteration counter.

Definition at line 158 of file PlotMSIterPlot.h.

Referenced by iter().

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.

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.

Definition at line 197 of file PlotMSIterPlot.h.

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

Definition at line 196 of file PlotMSIterPlot.h.


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