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

Class for a single "plot" concept. More...

#include <PlotMSPlot.h>

Inheritance diagram for casa::PlotMSPlot:
casa::PlotMSParametersWatcher

Classes

class  TCLParams
 Simple class to hold parameter to resume updating after a threaded cache loading. More...
 

Public Member Functions

void customizeAutoSymbol (const PlotSymbolPtr &baseSymbol, casacore::uInt dataSize)
 
void customizeOverlaySymbol (const PlotSymbolPtr &baseSymbol, casacore::uInt dataSize)
 
 PlotMSPlot (PlotMSApp *parent)
 Non-Static //. More...
 
 ~PlotMSPlot ()
 Destructor. More...
 
void resize (PlotMSPages &, casacore::uInt rows, casacore::uInt cols)
 
casacore::String name () const
 Returns a human-readable name for this plot. More...
 
casacore::String spectype () const
 Returns specialization Id for this plot. More...
 
std::vector< MaskedScatterPlotPtrplots () const
 Returns the plots assigned to this plot. More...
 
std::vector< PlotCanvasPtrcanvases () const
 Returns the canvases that have been assigned to this plot. More...
 
void attachToCanvases ()
 Attaches/Detaches internal plot objects to their assigned canvases. More...
 
void detachFromCanvases ()
 
casacore::Int iter ()
 
void dataMissing ()
 The cache load did not succeed so clear the plot and the cache. More...
 
void waitForDrawing (bool holdDrawing)
 This method was written because in scripting mode, there was a segfault when the grid size was changed (for example 2 x 3 to 1x1). More...
 
const PlotMSPlotParametersparameters () const
 Returns a reference to the plot's parameters. More...
 
PlotMSPlotParametersparameters ()
 
std::vector< PlotCanvasPtrvisibleCanvases () const
 Returns the visible canvases (accessible via PlotMSPlotter::currentCanvases()) associated with this plot. More...
 
virtual PlotMSRegions selectedRegions () const
 Returns all selected regions on all canvases associated with this plot. More...
 
PlotMSRegions visibleSelectedRegions () const
 PlotMSPlotter::currentCanvases()) associated with this plot. More...
 
bool initializePlot (PlotMSPages &pages)
 Initializes the plot with the given canvases. More...
 
PlotMSCacheBasecache ()
 Gets the plot's data source. More...
 
const PlotMSCacheBasecache () const
 
PlotMSAppparent ()
 Gets the plot's parent. More...
 
bool firstIter ()
 Steps the iteration. More...
 
bool prevIter ()
 
bool nextIter ()
 
bool lastIter ()
 
bool setIter (int index)
 
bool resetIter ()
 
void recalculateIteration ()
 
casacore::Int nIter ()
 
void parametersHaveChanged (const PlotMSWatchedParameters &params, int updateFlag)
 Implements PlotMSParametersWatcher::parametersHaveChanged(). More...
 
void plotDataChanged ()
 Calls the dataChanged() method on the MaskedScatterPlots. More...
 
bool isIteration () const
 Returns true if the plot is an iteration plot. More...
 
bool exportToFormat (const PlotExportFormat &format)
 Exports canvases associated with this plot to the given format. More...
 
void exportToFormatCancel ()
 
void cacheLoaded_ (bool wasCanceled)
 
void canvasWasDisowned (PlotCanvasPtr canvas)
 This method should be called when the given canvas (which was owned by this plot) was disowned. More...
 
std::vector< PMS::Axis > getCachedAxes ()
 
std::vector< PMS::DataColumn > getCachedData ()
 
casacore::Record locateInfo (int plotIterIndex, const casacore::Vector< PlotRegion > &regions, bool showUnflagged, bool showFlagged, bool selectAll) const
 
PlotLogMessagelocateRange (int plotIterIndex, const casacore::Vector< PlotRegion > &regions, bool showUnflagged, bool showFlagged)
 
PlotLogMessageflagRange (int canvasIndex, casa::PlotMSFlagging &flagging, const casacore::Vector< PlotRegion > &regions, bool showFlagged)
 
bool assignCanvases (PlotMSPages &pages)
 Generates and assigns canvases that this plot will be using, with the given PlotMSPages object. More...
 
void updateLocation ()
 
void clearCanvases ()
 Clear the title and axes from all this plots canvases. More...
 
bool isCacheUpdating () const
 Whether a thread is currently updating the cache. More...
 
