casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Public Attributes | Private Member Functions | Private Attributes
casa::PlotMSApp Class Reference

Controller class for plotms. More...

#include <PlotMS.h>

Inheritance diagram for casa::PlotMSApp:
casa::PlotMSParametersWatcher

List of all members.

Public Member Functions

 PlotMSApp (bool connectToDBus=false)
 Default constructor that uses default options.
 PlotMSApp (const PlotMSParameters &params, bool connectToDBus=false)
 Constructor which takes the given parameters.
 ~PlotMSApp ()
 Destructor.
PlotMSPlottergetPlotter ()
 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().
PlotMSParametersgetParameters ()
 Parameter Methods //.
void setParameters (const PlotMSParameters &params)
void parametersHaveChanged (const PlotMSWatchedParameters &params, int updateFlag)
 Implements PlotMSParametersWatcher::parametersHaveChanged().
PlotLoggerPtr getLogger ()
 Logger Methods //.
PlotMSPlotManagergetPlotManager ()
 Plot Management Methods //.
PlotMSPlotaddSinglePlot (const PlotMSPlotParameters *p=NULL)
 See PlotMSPlotManager::addSinglePlot().
PlotMSPlotaddMultiPlot (const PlotMSPlotParameters *p=NULL)
 See PlotMSPlotManager::addMultiPlot();.
PlotMSPlotaddIterPlot (const PlotMSPlotParameters *p=NULL)
 See PlotMSPlotManager::addIterPlot();.
PlotMSOverPlotaddOverPlot (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 &copy)
 Disable copy constructor and operator for now.
PlotMSAppoperator= (const PlotMSApp &copy)

Private Attributes

PlotMSPlotteritsPlotter_
 Plotter GUI.
PlotMSParameters itsParameters_
 Current parameters.
PlotLoggerPtr itsLogger_
 Logger.
PlotMSPlotManager itsPlotManager_
 Plot manager.
PlotMSDBusAppitsDBus_
 DBus application, or NULL if one is not needed.

Detailed Description

Controller class for plotms.

Handles interactions between the UI and plots.

Definition at line 48 of file PlotMS.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

See PlotMSPlotter::close().

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
PlotMSApp& casa::PlotMSApp::operator= ( const PlotMSApp copy) [private]
void casa::PlotMSApp::parametersHaveChanged ( const PlotMSWatchedParameters params,
int  updateFlag 
) [virtual]
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

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" 
)

Member Data Documentation

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)

Definition at line 144 of file PlotMS.h.

DBus application, or NULL if one is not needed.

Definition at line 160 of file PlotMS.h.

Logger.

Definition at line 154 of file PlotMS.h.

Current parameters.

Definition at line 151 of file PlotMS.h.

Plot manager.

Definition at line 157 of file PlotMS.h.

Plotter GUI.

Definition at line 148 of file PlotMS.h.


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