casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Types | Public Member Functions | Static Public Attributes | Private Attributes | List of all members
casa::PlotMSRaDecIndexer Class Reference

#include <PlotMSIndexer.h>

Inheritance diagram for casa::PlotMSRaDecIndexer:
casa::PlotMSIndexer casa::PlotMaskedPointData casa::PlotPointData casa::PlotData

Public Types

using RaDecData = casacore::PtrBlock< casacore::Vector< casacore::Double > * >
 
using RaDecMap = std::map< DirectionAxisParams, RaDecData >
 

Public Member Functions

 PlotMSRaDecIndexer ()
 Empty Indexer. More...
 
 PlotMSRaDecIndexer (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 takes parent PlotMSCache, x and y axes (non-iteration)

PlotMSRaDecIndexer(PlotMSCacheBase* plotmscache, PMS::Axis xAxis, PMS::DataColumn xData, PMS::Axis yAxis, PMS::DataColumn yData, int index) : PlotMSIndexer(plotmscache, xAxis,xData,yAxis,yData,index) {} More...

 
 ~PlotMSRaDecIndexer ()
 Destructor. More...
 
double xAt (unsigned int i) const
 Overridden PlotPointData methods. More...
 
double yAt (unsigned int i) const
 Returns the y value at the given index. More...
 
void xAndYAt (unsigned int index, double &x, double &y) const
 IMPLEMENTED METHODS //. More...
 
void xyAndMaskAt (unsigned int index, double &x, double &y, bool &mask) const
 IMPLEMENTED METHODS //. More...
 
casacore::Double getRaX (casacore::Int chnk, casacore::Int irel) const
 
casacore::Double getRaY (casacore::Int chnk, casacore::Int irel) const
 
casacore::Double getDecX (casacore::Int chnk, casacore::Int irel) const
 
casacore::Double getDecY (casacore::Int chnk, casacore::Int irel) const
 
- Public Member Functions inherited from casa::PlotMSIndexer
 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...
 
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...
 
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::uIntnPoints ()
 Report per-chunk point counters. More...
 
casacore::Vector< casacore::uIntnCumulative ()
 
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 > &regions, casacore::Bool showUnflagged, casacore::Bool showFlagged, casacore::Bool selectAll=true)
 
PlotLogMessagelocateRange (const casacore::Vector< PlotRegion > &regions, casacore::Bool showUnflagged, casacore::Bool showFlagged)
 
