casa
5.7.0-16
|
Controller class for plotms. More...
#include <PlotMS.h>
Public Member Functions | |
PlotMSApp (bool connectToDBus=false, bool userGui=true) | |
Default constructor that uses default options. More... | |
PlotMSApp (const PlotMSParameters ¶ms, bool connectToDBus=false, bool userGui=true) | |
Constructor which takes the given parameters. More... | |
~PlotMSApp () | |
Destructor. More... | |
virtual void | showGUI (bool show=true) |
Plotter Methods //. More... | |
virtual bool | guiShown () const |
See PlotMSPlotter::guiShown(). More... | |
int | execLoop () |
See PlotMSPlotter::execLoop(). More... | |
int | showAndExec (bool show=true) |
See PlotMSPlotter::showAndExec(). More... | |
void | close () |
See PlotMSPlotter::close(). More... | |
virtual void | clearPlots () |
Remove existing plots. More... | |
void | showError (const casacore::String &message, const casacore::String &title="PlotMS Error", bool isWarning=false) |
See PlotMSPlotter::showError(). More... | |
void | showWarning (const casacore::String &message, const casacore::String &title="PlotMS Warning") |
void | clearMessage () |
void | showMessage (const casacore::String &message, const casacore::String &title="PlotMS Message") |
See PlotMSPlotter::showMessage(). More... | |
void | setAnnotationModeActive (PlotMSAction::Type type, bool active) |
Enable/disable annotations in the client. More... | |
void | resetTools () |
Enables/disables tool settings on the canvases based on GUI settings. More... | |
virtual PlotMSParameters & | getParameters () |
Parameter Methods //. More... | |
void | setParameters (const PlotMSParameters ¶ms) |
virtual PlotMSExportParam & | getExportParameters () |
Gets/Sets the export parameters for this PlotMS. More... | |
void | setExportParameters (const PlotMSExportParam ¶ms) |
PlotExportFormat | getExportFormat () |
void | setExportFormat (const PlotExportFormat format) |
void | parametersHaveChanged (const PlotMSWatchedParameters ¶ms, int updateFlag) |
Implements PlotMSParametersWatcher::parametersHaveChanged(). More... | |
virtual PlotSymbolPtr | createSymbol (const casacore::String &descriptor, casacore::Int size, const casacore::String &color, const casacore::String &fillPattern, bool outline) |
Symbols. More... | |
PlotSymbolPtr | createSymbol (const PlotSymbolPtr ©) |
virtual PlotLoggerPtr | getLogger () |
Logger Methods //. More... | |
virtual PlotMSPlotManager & | getPlotManager () |
Plot Management Methods //. More... | |
PlotMSPlot * | addOverPlot (const PlotMSPlotParameters *p=NULL) |
See PlotMSPlotManager::addOverPlot();. More... | |
virtual bool | isDrawing () const |
bool | isClosed () const |
void | setOperationCompleted (bool completed) |
Set whether the latest plot update was successful completed. More... | |
bool | save (const PlotExportFormat &format) |
save plot to file using specified format. More... | |
virtual PlotFactoryPtr | getPlotFactory () |
PlotEngine methods. More... | |
virtual void | quitApplication () |
virtual PlotMSFlagging | getFlagging () const |
virtual void | setFlagging (PlotMSFlagging flag) |
void | canvasAdded (PlotCanvasPtr canvas) |
bool | isVisible (PlotCanvasPtr &canvas) |
bool | exportToFormat (const PlotExportFormat &format) |
virtual casacore::Record | locateInfo (casacore::Bool &success, casacore::String &errorMessage) |
bool | isOperationCompleted () const |
Returns whether or not the latest plot update completed successfully. More... | |
PlotterPtr | getPlotter () |
virtual void | allowPopups (bool allow=true) |
To allow normal error/warning/info popups, which block execution, or, if not, prevent blocking by writing to the Logger and posting text to a status bar (or other visible gui element TBD) More... | |
bool | popupsAllowed () |
bool | updateCachePlot (PlotMSPlot *plot, void(*f)(void *, bool), bool setupPlot) |
void | setCommonAxes (bool commonX, bool commonY) |
bool | isCommonAxisX () const |
bool | isCommonAxisY () const |
void | setAxisLocation (PlotAxis locationX, PlotAxis locationY) |
PlotAxis | getAxisLocationX () const |
PlotAxis | getAxisLocationY () const |
std::vector< casacore::String > | getFiles () const |
Public Member Functions inherited from casa::PlotMSParametersWatcher | |
PlotMSParametersWatcher () | |
Constructor. More... | |
virtual | ~PlotMSParametersWatcher () |
Destructor. More... | |
Private Member Functions | |
void | initialize (bool connectToDBus, bool userGui) |
Initializes a new PlotMS object, to be called from constructor. More... | |
PlotMSApp (const PlotMSApp ©) | |
Disable copy constructor and operator for now. More... | |
PlotMSApp & | operator= (const PlotMSApp ©) |
Private Attributes | |
Client * | itsPlotter_ |
Plotter, Script or GUI. More... | |
Client * | itsLastPlotter_ |
bool | isGUI_ |
bool | allow_popups |
PlotMSParameters | itsParameters_ |
Current parameters. More... | |
PlotMSExportParam | itsExportParameters_ |
PlotExportFormat | itsExportFormat |
PlotLoggerPtr | itsLogger_ |
Logger. More... | |
PlotMSPlotManager | itsPlotManager_ |
Plot manager. More... | |
PlotMSDBusApp * | itsDBus_ |
DBus application, or NULL if one is not needed. More... | |
bool | operationCompleted |
Whether the most recent plot updated was successfully completed. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from casa::PlotEngine | |
PlotEngine () | |
virtual | ~PlotEngine () |
Controller class for plotms.
Handles interactions between the UI and plots.
casa::PlotMSApp::PlotMSApp | ( | bool | connectToDBus = false , |
bool | userGui = true |
||
) |
Default constructor that uses default options.
If connectToDBus is true, then the application registers itself with CASA's DBus server using the PlotMSDBusApp::dbusName() with the current process ID.
casa::PlotMSApp::PlotMSApp | ( | const PlotMSParameters & | params, |
bool | connectToDBus = false , |
||
bool | userGui = true |
||
) |
Constructor which takes the given parameters.
If connectToDBus is true, then the application registers itself with CASA's DBus server using the PlotMSDBusApp::dbusName() with the current process ID.
casa::PlotMSApp::~PlotMSApp | ( | ) |
Destructor.
|
private |
Disable copy constructor and operator for now.
|
virtual |
See PlotMSPlotManager::addOverPlot();.
Implements casa::PlotEngine.
|
inlinevirtual |
To allow normal error/warning/info popups, which block execution, or, if not, prevent blocking by writing to the Logger and posting text to a status bar (or other visible gui element TBD)
Implements casa::PlotEngine.
Definition at line 186 of file PlotMS.h.
References allow_popups.
void casa::PlotMSApp::canvasAdded | ( | PlotCanvasPtr | canvas | ) |
void casa::PlotMSApp::clearMessage | ( | ) |
|
virtual |
Remove existing plots.
Implements casa::PlotEngine.
void casa::PlotMSApp::close | ( | ) |
|
virtual |
Symbols.
Implements casa::PlotEngine.
PlotSymbolPtr casa::PlotMSApp::createSymbol | ( | const PlotSymbolPtr & | copy | ) |
int casa::PlotMSApp::execLoop | ( | ) |
bool casa::PlotMSApp::exportToFormat | ( | const PlotExportFormat & | format | ) |
PlotAxis casa::PlotMSApp::getAxisLocationX | ( | ) | const |
PlotAxis casa::PlotMSApp::getAxisLocationY | ( | ) | const |
PlotExportFormat casa::PlotMSApp::getExportFormat | ( | ) |
|
virtual |
Gets/Sets the export parameters for this PlotMS.
Implements casa::PlotEngine.
std::vector<casacore::String> casa::PlotMSApp::getFiles | ( | ) | const |
|
virtual |
Implements casa::PlotEngine.
|
virtual |
|
virtual |
|
virtual |
PlotEngine methods.
Implements casa::PlotEngine.
|
virtual |
Plot Management Methods //.
Returns the PlotMSPlotManager associated with this PlotMS.
Implements casa::PlotEngine.
PlotterPtr casa::PlotMSApp::getPlotter | ( | ) |
|
virtual |
See PlotMSPlotter::guiShown().
Implements casa::PlotEngine.
Referenced by casa::PlotMSPlot::cacheLoaded().
|
private |
Initializes a new PlotMS object, to be called from constructor.
|
virtual |
Implements casa::PlotEngine.
bool casa::PlotMSApp::isCommonAxisX | ( | ) | const |
bool casa::PlotMSApp::isCommonAxisY | ( | ) | const |
|
virtual |
Implements casa::PlotEngine.
|
virtual |
Returns whether or not the latest plot update completed successfully.
For example, if an invalid selection was made, the return value may be false.
Implements casa::PlotEngine.
bool casa::PlotMSApp::isVisible | ( | PlotCanvasPtr & | canvas | ) |
|
virtual |
Implements casa::PlotEngine.
|
virtual |
Implements PlotMSParametersWatcher::parametersHaveChanged().
Implements casa::PlotMSParametersWatcher.
|
inlinevirtual |
|
virtual |
Implements casa::PlotEngine.
void casa::PlotMSApp::resetTools | ( | ) |
Enables/disables tool settings on the canvases based on GUI settings.
|
virtual |
save plot to file using specified format.
Implements casa::PlotEngine.
void casa::PlotMSApp::setAnnotationModeActive | ( | PlotMSAction::Type | type, |
bool | active | ||
) |
Enable/disable annotations in the client.
void casa::PlotMSApp::setCommonAxes | ( | bool | commonX, |
bool | commonY | ||
) |
void casa::PlotMSApp::setExportFormat | ( | const PlotExportFormat | format | ) |
void casa::PlotMSApp::setExportParameters | ( | const PlotMSExportParam & | params | ) |
|
virtual |
Implements casa::PlotEngine.
|
virtual |
Set whether the latest plot update was successful completed.
This may not be the case if an invalid selection was made.
Implements casa::PlotEngine.
void casa::PlotMSApp::setParameters | ( | const PlotMSParameters & | params | ) |
int casa::PlotMSApp::showAndExec | ( | bool | show = true | ) |
void casa::PlotMSApp::showError | ( | const casacore::String & | message, |
const casacore::String & | title = "PlotMS Error" , |
||
bool | isWarning = false |
||
) |
|
virtual |
void casa::PlotMSApp::showMessage | ( | const casacore::String & | message, |
const casacore::String & | title = "PlotMS Message" |
||
) |
void casa::PlotMSApp::showWarning | ( | const casacore::String & | message, |
const casacore::String & | title = "PlotMS Warning" |
||
) |
bool casa::PlotMSApp::updateCachePlot | ( | PlotMSPlot * | plot, |
void(*)(void *, bool) | f, | ||
bool | setupPlot | ||
) |
|
private |
Definition at line 204 of file PlotMS.h.
Referenced by allowPopups(), and popupsAllowed().
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |