casa
$Rev:20696$
|
Controller class for plotms. More...
#include <PlotMS.h>
Public Member Functions | |
PlotMSApp (bool connectToDBus=false) | |
Default constructor that uses default options. | |
PlotMSApp (const PlotMSParameters ¶ms, bool connectToDBus=false) | |
Constructor which takes the given parameters. | |
~PlotMSApp () | |
Destructor. | |
PlotMSPlotter * | getPlotter () |
Plotter Methods //. | |
void | showGUI (bool show=true) |
See PlotMSPlotter::showGUI(). | |
bool | guiShown () const |
See PlotMSPlotter::guiShown(). | |
int | execLoop () |
See PlotMSPlotter::execLoop(). | |
int | showAndExec (bool show=true) |
See PlotMSPlotter::showAndExec(). | |
void | close () |
See PlotMSPlotter::close(). | |
void | showError (const String &message, const String &title="PlotMS Error", bool isWarning=false) |
See PlotMSPlotter::showError(). | |
void | showWarning (const String &message, const String &title="PlotMS Warning") |
void | showMessage (const String &message, const String &title="PlotMS Message") |
See PlotMSPlotter::showMessage(). | |
PlotMSParameters & | getParameters () |
Parameter Methods //. | |
void | setParameters (const PlotMSParameters ¶ms) |
void | parametersHaveChanged (const PlotMSWatchedParameters ¶ms, int updateFlag) |
Implements PlotMSParametersWatcher::parametersHaveChanged(). | |
PlotLoggerPtr | getLogger () |
Logger Methods //. | |
PlotMSPlotManager & | getPlotManager () |
Plot Management Methods //. | |
PlotMSPlot * | addSinglePlot (const PlotMSPlotParameters *p=NULL) |
See PlotMSPlotManager::addSinglePlot(). | |
PlotMSPlot * | addMultiPlot (const PlotMSPlotParameters *p=NULL) |
See PlotMSPlotManager::addMultiPlot();. | |
PlotMSPlot * | addIterPlot (const PlotMSPlotParameters *p=NULL) |
See PlotMSPlotManager::addIterPlot();. | |
PlotMSOverPlot * | addOverPlot (const PlotMSPlotParameters *p=NULL) |
See PlotMSPlotManager::addOverPlot();. | |
bool | isDrawing () const |
bool | isClosed () const |
bool | save (const PlotExportFormat &format, const bool interactive) |
save plot to file using specified format. | |
Public Attributes | |
bool | its_want_avoid_popups |
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) (public for now, while it's experimental) | |
Private Member Functions | |
void | initialize (bool connectToDBus) |
Initializes a new PlotMS object, to be called from constructor. | |
PlotMSApp (const PlotMSApp ©) | |
Disable copy constructor and operator for now. | |
PlotMSApp & | operator= (const PlotMSApp ©) |
Private Attributes | |
PlotMSPlotter * | itsPlotter_ |
Plotter GUI. | |
PlotMSParameters | itsParameters_ |
Current parameters. | |
PlotLoggerPtr | itsLogger_ |
Logger. | |
PlotMSPlotManager | itsPlotManager_ |
Plot manager. | |
PlotMSDBusApp * | itsDBus_ |
DBus application, or NULL if one is not needed. |
Controller class for plotms.
Handles interactions between the UI and plots.
casa::PlotMSApp::PlotMSApp | ( | bool | connectToDBus = false | ) |
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 |
||
) |
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.
Destructor.
casa::PlotMSApp::PlotMSApp | ( | const PlotMSApp & | copy | ) | [private] |
Disable copy constructor and operator for now.
PlotMSPlot* casa::PlotMSApp::addIterPlot | ( | const PlotMSPlotParameters * | p = NULL | ) |
PlotMSPlot* casa::PlotMSApp::addMultiPlot | ( | const PlotMSPlotParameters * | p = NULL | ) |
PlotMSOverPlot* casa::PlotMSApp::addOverPlot | ( | const PlotMSPlotParameters * | p = NULL | ) |
PlotMSPlot* casa::PlotMSApp::addSinglePlot | ( | const PlotMSPlotParameters * | p = NULL | ) |
void casa::PlotMSApp::close | ( | ) |
See PlotMSPlotter::close().
int casa::PlotMSApp::execLoop | ( | ) |
Logger Methods //.
Gets the logger associated with this PlotMS.
Parameter Methods //.
Gets/Sets the parameters for this PlotMS.
Plot Management Methods //.
Returns the PlotMSPlotManager associated with this PlotMS.
Plotter Methods //.
Returns the PlotMSPlotter associated with this PlotMS.
bool casa::PlotMSApp::guiShown | ( | ) | const |
void casa::PlotMSApp::initialize | ( | bool | connectToDBus | ) | [private] |
Initializes a new PlotMS object, to be called from constructor.
bool casa::PlotMSApp::isClosed | ( | ) | const |
bool casa::PlotMSApp::isDrawing | ( | ) | const |
void casa::PlotMSApp::parametersHaveChanged | ( | const PlotMSWatchedParameters & | params, |
int | updateFlag | ||
) | [virtual] |
Implements PlotMSParametersWatcher::parametersHaveChanged().
Implements casa::PlotMSParametersWatcher.
bool casa::PlotMSApp::save | ( | const PlotExportFormat & | format, |
const bool | interactive | ||
) |
save plot to file using specified format.
If interactive, pop up confirm window, if not, no confirm windowl
void casa::PlotMSApp::setParameters | ( | const PlotMSParameters & | params | ) |
int casa::PlotMSApp::showAndExec | ( | bool | show = true | ) |
void casa::PlotMSApp::showError | ( | const String & | message, |
const String & | title = "PlotMS Error" , |
||
bool | isWarning = false |
||
) |
void casa::PlotMSApp::showGUI | ( | bool | show = true | ) |
void casa::PlotMSApp::showMessage | ( | const String & | message, |
const String & | title = "PlotMS Message" |
||
) |
void casa::PlotMSApp::showWarning | ( | const String & | message, |
const String & | title = "PlotMS Warning" |
||
) |
PlotMSDBusApp* casa::PlotMSApp::itsDBus_ [private] |
PlotLoggerPtr casa::PlotMSApp::itsLogger_ [private] |
PlotMSPlotter* casa::PlotMSApp::itsPlotter_ [private] |