casa::PlotMSApp Class Reference

Controller class for plotms. More...

#include <PlotMS.h>

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

List of all members.

Public Member Functions

 PlotMSApp (bool connectToDBus=false, bool userGui=true)
 Default constructor that uses default options.
 PlotMSApp (const PlotMSParameters &params, bool connectToDBus=false, bool userGui=true)
 Constructor which takes the given parameters.
 ~PlotMSApp ()
 Destructor.
virtual void showGUI (bool show=true)
 Plotter Methods //.
virtual bool guiShown () const
 See PlotMSPlotter::guiShown().
int execLoop ()
 See PlotMSPlotter::execLoop().
int showAndExec (bool show=true)
 See PlotMSPlotter::showAndExec().
void close ()
 See PlotMSPlotter::close().
virtual void clearPlots ()
 Remove existing plots.
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 clearMessage ()
void showMessage (const String &message, const String &title="PlotMS Message")
 See PlotMSPlotter::showMessage().
void setAnnotationModeActive (PlotMSAction::Type type, bool active)
 Enable/disable annotations in the client.
void resetTools ()
 Enables/disables tool settings on the canvases based on GUI settings.
virtual PlotMSParametersgetParameters ()
 Parameter Methods //.
void setParameters (const PlotMSParameters &params)
virtual PlotMSExportParamgetExportParameters ()
 Gets/Sets the export parameters for this PlotMS.
void setExportParameters (const PlotMSExportParam &params)
PlotExportFormat getExportFormat ()
void setExportFormat (const PlotExportFormat format)
void parametersHaveChanged (const PlotMSWatchedParameters &params, int updateFlag)
 Implements PlotMSParametersWatcher::parametersHaveChanged().
virtual PlotSymbolPtr createSymbol (const String &descriptor, Int size, const String &color, const String &fillPattern, bool outline)
 Symbols.
PlotSymbolPtr createSymbol (const PlotSymbolPtr &copy)
virtual PlotLoggerPtr getLogger ()
 Logger Methods //.
virtual PlotMSPlotManagergetPlotManager ()
 Plot Management Methods //.
PlotMSPlotaddOverPlot (const PlotMSPlotParameters *p=NULL)
 See PlotMSPlotManager::addOverPlot();.
virtual bool isDrawing () const
bool isClosed () const
void setOperationCompleted (bool completed)
 Set whether the latest plot update was successful completed.
bool save (const PlotExportFormat &format)
 save plot to file using specified format.
virtual PlotFactoryPtr getPlotFactory ()
 PlotEngine methods.
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 Record locateInfo (Bool &success, String &errorMessage)
bool isOperationCompleted () const
 Returns whether or not the latest plot update completed successfully.
PlotterPtr getPlotter ()
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
vector< String > getFiles () const

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, bool userGui)
 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

ClientitsPlotter_
 Plotter, Script or GUI.
ClientitsLastPlotter_
bool isGUI_
PlotMSParameters itsParameters_
 Current parameters.
PlotMSExportParam itsExportParameters_
PlotExportFormat itsExportFormat
PlotLoggerPtr itsLogger_
 Logger.
PlotMSPlotManager itsPlotManager_
 Plot manager.
PlotMSDBusAppitsDBus_
 DBus application, or NULL if one is not needed.
bool operationCompleted
 Whether the most recent plot updated was successfully completed.

Detailed Description

Controller class for plotms.

Handles interactions between the UI and plots.

Definition at line 52 of file PlotMS.h.


Constructor & Destructor Documentation

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.

casa::PlotMSApp::PlotMSApp ( const PlotMSApp copy  )  [private]

Disable copy constructor and operator for now.


Member Function Documentation

PlotMSPlot* casa::PlotMSApp::addOverPlot ( const PlotMSPlotParameters p = NULL  )  [virtual]
void casa::PlotMSApp::canvasAdded ( PlotCanvasPtr  canvas  ) 
void casa::PlotMSApp::clearMessage (  ) 
virtual void casa::PlotMSApp::clearPlots (  )  [virtual]

Remove existing plots.

Implements casa::PlotEngine.

void casa::PlotMSApp::close (  ) 
PlotSymbolPtr casa::PlotMSApp::createSymbol ( const PlotSymbolPtr copy  ) 
virtual PlotSymbolPtr casa::PlotMSApp::createSymbol ( const String &  descriptor,
Int  size,
const String &  color,
const String &  fillPattern,
bool  outline 
) [virtual]

Symbols.

Implements casa::PlotEngine.

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 PlotMSExportParam& casa::PlotMSApp::getExportParameters (  )  [virtual]

Gets/Sets the export parameters for this PlotMS.

Implements casa::PlotEngine.

vector<String> casa::PlotMSApp::getFiles (  )  const
virtual PlotMSFlagging casa::PlotMSApp::getFlagging (  )  const [virtual]

Implements casa::PlotEngine.

virtual PlotLoggerPtr casa::PlotMSApp::getLogger (  )  [virtual]

Logger Methods //.

Gets the logger associated with this PlotMS.

Implements casa::PlotEngine.

virtual PlotMSParameters& casa::PlotMSApp::getParameters (  )  [virtual]

Parameter Methods //.

Gets/Sets the parameters for this PlotMS.

Implements casa::PlotEngine.

virtual PlotFactoryPtr casa::PlotMSApp::getPlotFactory (  )  [virtual]

PlotEngine methods.

Implements casa::PlotEngine.

virtual PlotMSPlotManager& casa::PlotMSApp::getPlotManager (  )  [virtual]

Plot Management Methods //.

Returns the PlotMSPlotManager associated with this PlotMS.

Implements casa::PlotEngine.

PlotterPtr casa::PlotMSApp::getPlotter (  ) 
virtual bool casa::PlotMSApp::guiShown (  )  const [virtual]
void casa::PlotMSApp::initialize ( bool  connectToDBus,
bool  userGui 
) [private]

Initializes a new PlotMS object, to be called from constructor.

bool casa::PlotMSApp::isClosed (  )  const [virtual]

Implements casa::PlotEngine.

bool casa::PlotMSApp::isCommonAxisX (  )  const
bool casa::PlotMSApp::isCommonAxisY (  )  const
virtual bool casa::PlotMSApp::isDrawing (  )  const [virtual]

Implements casa::PlotEngine.

bool casa::PlotMSApp::isOperationCompleted (  )  const [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 Record casa::PlotMSApp::locateInfo ( Bool &  success,
String &  errorMessage 
) [virtual]

Implements casa::PlotEngine.

PlotMSApp& casa::PlotMSApp::operator= ( const PlotMSApp copy  )  [private]
void casa::PlotMSApp::parametersHaveChanged ( const PlotMSWatchedParameters params,
int  updateFlag 
) [virtual]
virtual void casa::PlotMSApp::quitApplication (  )  [virtual]

Implements casa::PlotEngine.

void casa::PlotMSApp::resetTools (  ) 

Enables/disables tool settings on the canvases based on GUI settings.

bool casa::PlotMSApp::save ( const PlotExportFormat format  )  [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::setAxisLocation ( PlotAxis  locationX,
PlotAxis  locationY 
)
void casa::PlotMSApp::setCommonAxes ( bool  commonX,
bool  commonY 
)
void casa::PlotMSApp::setExportFormat ( const PlotExportFormat  format  ) 
void casa::PlotMSApp::setExportParameters ( const PlotMSExportParam params  ) 
virtual void casa::PlotMSApp::setFlagging ( PlotMSFlagging  flag  )  [virtual]

Implements casa::PlotEngine.

void casa::PlotMSApp::setOperationCompleted ( bool  completed  )  [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 String &  message,
const String &  title = "PlotMS Error",
bool  isWarning = false 
)
virtual void casa::PlotMSApp::showGUI ( bool  show = true  )  [virtual]

Plotter Methods //.

See PlotMSPlotter::showGUI().

Implements casa::PlotEngine.

void casa::PlotMSApp::showMessage ( const String &  message,
const String &  title = "PlotMS Message" 
)
void casa::PlotMSApp::showWarning ( const String &  message,
const String &  title = "PlotMS Warning" 
)
bool casa::PlotMSApp::updateCachePlot ( PlotMSPlot plot,
void(*)(void *, bool)  f,
bool  setupPlot 
)

Member Data Documentation

bool casa::PlotMSApp::isGUI_ [private]

Definition at line 191 of file PlotMS.h.

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 176 of file PlotMS.h.

DBus application, or NULL if one is not needed.

Definition at line 205 of file PlotMS.h.

Definition at line 196 of file PlotMS.h.

Definition at line 195 of file PlotMS.h.

Definition at line 190 of file PlotMS.h.

Logger.

Definition at line 199 of file PlotMS.h.

Current parameters.

Definition at line 194 of file PlotMS.h.

Plot manager.

Definition at line 202 of file PlotMS.h.

Plotter, Script or GUI.

Definition at line 189 of file PlotMS.h.

Whether the most recent plot updated was successfully completed.

A null selection, for example, could result in an unsuccessful update.

Definition at line 210 of file PlotMS.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 31 Aug 2016 for casa by  doxygen 1.6.1