PlotLogMessageflagRange (const PlotMSFlagging &flagging, const casacore::Vector< PlotRegion > &regions, 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...
 
static const RaDecData EMPTY_DATA
 
- Static Public Attributes inherited from casa::PlotMSIndexer
static const casacore::String CLASS_NAME
 Convenient access to class name. More...
 

Private Attributes

const bool cacheOk_
 
const bool axesOk_
 
const bool xAxisIsRa_
 
const bool xAxisIsDec_
 
const bool xAxisIsRaOrDec_
 
const bool yAxisIsRa_
 
const bool yAxisIsDec_
 
const bool yAxisIsRaOrDec_
 
const RaDecDataxRa_
 
const RaDecDataxDec_
 
const RaDecDatayRa_
 
const RaDecDatayDec_
 

Additional Inherited Members

- Protected Member Functions inherited from casa::PlotMSIndexer
 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...
 
PlotMSCacheBasegetCache ()
 
void setChunk (casacore::uInt i, bool ignoreReindex=false) const
 Set currChunk_ according to a supplied index. More...
 
void setReady (bool isReady=true)
 
- Protected Attributes inherited from casa::PlotMSIndexer
casacore::Int currChunk_
 CollapseMethPtr collapseXMask_, collapseYMask_;. More...
 
casacore::Int irel_
 
PlotMSIndexerself
 Cope with const-ness in the get methods. More...
 

Detailed Description

Definition at line 329 of file PlotMSIndexer.h.

Member Typedef Documentation

Definition at line 336 of file PlotMSIndexer.h.

Definition at line 337 of file PlotMSIndexer.h.

Constructor & Destructor Documentation

casa::PlotMSRaDecIndexer::PlotMSRaDecIndexer ( )

Empty Indexer.

casa::PlotMSRaDecIndexer::PlotMSRaDecIndexer ( 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 takes parent PlotMSCache, x and y axes (non-iteration)

PlotMSRaDecIndexer(PlotMSCacheBase* plotmscache, PMS::Axis xAxis, PMS::DataColumn xData, PMS::Axis yAxis, PMS::DataColumn yData, int index) : PlotMSIndexer(plotmscache, xAxis,xData,yAxis,yData,index) {}

Constructor which supports iteration

casa::PlotMSRaDecIndexer::~PlotMSRaDecIndexer ( )
inline

Destructor.

Definition at line 356 of file PlotMSIndexer.h.

Member Function Documentation

casacore::Double casa::PlotMSRaDecIndexer::getDecX ( casacore::Int  chnk,
casacore::Int  irel 
) const
inline

Definition at line 373 of file PlotMSIndexer.h.

References xDec_.

casacore::Double casa::PlotMSRaDecIndexer::getDecY ( casacore::Int  chnk,
casacore::Int  irel 
) const
inline

Definition at line 376 of file PlotMSIndexer.h.

References yDec_.

casacore::Double casa::PlotMSRaDecIndexer::getRaX ( casacore::Int  chnk,
casacore::Int  irel 
) const
inline

Definition at line 367 of file PlotMSIndexer.h.

References xRa_.

casacore::Double casa::PlotMSRaDecIndexer::getRaY ( casacore::Int  chnk,
casacore::Int  irel 
) const
inline

Definition at line 370 of file PlotMSIndexer.h.

References yRa_.

void casa::PlotMSRaDecIndexer::xAndYAt ( unsigned int  index,
double &  x,
double &  y 
) const
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::PlotMSIndexer.

double casa::PlotMSRaDecIndexer::xAt ( unsigned int  i) const
virtual

Overridden PlotPointData methods.

Reimplemented from casa::PlotMSIndexer.

void casa::PlotMSRaDecIndexer::xyAndMaskAt ( unsigned int  index,
double &  x,
double &  y,
bool &  mask 
) const
virtual

IMPLEMENTED METHODS //.

Gets the x and y values and the mask at the given index. See PlotPointData::xAndYAt().

Reimplemented from casa::PlotMSIndexer.

double casa::PlotMSRaDecIndexer::yAt ( unsigned int  i) const
virtual

Returns the y value at the given index.

Reimplemented from casa::PlotMSIndexer.

Member Data Documentation

const bool casa::PlotMSRaDecIndexer::axesOk_
private

Definition at line 384 of file PlotMSIndexer.h.

const bool casa::PlotMSRaDecIndexer::cacheOk_
private

Definition at line 383 of file PlotMSIndexer.h.

const casacore::String casa::PlotMSRaDecIndexer::CLASS_NAME
static

Convenient access to class name.

Definition at line 334 of file PlotMSIndexer.h.

const RaDecData casa::PlotMSRaDecIndexer::EMPTY_DATA
static

Definition at line 339 of file PlotMSIndexer.h.

const bool casa::PlotMSRaDecIndexer::xAxisIsDec_
private

Definition at line 386 of file PlotMSIndexer.h.

const bool casa::PlotMSRaDecIndexer::xAxisIsRa_
private

Definition at line 385 of file PlotMSIndexer.h.

const bool casa::PlotMSRaDecIndexer::xAxisIsRaOrDec_
private

Definition at line 387 of file PlotMSIndexer.h.

const RaDecData& casa::PlotMSRaDecIndexer::xDec_
private

Definition at line 393 of file PlotMSIndexer.h.

Referenced by getDecX().

const RaDecData& casa::PlotMSRaDecIndexer::xRa_
private

Definition at line 392 of file PlotMSIndexer.h.

Referenced by getRaX().

const bool casa::PlotMSRaDecIndexer::yAxisIsDec_
private

Definition at line 389 of file PlotMSIndexer.h.

const bool casa::PlotMSRaDecIndexer::yAxisIsRa_
private

Definition at line 388 of file PlotMSIndexer.h.

const bool casa::PlotMSRaDecIndexer::yAxisIsRaOrDec_
private

Definition at line 390 of file PlotMSIndexer.h.

const RaDecData& casa::PlotMSRaDecIndexer::yDec_
private

Definition at line 396 of file PlotMSIndexer.h.

Referenced by getDecY().

const RaDecData& casa::PlotMSRaDecIndexer::yRa_
private

Definition at line 395 of file PlotMSIndexer.h.

Referenced by getRaY().


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