void setCacheUpdating (bool updating)
 
void updatePlots ()
 
bool updateIndexing ()
 
void logPoints ()
 
void logIter (casacore::Int iter, casacore::Int nIter)
 
void setRelease (bool b)
 This was added so that in 'mixed mode', cacheloaded will trigger a redraw of the plot. More...
 
- Public Member Functions inherited from casa::PlotMSParametersWatcher
 PlotMSParametersWatcher ()
 Constructor. More...
 
virtual ~PlotMSParametersWatcher ()
 Destructor. More...
 

Static Public Member Functions

static PlotMSPlotParameters makeParameters (PlotMSApp *plotms)
 Static //. More...
 
static void makeParameters (PlotMSPlotParameters &params, PlotMSApp *plotms)
 Updates the given PlotMSPlotParameters to be suitable for use with this class, using the given PlotMS parent. More...
 
static void cacheLoaded (void *obj, bool wasCanceled)
 

Protected Member Functions

bool initializePlot ()
 Initializes any internal plot objects, but does NOT set parameters or attach to canvases. More...
 
bool parametersHaveChanged_ (const PlotMSWatchedParameters &params, int updateFlag, bool releaseWhenDone)
 Updates plot members for parameters specific to the child plot type. More...
 
PlotMSRegions selectedRegions (const std::vector< PlotCanvasPtr > &canvases) const
 Helper method for selectedRegions() and visibleSelectedRegions() that returns the selected regions for plots in the given canvases. More...
 
void constructorSetup ()
 
void updatePages ()
 
bool updateCache ()
 
bool updateCanvas ()
 
bool updateDisplay ()
 
void setColors ()
 
bool updateData ()
 Force data update by clearing the cache. More...
 
bool allDrawingHeld ()
 Returns true if drawing is currently being held on all plot canvases, false otherwise. More...
 
void holdDrawing ()
 Holds drawing on all plot canvases. More...
 
void releaseDrawing ()
 Releases drawing on all plot canvases, which will also cause a redraw. More...
 
int getPageIterationCount (const PlotMSPage &page)
 
void waitOnCanvases ()
 

Protected Attributes

PlotMSAppitsParent_
 MEMBERS //. More...
 
PlotFactoryPtr itsFactory_
 Plot factory for generating plot objects as needed. More...
 
PlotMSPlotParameters itsParams_
 Parameters. More...
 
PlotMSCacheBaseitsCache_
 Cache. More...
 
volatile bool cacheUpdating
 Used to determine if a thread is running to update the cache. More...
 

Private Member Functions

void waitOnCanvas (const PlotCanvasPtr &canvas)
 
 PlotMSPlot (const PlotMSPlot &copy)
 Disable copy constructor and operator for now. More...
 
PlotMSPlotoperator= (const PlotMSPlot &copy)
 
void resizePlots (int rows, int cols)
 Adjust the amount of plot data that this plot is holding. More...
 
void clearPlotData ()
 Clear data when deleting cache to prevent seg fault in other thread. More...
 
void getPlotSize (casacore::Int &rows, casacore::Int &cols)
 Return the dimensions of the plot data that this plot should hold. More...
 
int getIterationIndex (int r, int c, const PlotMSPage &page)
 Returns the iteration for the canvas located at row, r, and column, c. More...
 
void logMessage (const QString &msg) const
 Post a plot message to the logger. More...
 
void clearCanvasProperties (int row, int col)
 
void setCanvasProperties (PlotCanvasPtr canvas, int numplots, casacore::uInt iteration, PMS_PP_Axes *axesParams, PMS_PP_Cache *cacheParams, PMS_PP_Canvas *canvParams, PMS_PP_Iteration *iterParams, PMS_PP_MSData *dataParams, PMS_PP_Display *displayParams, int gridRow, int gridCol)
 
void setCommonAxes (std::vector< PMS_PP_Iteration * > &iterParams, PlotCanvasPtr canvas)
 Common canvas settings Share external axes for iterated plots. More...
 
int getCommonCacheType (std::vector< PMS_PP_MSData * > &dataParams)
 type is MS unless all CalTables More...
 
bool getCommonPolnRatio (std::vector< PMS_PP_MSData * > &dataParams)
 true if all plots have selected this polarization More...
 
