Subclass of PlotMSTab that manages PlotMSPlots in the GUI. More...
#include <PlotMSPlotTab.qo.h>
Public Slots | |
bool | plot (bool forceReload) |
Slot for doing the plot, using the parameters set on the GUI for the current plot. | |
Public Member Functions | |
PlotMSPlotTab (PlotMSPlotter *parent, int plotIndex=-1) | |
Constructor which takes the parent plotter. | |
~PlotMSPlotTab () | |
Destructor. | |
QString | tabName () const |
Implements PlotMSTab::tabName(). | |
QList< QToolButton * > | toolButtons () const |
Overrides PlotMSTab::toolButtons(). | |
void | parametersHaveChanged (const PlotMSWatchedParameters ¶ms, int updateFlag) |
Implements PlotMSParametersWatcher::parametersHaveChanged(). | |
void | plotsChanged (const PlotMSPlotManager &manager, int index=-1, bool show=true) |
Implements PlotMSPlotManagerWatcher::plotsChanged(). | |
PlotMSDataTab * | getData () |
Return the data to support overplots. | |
String | getFileName () const |
String | getAveragingSummary () const |
PlotMSPlot * | currentPlot () const |
Returns the currently selected plot. | |
PlotMSPlotParameters | currentlySetParameters () const |
Returns the parameters currently set by the user on the GUI (but NOT necessarily set on the underlying plot parameters). | |
vector< PMS::Axis > | selectedLoadAxes () const |
Returns the axes that the user has selected to load into the cache. | |
vector< PMS::Axis > | selectedReleaseAxes () const |
Returns the axes that the user has selected to release from the cache. | |
bool | setGridSize (int rowCount, int colCount) |
Returns true if the location of this plot is still valid after the grid size has changed; false otherwise. | |
void | getLocation (Int &rowIndex, Int &colIndex) |
Return the location on the grid for this plot. | |
void | removePlot () |
Remove this plot. | |
bool | isPlottable () const |
Returns whether this plot has a valid location on the page where it can be displayed. | |
void | completePlotting (bool success) |
This was put in to support overplotting. | |
void | clearData () |
Remove old data from the plot. | |
bool | managesPlot (PlotMSPlot *plot) const |
Protected Member Functions | |
void | clearSubtabs () |
Clears set subtabs. | |
void | clearAfter (int index) |
Clears set subtabs after (and including) the given index. | |
void | addSubtab (PlotMSPlotSubtab *tab) |
Adds the given subtab to the end of the tab widget. | |
void | insertSubtab (int index, PlotMSPlotSubtab *tab) |
Inserts the given subtab in the tab widget. | |
PlotMSAxesTab * | addAxesSubtab () |
Inserts one of the known subtab types if it is not already present, and returns a pointer to it. | |
PlotMSAxesTab * | insertAxesSubtab (int index) |
void | insertAxes (int index) |
PlotMSCacheTab * | addCacheSubtab () |
PlotMSCacheTab * | insertCacheSubtab (int index) |
void | insertCache (int index) |
PlotMSCalibrationTab * | addCalibrationSubtab () |
PlotMSCalibrationTab * | insertCalibrationSubtab (int index) |
void | insertCalibration (int index) |
PlotMSCanvasTab * | addCanvasSubtab () |
PlotMSCanvasTab * | insertCanvasSubtab (int index) |
void | insertCanvas (int index) |
PlotMSDataTab * | addDataSubtab () |
PlotMSDataTab * | insertDataSubtab (int index) |
void | insertData (int index) |
PlotMSDisplayTab * | addDisplaySubtab () |
PlotMSDisplayTab * | insertDisplaySubtab (int index) |
void | insertDisplay (int index) |
PlotMSIterateTab * | addIterateSubtab () |
PlotMSIterateTab * | insertIterateSubtab (int index) |
void | insertIterate (int index) |
PlotMSTransformationsTab * | addTransformationsSubtab () |
PlotMSTransformationsTab * | insertTransformationsSubtab (int index) |
void | insertTransformations (int index) |
template<class T > | |
T * | subtab () |
Returns the first subtab with the given type, or NULL if there are none of that type. | |
Private Slots | |
void | tabChanged () |
Slot for when the user changes the value for any parameters. | |
void | changeAxisIdentifier (int index, QString id) |
A y-axis has changed its internal data. | |
void | removeAxisIdentifier (int index) |
y-axis data has been removed. | |
Private Member Functions | |
PlotMSDataTab * | findOrCreateDataTab () |
PlotMSIterateTab * | findIterateTab () const |
PlotMSDisplayTab * | findDisplayTab () |
PlotMSAxesTab * | findAxesTab () |
void | setupForPlot () |
Sets up the GUI to display the parameters for the given plot. | |
vector< PMS::Axis > | selectedLoadOrReleaseAxes (bool load) const |
Returns the axes the user has selected to load or release, depending on the load flag. | |
Private Attributes | |
QList< PlotMSPlotSubtab * > | itsSubtabs_ |
PlotMSPlotSubtab objects in tab widget. | |
PlotMSPlotManager & | itsPlotManager_ |
Reference to plot manager. | |
PlotMSPlot * | itsCurrentPlot_ |
Currently selected plot. | |
PlotMSPlotParameters * | itsCurrentParameters_ |
Parameters for the currently selected plot. | |
bool | itsUpdateFlag_ |
Whether or not to check for changed parameters and update the GUI accordingly. | |
bool | closing |
int | plotIndex |
int | forceReloadCounter_ |
Friends | |
class | PlotMSPlot |
class | PlotMSPlotter |
Subclass of PlotMSTab that manages PlotMSPlots in the GUI.
Watches the current PlotMSPlot's parameters for changes to update the GUI as needed and watches the PlotMSPlotManager for changes to the plots.
Definition at line 100 of file PlotMSPlotTab.qo.h.
casa::PlotMSPlotTab::PlotMSPlotTab | ( | PlotMSPlotter * | parent, | |
int | plotIndex = -1 | |||
) |
Constructor which takes the parent plotter.
casa::PlotMSPlotTab::~PlotMSPlotTab | ( | ) |
Destructor.
PlotMSAxesTab* casa::PlotMSPlotTab::addAxesSubtab | ( | ) | [protected] |
Inserts one of the known subtab types if it is not already present, and returns a pointer to it.
PlotMSCacheTab* casa::PlotMSPlotTab::addCacheSubtab | ( | ) | [protected] |
PlotMSCalibrationTab* casa::PlotMSPlotTab::addCalibrationSubtab | ( | ) | [protected] |
PlotMSCanvasTab* casa::PlotMSPlotTab::addCanvasSubtab | ( | ) | [protected] |
PlotMSDataTab* casa::PlotMSPlotTab::addDataSubtab | ( | ) | [protected] |
PlotMSDisplayTab* casa::PlotMSPlotTab::addDisplaySubtab | ( | ) | [protected] |
PlotMSIterateTab* casa::PlotMSPlotTab::addIterateSubtab | ( | ) | [protected] |
void casa::PlotMSPlotTab::addSubtab | ( | PlotMSPlotSubtab * | tab | ) | [protected] |
Adds the given subtab to the end of the tab widget.
PlotMSTransformationsTab* casa::PlotMSPlotTab::addTransformationsSubtab | ( | ) | [protected] |
void casa::PlotMSPlotTab::changeAxisIdentifier | ( | int | index, | |
QString | id | |||
) | [private, slot] |
A y-axis has changed its internal data.
void casa::PlotMSPlotTab::clearAfter | ( | int | index | ) | [protected] |
Clears set subtabs after (and including) the given index.
void casa::PlotMSPlotTab::clearData | ( | ) |
Remove old data from the plot.
void casa::PlotMSPlotTab::clearSubtabs | ( | ) | [protected] |
Clears set subtabs.
void casa::PlotMSPlotTab::completePlotting | ( | bool | success | ) |
This was put in to support overplotting.
When two plots are sharing the same canvas, we don't want to trigger a redraw until all the plots sharing the same canvas are done updating their data in background threads.
PlotMSPlotParameters casa::PlotMSPlotTab::currentlySetParameters | ( | ) | const |
Returns the parameters currently set by the user on the GUI (but NOT necessarily set on the underlying plot parameters).
PlotMSPlot* casa::PlotMSPlotTab::currentPlot | ( | ) | const |
Returns the currently selected plot.
PlotMSAxesTab* casa::PlotMSPlotTab::findAxesTab | ( | ) | [private] |
PlotMSDisplayTab* casa::PlotMSPlotTab::findDisplayTab | ( | ) | [private] |
PlotMSIterateTab* casa::PlotMSPlotTab::findIterateTab | ( | ) | const [private] |
PlotMSDataTab* casa::PlotMSPlotTab::findOrCreateDataTab | ( | ) | [private] |
String casa::PlotMSPlotTab::getAveragingSummary | ( | ) | const |
PlotMSDataTab* casa::PlotMSPlotTab::getData | ( | ) |
Return the data to support overplots.
String casa::PlotMSPlotTab::getFileName | ( | ) | const |
void casa::PlotMSPlotTab::getLocation | ( | Int & | rowIndex, | |
Int & | colIndex | |||
) |
Return the location on the grid for this plot.
void casa::PlotMSPlotTab::insertAxes | ( | int | index | ) | [protected] |
PlotMSAxesTab* casa::PlotMSPlotTab::insertAxesSubtab | ( | int | index | ) | [protected] |
void casa::PlotMSPlotTab::insertCache | ( | int | index | ) | [protected] |
PlotMSCacheTab* casa::PlotMSPlotTab::insertCacheSubtab | ( | int | index | ) | [protected] |
void casa::PlotMSPlotTab::insertCalibration | ( | int | index | ) | [protected] |
PlotMSCalibrationTab* casa::PlotMSPlotTab::insertCalibrationSubtab | ( | int | index | ) | [protected] |
void casa::PlotMSPlotTab::insertCanvas | ( | int | index | ) | [protected] |
PlotMSCanvasTab* casa::PlotMSPlotTab::insertCanvasSubtab | ( | int | index | ) | [protected] |
void casa::PlotMSPlotTab::insertData | ( | int | index | ) | [protected] |
PlotMSDataTab* casa::PlotMSPlotTab::insertDataSubtab | ( | int | index | ) | [protected] |
void casa::PlotMSPlotTab::insertDisplay | ( | int | index | ) | [protected] |
PlotMSDisplayTab* casa::PlotMSPlotTab::insertDisplaySubtab | ( | int | index | ) | [protected] |
void casa::PlotMSPlotTab::insertIterate | ( | int | index | ) | [protected] |
PlotMSIterateTab* casa::PlotMSPlotTab::insertIterateSubtab | ( | int | index | ) | [protected] |
void casa::PlotMSPlotTab::insertSubtab | ( | int | index, | |
PlotMSPlotSubtab * | tab | |||
) | [protected] |
Inserts the given subtab in the tab widget.
void casa::PlotMSPlotTab::insertTransformations | ( | int | index | ) | [protected] |
PlotMSTransformationsTab* casa::PlotMSPlotTab::insertTransformationsSubtab | ( | int | index | ) | [protected] |
bool casa::PlotMSPlotTab::isPlottable | ( | ) | const |
Returns whether this plot has a valid location on the page where it can be displayed.
bool casa::PlotMSPlotTab::managesPlot | ( | PlotMSPlot * | plot | ) | const |
void casa::PlotMSPlotTab::parametersHaveChanged | ( | const PlotMSWatchedParameters & | params, | |
int | updateFlag | |||
) | [virtual] |
Implements PlotMSParametersWatcher::parametersHaveChanged().
Updates the GUI as needed if the given parameters are the current PlotMSPlot's parameters.
Implements casa::PlotMSParametersWatcher.
bool casa::PlotMSPlotTab::plot | ( | bool | forceReload | ) | [slot] |
Slot for doing the plot, using the parameters set on the GUI for the current plot.
void casa::PlotMSPlotTab::plotsChanged | ( | const PlotMSPlotManager & | manager, | |
int | index = -1 , |
|||
bool | show = true | |||
) |
Implements PlotMSPlotManagerWatcher::plotsChanged().
void casa::PlotMSPlotTab::removeAxisIdentifier | ( | int | index | ) | [private, slot] |
y-axis data has been removed.
void casa::PlotMSPlotTab::removePlot | ( | ) |
Remove this plot.
vector<PMS::Axis> casa::PlotMSPlotTab::selectedLoadAxes | ( | ) | const [inline] |
Returns the axes that the user has selected to load into the cache.
Definition at line 147 of file PlotMSPlotTab.qo.h.
References selectedLoadOrReleaseAxes().
vector<PMS::Axis> casa::PlotMSPlotTab::selectedLoadOrReleaseAxes | ( | bool | load | ) | const [private] |
Returns the axes the user has selected to load or release, depending on the load flag.
Referenced by selectedLoadAxes(), and selectedReleaseAxes().
vector<PMS::Axis> casa::PlotMSPlotTab::selectedReleaseAxes | ( | ) | const [inline] |
Returns the axes that the user has selected to release from the cache.
Definition at line 152 of file PlotMSPlotTab.qo.h.
References selectedLoadOrReleaseAxes().
bool casa::PlotMSPlotTab::setGridSize | ( | int | rowCount, | |
int | colCount | |||
) |
Returns true if the location of this plot is still valid after the grid size has changed; false otherwise.
void casa::PlotMSPlotTab::setupForPlot | ( | ) | [private] |
Sets up the GUI to display the parameters for the given plot.
T* casa::PlotMSPlotTab::subtab | ( | ) | [inline, protected] |
Returns the first subtab with the given type, or NULL if there are none of that type.
Definition at line 233 of file PlotMSPlotTab.qo.h.
References itsSubtabs_.
void casa::PlotMSPlotTab::tabChanged | ( | ) | [private, slot] |
Slot for when the user changes the value for any parameters.
Updates the GUI to show which parameters have been changed (if any).
QString casa::PlotMSPlotTab::tabName | ( | ) | const [inline, virtual] |
Implements PlotMSTab::tabName().
Implements casa::PlotMSTab.
Definition at line 117 of file PlotMSPlotTab.qo.h.
QList<QToolButton*> casa::PlotMSPlotTab::toolButtons | ( | ) | const [virtual] |
Overrides PlotMSTab::toolButtons().
Should be called AFTER any tabs are added using addTab().
Reimplemented from casa::PlotMSTab.
friend class PlotMSPlot [friend] |
Definition at line 105 of file PlotMSPlotTab.qo.h.
friend class PlotMSPlotter [friend] |
Definition at line 106 of file PlotMSPlotTab.qo.h.
bool casa::PlotMSPlotTab::closing [private] |
Definition at line 263 of file PlotMSPlotTab.qo.h.
int casa::PlotMSPlotTab::forceReloadCounter_ [private] |
Definition at line 266 of file PlotMSPlotTab.qo.h.
Parameters for the currently selected plot.
Definition at line 258 of file PlotMSPlotTab.qo.h.
PlotMSPlot* casa::PlotMSPlotTab::itsCurrentPlot_ [private] |
Currently selected plot.
Definition at line 255 of file PlotMSPlotTab.qo.h.
Reference to plot manager.
Definition at line 252 of file PlotMSPlotTab.qo.h.
QList<PlotMSPlotSubtab*> casa::PlotMSPlotTab::itsSubtabs_ [private] |
PlotMSPlotSubtab objects in tab widget.
Definition at line 248 of file PlotMSPlotTab.qo.h.
Referenced by subtab().
bool casa::PlotMSPlotTab::itsUpdateFlag_ [private] |
Whether or not to check for changed parameters and update the GUI accordingly.
Definition at line 262 of file PlotMSPlotTab.qo.h.
int casa::PlotMSPlotTab::plotIndex [private] |
Definition at line 264 of file PlotMSPlotTab.qo.h.