casa
5.7.0-16
|
#include <PlotMSIndexer.h>
Public Member Functions | |
PlotMSIndexer () | |
A ctor that makes an empty Indexer (for plot initialization) More... | |
PlotMSIndexer (PlotMSCacheBase *plotmscache, PMS::Axis xAxis, PMS::DataColumn xData, PMS::Axis yAxis, PMS::DataColumn yData, casacore::String xconnect, bool timeconnect, int index) | |
Constructor which takes parent PlotMSCache, x and y axes (non-iteration) More... | |
virtual | ~PlotMSIndexer () |
Destructor. More... | |
bool | willDeleteData () const |
Implemented PlotData methods. More... | |
void | setDeleteData (bool del=true) |
Sets whether this object will delete its underlying data structures upon deconstruction or not. More... | |
bool | isValid () const |
ABSTRACT METHODS //. More... | |
unsigned int | size () const |
Implemented PlotPointData methods. More... | |
virtual double | xAt (unsigned int i) const |
Returns the x value at the given index. More... | |
virtual double | yAt (unsigned int i) const |
Returns the y value at the given index. More... | |
virtual void | xAndYAt (unsigned int index, double &x, double &y) const |
IMPLEMENTED METHODS //. More... | |
bool | minsMaxes (double &xMin, double &xMax, double &yMin, double &yMax) |
Gets the minimum and maximum values. More... | |
bool | maskedAt (unsigned int index) const |
Implemented PlotMaskedPointData methods. More... | |
virtual void | xyAndMaskAt (unsigned int index, double &x, double &y, bool &mask) const |
IMPLEMENTED METHODS //. More... | |
unsigned int | sizeMasked () const |
Unimplemented PlotMaskedPointData methods. More... | |
unsigned int | sizeUnmasked () const |
Returns the number of unmasked points. More... | |
bool | maskedMinsMaxes (double &xMin, double &xMax, double &yMin, double &yMax) |
Gets the mins/maxes for just the masked points. More... | |
bool | unmaskedMinsMaxes (double &xMin, double &xMax, double &yMin, double &yMax) |
Gets the mins/maxes for just the unmasked points. More... | |
unsigned int | numBins () const |
PlotBinnedData methods. More... | |
unsigned int | binAt (unsigned int i) const |
bool | isBinned () const |
void | setUpIndexing () |
Set up indexing for the plot. More... | |
void | setGlobalMinMax (casacore::Bool globalX=false, casacore::Bool globalY=false) |
Set global min/max flag. More... | |
bool | isGlobalXRange () const |
bool | isGlobalYRange () const |
casacore::Vector< casacore::uInt > | nPoints () |
Report per-chunk point counters. More... | |
casacore::Vector< casacore::uInt > | nCumulative () |
casacore::Bool | indexerReady () const |
Return if the indexer is ready (setUpPlot has been run) More... | |
casacore::Record | getPointMetaData (casacore::Int i) |
Locate datum nearest to specified x,y. More... | |
casacore::Record | locateInfo (const casacore::Vector< PlotRegion > ®ions, casacore::Bool showUnflagged, casacore::Bool showFlagged, casacore::Bool selectAll=true) |
PlotLogMessage * | locateRange (const casacore::Vector< PlotRegion > ®ions, casacore::Bool showUnflagged, casacore::Bool showFlagged) |
PlotLogMessage * | flagRange (const PlotMSFlagging &flagging, const casacore::Vector< PlotRegion > ®ions, casacore::Bool flag=true) |
void | reportMeta (casacore::Double x, casacore::Double y, casacore::Bool masked, std::stringstream &ss) |
Report meta info for current value of currChunk_/irel_. More... | |
void | flagInCache (const PlotMSFlagging &flagging, casacore::Bool flag) |
Set flags in the cache. More... | |
casacore::String | iterLabel () |
Iteration label. More... | |
casacore::String | iterValue () |
casacore::String | fileLabel () |
bool | maskedMinsMaxesRaw (double &xMin, double &xMax, double &yMin, double &yMax) |
Access to raw min/max data (no auto-global) More... | |
bool | unmaskedMinsMaxesRaw (double &xMin, double &xMax, double &yMin, double &yMax) |
casacore::Int | getIndex0000 (casacore::Int ch, casacore::Int irel) |
Directly implemented index calculators (generic index methods point to one of these depending upon axis choice) More... | |
casacore::Int | getIndex1000 (casacore::Int ch, casacore::Int irel) |
casacore::Int | getIndex0100 (casacore::Int ch, casacore::Int irel) |
casacore::Int | getIndex0010 (casacore::Int ch, casacore::Int irel) |
casacore::Int | getIndex0110 (casacore::Int ch, casacore::Int irel) |
casacore::Int | getIndex1010 (casacore::Int ch, casacore::Int irel) |
casacore::Int | getIndex1110 (casacore::Int ch, casacore::Int irel) |
casacore::Int | getIndex0001 (casacore::Int ch, casacore::Int irel) |
bool | colorize (bool doColorize, PMS::Axis colorizeAxis) |
set colorize and whether binned data has coloraxis; connected points are binned too More... | |
bool | setConnect (casacore::String xconnect, bool timeconnect) |
virtual bool | reverseConnect (unsigned int index) const |
Returns whether data is plotted in reverse order (right to left), needed when connecting points. More... | |
unsigned int | connectBinAt (unsigned int i) const |
bool | plotConjugates () const |
Returns whether to plot conjugate data (e.g. More... | |
Public Member Functions inherited from casa::PlotMaskedPointData | |
PlotMaskedPointData () | |
virtual | ~PlotMaskedPointData () |
Public Member Functions inherited from casa::PlotPointData | |
PlotPointData () | |
virtual | ~PlotPointData () |
Public Member Functions inherited from casa::PlotData | |
PlotData () | |
virtual | ~PlotData () |
Static Public Attributes | |
static const casacore::String | CLASS_NAME |
Convenient access to class name. More... | |
Protected Member Functions | |
PlotMSIndexer (PlotMSCacheBase *plotmscache, PMS::Axis xAxis, PMS::DataColumn xData, PMS::Axis yAxis, PMS::DataColumn yData, PMS::Axis iterAxis, casacore::Int iterValue, casacore::String xconnect, bool timeconnect, int index) | |
Constructor which supports iteration. More... | |
PlotMSCacheBase * | getCache () |
void | setChunk (casacore::uInt i, bool ignoreReindex=false) const |
Set currChunk_ according to a supplied index. More... | |
void | setReady (bool isReady=true) |
Protected Attributes | |
casacore::Int | currChunk_ |
CollapseMethPtr collapseXMask_, collapseYMask_;. More... | |
casacore::Int | irel_ |
PlotMSIndexer * | self |
Cope with const-ness in the get methods. More... | |
Private Member Functions | |
PlotMSIndexer (const PlotMSIndexer &mc) | |
Forbid copy for now. More... | |
void | setMethod (CacheMemPtr &getmethod, PMS::Axis axis, PMS::DataColumn data) |
get method for x and y axes depends on column More... | |
void | setIndexer (IndexerMethPtr &indexmethod, PMS::Axis axis) |
index for iteraxis More... | |
void | reindexForConnect () |
Reindex for connecting points. More... | |
casacore::Int | nChunk () const |
void setCollapser(CollapseMethPtr& collmethod, PMS::Axis axis); More... | |
casacore::Double | refTime () |
Report the reference time for this cache (in seconds) More... | |
void | computeRanges () |
Computes the X and Y limits for the currently set axes. More... | |
void | adjustYRangeForOverlay (double &yMin, double &yMax) |
Adjust the Y range for overlays to make room at top of plot. More... | |
casacore::Double | computeBaselineLength (casacore::Int ant1, casacore::Int ant2) |
Compute baseline's length in meters between ant1 and ant2. More... | |
void | logInfo (const casacore::String &method, const casacore::String &message) |
Convenience methods that call log() with the given method name and the appropriate event type. More... | |
void | logDebug (const casacore::String &method, const casacore::String &message) |
void | logWarn (const casacore::String &method, const casacore::String &message) |
void | logError (const casacore::String &method, const casacore::String &message) |
void | log (const casacore::String &method, const casacore::String &message, int eventType) |
Logs the given message from the given method name as the given event type (see PlotLogger). More... | |
Friends | |
class | PlotMSIndexerFactory |
Definition at line 54 of file PlotMSIndexer.h.
casa::PlotMSIndexer::PlotMSIndexer | ( | ) |
A ctor that makes an empty Indexer (for plot initialization)
casa::PlotMSIndexer::PlotMSIndexer | ( | PlotMSCacheBase * | plotmscache, |
PMS::Axis | xAxis, | ||
PMS::DataColumn | xData, | ||
PMS::Axis | yAxis, | ||
PMS::DataColumn | yData, | ||
casacore::String | xconnect, | ||
bool | timeconnect, | ||
int | index | ||
) |
Constructor which takes parent PlotMSCache, x and y axes (non-iteration)
|
protected |
Constructor which supports iteration.
|
virtual |
Destructor.
|
private |
Forbid copy for now.
|
private |
Adjust the Y range for overlays to make room at top of plot.
unsigned int casa::PlotMSIndexer::binAt | ( | unsigned int | i | ) | const |
bool casa::PlotMSIndexer::colorize | ( | bool | doColorize, |
PMS::Axis | colorizeAxis | ||
) |
set colorize and whether binned data has coloraxis; connected points are binned too
|
private |
Compute baseline's length in meters between ant1 and ant2.
|
private |
Computes the X and Y limits for the currently set axes.
In the future we may want to cache ALL ranges for all loaded values to avoid recomputation.
unsigned int casa::PlotMSIndexer::connectBinAt | ( | unsigned int | i | ) | const |
casacore::String casa::PlotMSIndexer::fileLabel | ( | ) |
void casa::PlotMSIndexer::flagInCache | ( | const PlotMSFlagging & | flagging, |
casacore::Bool | flag | ||
) |
Set flags in the cache.
PlotLogMessage* casa::PlotMSIndexer::flagRange | ( | const PlotMSFlagging & | flagging, |
const casacore::Vector< PlotRegion > & | regions, | ||
casacore::Bool | flag = true |
||
) |
|
inlineprotected |
Definition at line 185 of file PlotMSIndexer.h.
References plotmscache_.
|
inline |
Directly implemented index calculators (generic index methods point to one of these depending upon axis choice)
Definition at line 163 of file PlotMSIndexer.h.
|
inline |
Definition at line 170 of file PlotMSIndexer.h.
|
inline |
Definition at line 166 of file PlotMSIndexer.h.
|
inline |
Definition at line 165 of file PlotMSIndexer.h.
|
inline |
Definition at line 167 of file PlotMSIndexer.h.
References ichanbslnmax_, and nperchan_.
|
inline |
Definition at line 164 of file PlotMSIndexer.h.
References icorrmax_.
|
inline |
Definition at line 168 of file PlotMSIndexer.h.
|
inline |
Definition at line 169 of file PlotMSIndexer.h.
References idatamax_.
casacore::Record casa::PlotMSIndexer::getPointMetaData | ( | casacore::Int | i | ) |
Locate datum nearest to specified x,y.
|
inline |
Return if the indexer is ready (setUpPlot has been run)
Definition at line 132 of file PlotMSIndexer.h.
References indexerReady_.
bool casa::PlotMSIndexer::isBinned | ( | ) | const |
bool casa::PlotMSIndexer::isGlobalXRange | ( | ) | const |
bool casa::PlotMSIndexer::isGlobalYRange | ( | ) | const |
|
inlinevirtual |
ABSTRACT METHODS //.
Returns whether the contained data is valid or not.
Implements casa::PlotData.
Definition at line 86 of file PlotMSIndexer.h.
casacore::String casa::PlotMSIndexer::iterLabel | ( | ) |
Iteration label.
casacore::String casa::PlotMSIndexer::iterValue | ( | ) |
casacore::Record casa::PlotMSIndexer::locateInfo | ( | const casacore::Vector< PlotRegion > & | regions, |
casacore::Bool | showUnflagged, | ||
casacore::Bool | showFlagged, | ||
casacore::Bool | selectAll = true |
||
) |
PlotLogMessage* casa::PlotMSIndexer::locateRange | ( | const casacore::Vector< PlotRegion > & | regions, |
casacore::Bool | showUnflagged, | ||
casacore::Bool | showFlagged | ||
) |
|
private |
Logs the given message from the given method name as the given event type (see PlotLogger).
Referenced by logDebug(), logError(), logInfo(), and logWarn().
|
inlineprivate |
Definition at line 239 of file PlotMSIndexer.h.
References log(), and casa::PlotLogger::MSG_DEBUG.
|
inlineprivate |
Definition at line 243 of file PlotMSIndexer.h.
References log(), and casa::PlotLogger::MSG_ERROR.
|
inlineprivate |
Convenience methods that call log() with the given method name and the appropriate event type.
Definition at line 237 of file PlotMSIndexer.h.
References log(), and casa::PlotLogger::MSG_INFO.
|
inlineprivate |
Definition at line 241 of file PlotMSIndexer.h.
References log(), and casa::PlotLogger::MSG_WARN.
|
virtual |
Implemented PlotMaskedPointData methods.
Implements casa::PlotMaskedPointData.
|
virtual |
Gets the mins/maxes for just the masked points.
Implements casa::PlotMaskedPointData.
bool casa::PlotMSIndexer::maskedMinsMaxesRaw | ( | double & | xMin, |
double & | xMax, | ||
double & | yMin, | ||
double & | yMax | ||
) |
Access to raw min/max data (no auto-global)
|
virtual |
|
private |
void setCollapser(CollapseMethPtr& collmethod, PMS::Axis axis);
Generate collapsed versions of the plmask Report the number of chunks
|
inline |
Definition at line 129 of file PlotMSIndexer.h.
References nCumulative_.
|
inline |
Report per-chunk point counters.
Definition at line 128 of file PlotMSIndexer.h.
References nPoints_.
unsigned int casa::PlotMSIndexer::numBins | ( | ) | const |
PlotBinnedData methods.
|
inlinevirtual |
Returns whether to plot conjugate data (e.g.
UV plots)
Implements casa::PlotMaskedPointData.
Definition at line 181 of file PlotMSIndexer.h.
References casa::PMS::axisIsUV(), currentX_, and currentY_.
|
inlineprivate |
Report the reference time for this cache (in seconds)
|
private |
Reindex for connecting points.
void casa::PlotMSIndexer::reportMeta | ( | casacore::Double | x, |
casacore::Double | y, | ||
casacore::Bool | masked, | ||
std::stringstream & | ss | ||
) |
Report meta info for current value of currChunk_/irel_.
|
virtual |
Returns whether data is plotted in reverse order (right to left), needed when connecting points.
Implements casa::PlotMaskedPointData.
|
protected |
Set currChunk_ according to a supplied index.
bool casa::PlotMSIndexer::setConnect | ( | casacore::String | xconnect, |
bool | timeconnect | ||
) |
|
inlinevirtual |
Sets whether this object will delete its underlying data structures upon deconstruction or not.
Implements casa::PlotData.
Definition at line 85 of file PlotMSIndexer.h.
void casa::PlotMSIndexer::setGlobalMinMax | ( | casacore::Bool | globalX = false , |
casacore::Bool | globalY = false |
||
) |
Set global min/max flag.
|
private |
index for iteraxis
|
private |
get method for x and y axes depends on column
|
inlineprotected |
Definition at line 188 of file PlotMSIndexer.h.
References indexerReady_.
void casa::PlotMSIndexer::setUpIndexing | ( | ) |
Set up indexing for the plot.
|
virtual |
Implemented PlotPointData methods.
Implements casa::PlotPointData.
|
inlinevirtual |
Unimplemented PlotMaskedPointData methods.
Implements casa::PlotMaskedPointData.
Definition at line 106 of file PlotMSIndexer.h.
References sizeMasked_.
|
inlinevirtual |
Returns the number of unmasked points.
Implements casa::PlotMaskedPointData.
Definition at line 107 of file PlotMSIndexer.h.
References sizeUnMasked_.
|
virtual |
Gets the mins/maxes for just the unmasked points.
Implements casa::PlotMaskedPointData.
bool casa::PlotMSIndexer::unmaskedMinsMaxesRaw | ( | double & | xMin, |
double & | xMax, | ||
double & | yMin, | ||
double & | yMax | ||
) |
|
inlinevirtual |
Implemented PlotData methods.
Implements casa::PlotData.
Definition at line 84 of file PlotMSIndexer.h.
|
virtual |
IMPLEMENTED METHODS //.
Gets the x and y values at the given index. Default implementation just calls xAt and yAt, but in subclasses where performance could be gained, this method should be overridden. Implementations for plots that use PlotPointData should use this method by default in case there are performance gains.
Reimplemented from casa::PlotPointData.
Reimplemented in casa::PlotMSRaDecIndexer.
|
virtual |
Returns the x value at the given index.
Implements casa::PlotPointData.
Reimplemented in casa::PlotMSRaDecIndexer.
|
virtual |
IMPLEMENTED METHODS //.
Gets the x and y values and the mask at the given index. See PlotPointData::xAndYAt().
Reimplemented from casa::PlotMaskedPointData.
Reimplemented in casa::PlotMSRaDecIndexer.
|
virtual |
Returns the y value at the given index.
Implements casa::PlotPointData.
Reimplemented in casa::PlotMSRaDecIndexer.
|
friend |
Definition at line 75 of file PlotMSIndexer.h.
|
private |
Definition at line 279 of file PlotMSIndexer.h.
|
private |
Definition at line 279 of file PlotMSIndexer.h.
|
static |
Convenient access to class name.
Definition at line 59 of file PlotMSIndexer.h.
|
private |
Definition at line 260 of file PlotMSIndexer.h.
|
private |
Definition at line 284 of file PlotMSIndexer.h.
|
mutableprotected |
CollapseMethPtr collapseXMask_, collapseYMask_;.
The in-focus chunk and relative index offset
Definition at line 265 of file PlotMSIndexer.h.
|
private |
Current setup/state.
Definition at line 282 of file PlotMSIndexer.h.
Referenced by plotConjugates().
|
private |
Definition at line 283 of file PlotMSIndexer.h.
|
private |
Definition at line 282 of file PlotMSIndexer.h.
Referenced by plotConjugates().
|
private |
Definition at line 283 of file PlotMSIndexer.h.
|
mutableprivate |
Definition at line 278 of file PlotMSIndexer.h.
|
private |
Definition at line 323 of file PlotMSIndexer.h.
|
private |
map<chunk, decrease> : frequencies decrease with channel in chunk (for reverseConnect)
Definition at line 315 of file PlotMSIndexer.h.
|
private |
Definition at line 259 of file PlotMSIndexer.h.
|
private |
Pointers to methods for axis flexibility.
Definition at line 259 of file PlotMSIndexer.h.
|
private |
Definition at line 259 of file PlotMSIndexer.h.
|
private |
Definition at line 295 of file PlotMSIndexer.h.
|
private |
Definition at line 295 of file PlotMSIndexer.h.
|
private |
Definition at line 290 of file PlotMSIndexer.h.
Referenced by getIndex0001().
|
private |
Definition at line 287 of file PlotMSIndexer.h.
Referenced by getIndex0010().
|
private |
Definition at line 289 of file PlotMSIndexer.h.
Referenced by getIndex0110().
|
private |
Definition at line 287 of file PlotMSIndexer.h.
Referenced by getIndex0100().
|
private |
|
private |
Definition at line 287 of file PlotMSIndexer.h.
Referenced by getIndex1110().
|
private |
Definition at line 284 of file PlotMSIndexer.h.
Referenced by indexerReady(), and setReady().
|
mutableprotected |
Definition at line 265 of file PlotMSIndexer.h.
|
private |
Iteration.
Definition at line 299 of file PlotMSIndexer.h.
|
private |
Definition at line 300 of file PlotMSIndexer.h.
|
private |
Definition at line 301 of file PlotMSIndexer.h.
|
private |
Colorization.
Definition at line 306 of file PlotMSIndexer.h.
|
private |
Definition at line 307 of file PlotMSIndexer.h.
|
private |
Definition at line 312 of file PlotMSIndexer.h.
|
private |
Reindex and bin when connecting points.
Definition at line 311 of file PlotMSIndexer.h.
|
mutableprivate |
Definition at line 268 of file PlotMSIndexer.h.
|
private |
The cumulative running total of points.
Definition at line 274 of file PlotMSIndexer.h.
Referenced by nCumulative().
|
private |
Definition at line 279 of file PlotMSIndexer.h.
|
private |
Definition at line 288 of file PlotMSIndexer.h.
Referenced by getIndex0001().
|
private |
Definition at line 288 of file PlotMSIndexer.h.
Referenced by getIndex0010(), and getIndex1010().
|
private |
Definition at line 288 of file PlotMSIndexer.h.
Referenced by getIndex0100(), getIndex0110(), and getIndex1010().
|
private |
The number of points per chunk.
Definition at line 271 of file PlotMSIndexer.h.
Referenced by nPoints().
|
private |
Segment point-counting Vectors.
Definition at line 277 of file PlotMSIndexer.h.
|
private |
Definition at line 279 of file PlotMSIndexer.h.
|
private |
Private data.
Parent plotms.
Definition at line 256 of file PlotMSIndexer.h.
Referenced by getCache().
|
protected |
Cope with const-ness in the get methods.
Definition at line 319 of file PlotMSIndexer.h.
|
private |
Definition at line 294 of file PlotMSIndexer.h.
Referenced by sizeMasked().
|
private |
Definition at line 294 of file PlotMSIndexer.h.
Referenced by sizeUnmasked().
|
private |
Definition at line 293 of file PlotMSIndexer.h.
|
private |
Definition at line 293 of file PlotMSIndexer.h.
|
private |
Definition at line 260 of file PlotMSIndexer.h.
|
private |
Definition at line 293 of file PlotMSIndexer.h.
|
private |
Nominal axes limits.
Definition at line 293 of file PlotMSIndexer.h.
|
private |
Definition at line 293 of file PlotMSIndexer.h.
|
private |
Definition at line 293 of file PlotMSIndexer.h.
|
private |
Definition at line 260 of file PlotMSIndexer.h.
|
private |
Definition at line 293 of file PlotMSIndexer.h.
|
private |
Definition at line 293 of file PlotMSIndexer.h.