void setXAxisProperties (PMS::Axis &xAxis, PMS::DataColumn &xColumn, PlotCanvasPtr canvas, std::vector< PMS_PP_Axes * > &axesParams, std::vector< PMS_PP_Cache * > &cacheParams, std::vector< PMS_PP_Canvas * > &canvParams, std::vector< PMS_PP_MSData * > &dataParams, std::vector< PMS_PP_Display * > &displayParams, std::vector< PlotMSPlot * > &plots, int commonCacheType, bool commonPolnRatio, int iteration, int defaultLabelFont)
 x-axis, ranges, labels More...
 
void setXAxis (PMS::Axis &xAxis, PMS::DataColumn &xColumn, PlotAxis &xPlotaxis, std::vector< PMS_PP_Axes * > &axesParams, std::vector< PMS_PP_Cache * > &cacheParams, std::vector< PMS_PP_MSData * > &dataParams, std::vector< PlotMSPlot * > &plots, int commonCacheType)
 
void setXAxisRange (PMS::Axis xAxis, PlotAxis xPlotAxis, PlotCanvasPtr canvas, std::vector< PMS_PP_Axes * > &axesParams, std::vector< PMS_PP_Cache * > &cacheParams, std::vector< PMS_PP_Display * > &displayParams, std::vector< PlotMSPlot * > &plots, int iteration)
 
void setXAxisLabel (PlotCanvasPtr canvas, PMS::Axis xAxis, PMS::DataColumn xColumn, PlotAxis xPlotAxis, std::vector< PMS_PP_Cache * > cacheParams, std::vector< PMS_PP_Canvas * > canvasParams, std::vector< PMS_PP_MSData * > dataParams, std::vector< PlotMSPlot * > &plots, int defaultFontSize, int commonCacheType, bool commonPolnRatio)
 
void setYAxesProperties (std::vector< PMS::Axis > &yAxes, std::vector< PMS::DataColumn > &yColumns, PlotCanvasPtr canvas, std::vector< PMS_PP_Axes * > &axesParams, std::vector< PMS_PP_Cache * > &cacheParams, std::vector< PMS_PP_Canvas * > &canvParams, std::vector< PMS_PP_MSData * > &dataParams, std::vector< PMS_PP_Display * > &displayParams, std::vector< PlotMSPlot * > &plots, int iteration, int defaultLabelFont)
 y-axis, ranges, labels More...
 
void setYAxes (std::vector< PMS::Axis > &yaxes, std::vector< PMS::DataColumn > &ycolumns, std::vector< PMS_PP_Cache * > &cacheParams, std::vector< PMS_PP_MSData * > &dataParams, std::vector< PlotMSPlot * > &plots)
 
void setYAxesRanges (PlotCanvasPtr canvas, std::vector< PMS_PP_Axes * > &axesParams, std::vector< PMS_PP_Cache * > &cacheParams, std::vector< PMS_PP_Display * > &displayParams, std::vector< PlotMSPlot * > &plots, int iteration)
 
void setYAxesLabels (PlotCanvasPtr canvas, std::vector< PMS::Axis > &yAxes, std::vector< PMS::DataColumn > &yColumns, std::vector< PMS_PP_Axes * > &axesParams, std::vector< PMS_PP_Cache * > &cacheParams, std::vector< PMS_PP_Canvas * > &canvasParams, std::vector< PMS_PP_MSData * > &dataParams, std::vector< PlotMSPlot * > &plots, int defaultFontSize)
 
void setTitleProperties (casacore::String &title, PlotCanvasPtr canvas, std::vector< PMS_PP_Canvas * > &canvasParams, std::vector< PMS_PP_Iteration * > &iterParams, std::vector< PlotMSPlot * > &plots, int defaultTitleFont, int iteration)
 title More...
 
void setSquareAxesRange (PlotCanvasPtr canvas)
 axis ranges for square plots More...
 
void getAxisBoundsForTime (double &min, double &max)
 specify axis ranges for certain axes More...
 
void getAxisBoundsForUV (double &min, double &max)
 
void getAxisBoundsForOverlay (double &min, double &max)
 
PMS::Axis getDefaultXAxis (int cachetype, casacore::String caltype)
 Validate or handle axes for MS/Cal. More...
 
PMS::Axis getGsplineAxis (const casacore::String filename)
 
PMS::Axis msDataAxisToCal (PMS::Axis inputAxis, casacore::String calType)
 
PMS::Axis calDataAxisToMS (PMS::Axis inputAxis)
 
void checkColoraxis (casacore::String caltype, PMS_PP_Display *display)
 
void checkIteraxis (casacore::String caltype, PMS_PP_Iteration *iter)
 
bool axisIsAveraged (PMS::Axis axis, PlotMSAveraging averaging)
 For axis labels and title. More...
 
void addAxisDescription (casacore::String &label, PMS::Axis axis, int commonCacheType, bool averaged)
 

Private Attributes

std::vector< std::vector
< MaskedScatterPlotPtr > > 
itsPlots_
 Note: First index for a plot is the dataCount, second index is the number of iteration. More...
 
std::vector< std::vector
< PlotCanvasPtr > > 
itsCanvases_
 Note: First index for a canvas is the number of rows, second index is the column within a grid for iterated plots. More...
 
std::vector< std::vector
< ColoredPlotPtr > > 
itsColoredPlots_
 
TCLParams itsTCLParams_
 
int gridRow
 
int gridCol
 
casacore::Int iter_
 
casacore::Int iterStep_
 

Static Private Attributes

static const casacore::uInt PIXEL_THRESHOLD
 
static const casacore::uInt MEDIUM_THRESHOLD
 
static const casacore::uInt LARGE_THRESHOLD
 
static const casacore::uInt XLARGE_THRESHOLD
 

Detailed Description

Class for a single "plot" concept.

Generally speaking this one plot handles one data source across potentially many scatter plots and canvases, separated by whatever criteria the subclasses decide on. The class PlotMSPlot handles interfacing with the rest of PlotMS and casacore::MS file and selection, and provides some useful members and methods for subclasses.

Definition at line 57 of file PlotMSPlot.h.

Constructor & Destructor Documentation

casa::PlotMSPlot::PlotMSPlot ( PlotMSApp parent)

Non-Static //.

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

casa::PlotMSPlot::~PlotMSPlot ( )

Destructor.

casa::PlotMSPlot::PlotMSPlot ( const PlotMSPlot copy)
private

Disable copy constructor and operator for now.

Member Function Documentation

void casa::PlotMSPlot::addAxisDescription ( casacore::String label,
PMS::Axis  axis,
int  commonCacheType,
bool  averaged 
)
private
bool casa::PlotMSPlot::allDrawingHeld ( )
protected

Returns true if drawing is currently being held on all plot canvases, false otherwise.

bool casa::PlotMSPlot::assignCanvases ( PlotMSPages pages)

Generates and assigns canvases that this plot will be using, with the given PlotMSPages object.

This is called when the plot is first created, and can be called by the plot itself if its canvas layout has changed (in which case this method should check for the canvases that have already been assigned to it in the page).

void casa::PlotMSPlot::attachToCanvases ( )

Attaches/Detaches internal plot objects to their assigned canvases.

bool casa::PlotMSPlot::axisIsAveraged ( PMS::Axis  axis,
PlotMSAveraging  averaging 
)
private

For axis labels and title.

PlotMSCacheBase& casa::PlotMSPlot::cache ( )
inline

Gets the plot's data source.

Definition at line 163 of file PlotMSPlot.h.

References itsCache_.

const PlotMSCacheBase& casa::PlotMSPlot::cache ( ) const
inline

Definition at line 164 of file PlotMSPlot.h.

References itsCache_.

static void casa::PlotMSPlot::cacheLoaded ( void *  obj,
bool  wasCanceled 
)
inlinestatic
void casa::PlotMSPlot::cacheLoaded_ ( bool  wasCanceled)

Referenced by cacheLoaded().

PMS::Axis casa::PlotMSPlot::calDataAxisToMS ( PMS::Axis  inputAxis)
private
std::vector<PlotCanvasPtr> casa::PlotMSPlot::canvases ( ) const

Returns the canvases that have been assigned to this plot.

void casa::PlotMSPlot::canvasWasDisowned ( PlotCanvasPtr  canvas)

This method should be called when the given canvas (which was owned by this plot) was disowned.

void casa::PlotMSPlot::checkColoraxis ( casacore::String  caltype,
PMS_PP_Display display 
)
private
void casa::PlotMSPlot::checkIteraxis ( casacore::String  caltype,
PMS_PP_Iteration iter 
)
private
void casa::PlotMSPlot::clearCanvases ( )

Clear the title and axes from all this plots canvases.

void casa::PlotMSPlot::clearCanvasProperties ( int  row,
int  col 
)
private
void casa::PlotMSPlot::clearPlotData ( )
private

Clear data when deleting cache to prevent seg fault in other thread.

void casa::PlotMSPlot::constructorSetup ( )
protected
void casa::PlotMSPlot::customizeAutoSymbol ( const PlotSymbolPtr baseSymbol,
casacore::uInt  dataSize 
)
void casa::PlotMSPlot::customizeOverlaySymbol ( const PlotSymbolPtr baseSymbol,
casacore::uInt  dataSize 
)
void casa::PlotMSPlot::dataMissing ( )

The cache load did not succeed so clear the plot and the cache.

void casa::PlotMSPlot::detachFromCanvases ( )
bool casa::PlotMSPlot::exportToFormat ( const PlotExportFormat format)

Exports canvases associated with this plot to the given format.

Exports to multiple files if the plot has more than one canvas.

void casa::PlotMSPlot::exportToFormatCancel ( )
bool casa::PlotMSPlot::firstIter ( )

Steps the iteration.

PlotLogMessage* casa::PlotMSPlot::flagRange ( int  canvasIndex,
casa::PlotMSFlagging flagging,
const casacore::Vector< PlotRegion > &  regions,
bool  showFlagged 
)
void casa::PlotMSPlot::getAxisBoundsForOverlay ( double &  min,
double &  max 
)
private
void casa::PlotMSPlot::getAxisBoundsForTime ( double &  min,
double &  max 
)
private

specify axis ranges for certain axes

void casa::PlotMSPlot::getAxisBoundsForUV ( double &  min,
double &  max 
)
private
std::vector<PMS::Axis> casa::PlotMSPlot::getCachedAxes ( )
std::vector<PMS::DataColumn> casa::PlotMSPlot::getCachedData ( )
int casa::PlotMSPlot::getCommonCacheType ( std::vector< PMS_PP_MSData * > &  dataParams)
private

type is MS unless all CalTables

bool casa::PlotMSPlot::getCommonPolnRatio ( std::vector< PMS_PP_MSData * > &  dataParams)
private

true if all plots have selected this polarization

PMS::Axis casa::PlotMSPlot::getDefaultXAxis ( int  cachetype,
casacore::String  caltype 
)
private

Validate or handle axes for MS/Cal.

PMS::Axis casa::PlotMSPlot::getGsplineAxis ( const casacore::String  filename)
private
int casa::PlotMSPlot::getIterationIndex ( int  r,
int  c,
const PlotMSPage page 
)
private

Returns the iteration for the canvas located at row, r, and column, c.

int casa::PlotMSPlot::getPageIterationCount ( const PlotMSPage page)
protected
void casa::PlotMSPlot::getPlotSize ( casacore::Int rows,
casacore::Int cols 
)
private

Return the dimensions of the plot data that this plot should hold.

void casa::PlotMSPlot::holdDrawing ( )
protected

Holds drawing on all plot canvases.

bool casa::PlotMSPlot::initializePlot ( PlotMSPages pages)

Initializes the plot with the given canvases.

Initializes any internal plot objects via the protected initializePlot() method, then assigns the plot objects to the canvases via the protected assignCanvases() method, then calls parametersUpdated() to properly set the plot. Drawing is held before these operations, and then released afterwards. Returns true if all operations succeeded; false if at least one failed.

bool casa::PlotMSPlot::initializePlot ( )
protected

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.

bool casa::PlotMSPlot::isCacheUpdating ( ) const

Whether a thread is currently updating the cache.

bool casa::PlotMSPlot::isIteration ( ) const

Returns true if the plot is an iteration plot.

casacore::Int casa::PlotMSPlot::iter ( )
inline

Definition at line 124 of file PlotMSPlot.h.

References iter_.

bool casa::PlotMSPlot::lastIter ( )
casacore::Record casa::PlotMSPlot::locateInfo ( int  plotIterIndex,
const casacore::Vector< PlotRegion > &  regions,
bool  showUnflagged,
bool  showFlagged,
bool  selectAll 
) const
PlotLogMessage* casa::PlotMSPlot::locateRange ( int  plotIterIndex,
const casacore::Vector< PlotRegion > &  regions,
bool  showUnflagged,
bool  showFlagged 
)
void casa::PlotMSPlot::logIter ( casacore::Int  iter,
casacore::Int  nIter 
)
void casa::PlotMSPlot::logMessage ( const QString &  msg) const
private

Post a plot message to the logger.

void casa::PlotMSPlot::logPoints ( )
static PlotMSPlotParameters casa::PlotMSPlot::makeParameters ( PlotMSApp plotms)
static

Static //.

Returns a new instance of PlotMSPlotParameters suitable for use with this class, using the given PlotMS parent.

static void casa::PlotMSPlot::makeParameters ( PlotMSPlotParameters params,
PlotMSApp plotms 
)
static

Updates the given PlotMSPlotParameters to be suitable for use with this class, using the given PlotMS parent.

PMS::Axis casa::PlotMSPlot::msDataAxisToCal ( PMS::Axis  inputAxis,
casacore::String  calType 
)
private
casacore::String casa::PlotMSPlot::name ( ) const

Returns a human-readable name for this plot.

Does not have to be unique.

bool casa::PlotMSPlot::nextIter ( )
casacore::Int casa::PlotMSPlot::nIter ( )
PlotMSPlot& casa::PlotMSPlot::operator= ( const PlotMSPlot copy)
private
const PlotMSPlotParameters& casa::PlotMSPlot::parameters ( ) const

Returns a reference to the plot's parameters.

PlotMSPlotParameters& casa::PlotMSPlot::parameters ( )
void casa::PlotMSPlot::parametersHaveChanged ( const PlotMSWatchedParameters params,
int  updateFlag 
)
virtual

Implements PlotMSParametersWatcher::parametersHaveChanged().

Updates the data parameters and then calls parametersHaveChanged_().

Implements casa::PlotMSParametersWatcher.

bool casa::PlotMSPlot::parametersHaveChanged_ ( const PlotMSWatchedParameters params,
int  updateFlag,
bool  releaseWhenDone 
)
protected

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.

PlotMSApp* casa::PlotMSPlot::parent ( )
inline

Gets the plot's parent.

Definition at line 168 of file PlotMSPlot.h.

References itsParent_.

void casa::PlotMSPlot::plotDataChanged ( )

Calls the dataChanged() method on the MaskedScatterPlots.

This WILL cause a redraw of the affected canvases.

std::vector<MaskedScatterPlotPtr> casa::PlotMSPlot::plots ( ) const

Returns the plots assigned to this plot.

bool casa::PlotMSPlot::prevIter ( )
void casa::PlotMSPlot::recalculateIteration ( )
void casa::PlotMSPlot::releaseDrawing ( )
protected

Releases drawing on all plot canvases, which will also cause a redraw.

bool casa::PlotMSPlot::resetIter ( )
void casa::PlotMSPlot::resize ( PlotMSPages ,
casacore::uInt  rows,
casacore::uInt  cols 
)
void casa::PlotMSPlot::resizePlots ( int  rows,
int  cols 
)
private

Adjust the amount of plot data that this plot is holding.

virtual PlotMSRegions casa::PlotMSPlot::selectedRegions ( ) const
virtual

Returns all selected regions on all canvases associated with this plot.

PlotMSRegions casa::PlotMSPlot::selectedRegions ( const std::vector< PlotCanvasPtr > &  canvases) const
protected

Helper method for selectedRegions() and visibleSelectedRegions() that returns the selected regions for plots in the given canvases.

void casa::PlotMSPlot::setCacheUpdating ( bool  updating)

Referenced by cacheLoaded().

void casa::PlotMSPlot::setCanvasProperties ( PlotCanvasPtr  canvas,
int  numplots,
casacore::uInt  iteration,
PMS_PP_Axes axesParams,
PMS_PP_Cache cacheParams,
PMS_PP_Canvas canvParams,
PMS_PP_Iteration iterParams,
PMS_PP_MSData dataParams,
PMS_PP_Display displayParams,
int  gridRow,
int  gridCol 
)
private
void casa::PlotMSPlot::setColors ( )
protected
void casa::PlotMSPlot::setCommonAxes ( std::vector< PMS_PP_Iteration * > &  iterParams,
PlotCanvasPtr  canvas 
)
private

Common canvas settings Share external axes for iterated plots.

bool casa::PlotMSPlot::setIter ( int  index)
void casa::PlotMSPlot::setRelease ( bool  b)

This was added so that in 'mixed mode', cacheloaded will trigger a redraw of the plot.

void casa::PlotMSPlot::setSquareAxesRange ( PlotCanvasPtr  canvas)
private

axis ranges for square plots

void casa::PlotMSPlot::setTitleProperties ( casacore::String title,
PlotCanvasPtr  canvas,
std::vector< PMS_PP_Canvas * > &  canvasParams,
std::vector< PMS_PP_Iteration * > &  iterParams,
std::vector< PlotMSPlot * > &  plots,
int  defaultTitleFont,
int  iteration 
)
private

title

void casa::PlotMSPlot::setXAxis ( PMS::Axis &  xAxis,
PMS::DataColumn &  xColumn,
PlotAxis xPlotaxis,
std::vector< PMS_PP_Axes * > &  axesParams,
std::vector< PMS_PP_Cache * > &  cacheParams,
std::vector< PMS_PP_MSData * > &  dataParams,
std::vector< PlotMSPlot * > &  plots,
int  commonCacheType 
)
private
void casa::PlotMSPlot::setXAxisLabel ( PlotCanvasPtr  canvas,
PMS::Axis  xAxis,
PMS::DataColumn  xColumn,
PlotAxis  xPlotAxis,
std::vector< PMS_PP_Cache * >  cacheParams,
std::vector< PMS_PP_Canvas * >  canvasParams,
std::vector< PMS_PP_MSData * >  dataParams,
std::vector< PlotMSPlot * > &  plots,
int  defaultFontSize,
int  commonCacheType,
bool  commonPolnRatio 
)
private
void casa::PlotMSPlot::setXAxisProperties ( PMS::Axis &  xAxis,
PMS::DataColumn &  xColumn,
PlotCanvasPtr  canvas,
std::vector< PMS_PP_Axes * > &  axesParams,
std::vector< PMS_PP_Cache * > &  cacheParams,
std::vector< PMS_PP_Canvas * > &  canvParams,
std::vector< PMS_PP_MSData * > &  dataParams,
std::vector< PMS_PP_Display * > &  displayParams,
std::vector< PlotMSPlot * > &  plots,
int  commonCacheType,
bool  commonPolnRatio,
int  iteration,
int  defaultLabelFont 
)
private

x-axis, ranges, labels

void casa::PlotMSPlot::setXAxisRange ( PMS::Axis  xAxis,
PlotAxis  xPlotAxis,
PlotCanvasPtr  canvas,
std::vector< PMS_PP_Axes * > &  axesParams,
std::vector< PMS_PP_Cache * > &  cacheParams,
std::vector< PMS_PP_Display * > &  displayParams,
std::vector< PlotMSPlot * > &  plots,
int  iteration 
)
private
void casa::PlotMSPlot::setYAxes ( std::vector< PMS::Axis > &  yaxes,
std::vector< PMS::DataColumn > &  ycolumns,
std::vector< PMS_PP_Cache * > &  cacheParams,
std::vector< PMS_PP_MSData * > &  dataParams,
std::vector< PlotMSPlot * > &  plots 
)
private
void casa::PlotMSPlot::setYAxesLabels ( PlotCanvasPtr  canvas,
std::vector< PMS::Axis > &  yAxes,
std::vector< PMS::DataColumn > &  yColumns,
std::vector< PMS_PP_Axes * > &  axesParams,
std::vector< PMS_PP_Cache * > &  cacheParams,
std::vector< PMS_PP_Canvas * > &  canvasParams,
std::vector< PMS_PP_MSData * > &  dataParams,
std::vector< PlotMSPlot * > &  plots,
int  defaultFontSize 
)
private
void casa::PlotMSPlot::setYAxesProperties ( std::vector< PMS::Axis > &  yAxes,
std::vector< PMS::DataColumn > &  yColumns,
PlotCanvasPtr  canvas,
std::vector< PMS_PP_Axes * > &  axesParams,
std::vector< PMS_PP_Cache * > &  cacheParams,
std::vector< PMS_PP_Canvas * > &  canvParams,
std::vector< PMS_PP_MSData * > &  dataParams,
std::vector< PMS_PP_Display * > &  displayParams,
std::vector< PlotMSPlot * > &  plots,
int  iteration,
int  defaultLabelFont 
)
private

y-axis, ranges, labels

void casa::PlotMSPlot::setYAxesRanges ( PlotCanvasPtr  canvas,
std::vector< PMS_PP_Axes * > &  axesParams,
std::vector< PMS_PP_Cache * > &  cacheParams,
std::vector< PMS_PP_Display * > &  displayParams,
std::vector< PlotMSPlot * > &  plots,
int  iteration 
)
private
casacore::String casa::PlotMSPlot::spectype ( ) const
inline

Returns specialization Id for this plot.

Definition at line 112 of file PlotMSPlot.h.

bool casa::PlotMSPlot::updateCache ( )
protected
bool casa::PlotMSPlot::updateCanvas ( )
protected
bool casa::PlotMSPlot::updateData ( )
protected

Force data update by clearing the cache.

bool casa::PlotMSPlot::updateDisplay ( )
protected
bool casa::PlotMSPlot::updateIndexing ( )
void casa::PlotMSPlot::updateLocation ( )
void casa::PlotMSPlot::updatePages ( )
protected
void casa::PlotMSPlot::updatePlots ( )
std::vector<PlotCanvasPtr> casa::PlotMSPlot::visibleCanvases ( ) const

Returns the visible canvases (accessible via PlotMSPlotter::currentCanvases()) associated with this plot.

PlotMSRegions casa::PlotMSPlot::visibleSelectedRegions ( ) const

PlotMSPlotter::currentCanvases()) associated with this plot.

void casa::PlotMSPlot::waitForDrawing ( bool  holdDrawing)

This method was written because in scripting mode, there was a segfault when the grid size was changed (for example 2 x 3 to 1x1).

It was in a draw thread that had stale data it was touching after its associated canvas was deleted. The purpose of the method is to wait for the draw threads to finish and then keep them from redrawing while the deletion is in progress.

void casa::PlotMSPlot::waitOnCanvas ( const PlotCanvasPtr canvas)
private
void casa::PlotMSPlot::waitOnCanvases ( )
protected

Member Data Documentation

volatile bool casa::PlotMSPlot::cacheUpdating
protected

Used to determine if a thread is running to update the cache.

Definition at line 308 of file PlotMSPlot.h.

int casa::PlotMSPlot::gridCol
private

Definition at line 458 of file PlotMSPlot.h.

int casa::PlotMSPlot::gridRow
private

Definition at line 457 of file PlotMSPlot.h.

casacore::Int casa::PlotMSPlot::iter_
private

Definition at line 460 of file PlotMSPlot.h.

Referenced by iter().

casacore::Int casa::PlotMSPlot::iterStep_
private

Definition at line 461 of file PlotMSPlot.h.

PlotMSCacheBase* casa::PlotMSPlot::itsCache_
protected

Cache.

Definition at line 305 of file PlotMSPlot.h.

Referenced by cache().

std::vector<std::vector<PlotCanvasPtr> > casa::PlotMSPlot::itsCanvases_
private

Note: First index for a canvas is the number of rows, second index is the column within a grid for iterated plots.

Definition at line 453 of file PlotMSPlot.h.

std::vector<std::vector<ColoredPlotPtr> > casa::PlotMSPlot::itsColoredPlots_
private

Definition at line 455 of file PlotMSPlot.h.

PlotFactoryPtr casa::PlotMSPlot::itsFactory_
protected

Plot factory for generating plot objects as needed.

Definition at line 299 of file PlotMSPlot.h.

PlotMSPlotParameters casa::PlotMSPlot::itsParams_
protected

Parameters.

Definition at line 302 of file PlotMSPlot.h.

PlotMSApp* casa::PlotMSPlot::itsParent_
protected

MEMBERS //.

PlotMS parent.

Definition at line 296 of file PlotMSPlot.h.

Referenced by cacheLoaded(), and parent().

std::vector<std::vector<MaskedScatterPlotPtr> > casa::PlotMSPlot::itsPlots_
private

Note: First index for a plot is the dataCount, second index is the number of iteration.

Definition at line 449 of file PlotMSPlot.h.

TCLParams casa::PlotMSPlot::itsTCLParams_
private

Definition at line 456 of file PlotMSPlot.h.

const casacore::uInt casa::PlotMSPlot::LARGE_THRESHOLD
staticprivate

Definition at line 465 of file PlotMSPlot.h.

const casacore::uInt casa::PlotMSPlot::MEDIUM_THRESHOLD
staticprivate

Definition at line 464 of file PlotMSPlot.h.

const casacore::uInt casa::PlotMSPlot::PIXEL_THRESHOLD
staticprivate

Definition at line 463 of file PlotMSPlot.h.

const casacore::uInt casa::PlotMSPlot::XLARGE_THRESHOLD
staticprivate

Definition at line 466 of file PlotMSPlot.h.


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