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

Subclass of QtDBusXmlApp to control plotms using DBus communication. More...

#include <PlotMSDBusApp.h>

Inheritance diagram for casa::PlotMSDBusApp:
casa::QtDBusXmlApp casa::PlotMSParametersWatcher casa::PlotMSPlotManagerWatcher casa::QtDBusApp

List of all members.

Public Member Functions

QString dbusName () const
 PlotMSDBusApp (PlotMSApp &plotms)
 Non-Static //.
 ~PlotMSDBusApp ()
 Destructor.
bool connectToDBus (const QString &dbus_name="")
 Connects to the DBus server using the dbusName() method with the current process ID.
void parametersHaveChanged (const PlotMSWatchedParameters &params, int updateFlag)
 Implements PlotMSParametersWatcher::parametersHaveChanged().
void plotsChanged (const PlotMSPlotManager &manager)
 Implements PlotMSPlotManagerWatcher::plotsChanged().

Static Public Member Functions

static const QString & name ()
static String dbusName (pid_t pid)
 Returns the name that the plotms in the process with the given ID is (or would be) registered with in the CASA DBus server.

Static Public Attributes

static const String APP_NAME
 Static //.
static const String APP_CASAPY_SWITCH
static const String APP_LOGFILENAME_SWITCH
static const String APP_LOGFILTER_SWITCH
static const String PARAM_AVERAGING
 PARAMETERS //.
static const String PARAM_AXIS_X
static const String PARAM_AXIS_Y
static const String PARAM_CLEARSELECTIONS
static const String PARAM_DATACOLUMN_X
static const String PARAM_DATACOLUMN_Y
static const String PARAM_FILENAME
static const String PARAM_FLAGGING
static const String PARAM_HEIGHT
static const String PARAM_ITERATE
static const String PARAM_PLOTINDEX
static const String PARAM_PRIORITY
static const String PARAM_SELECTION
static const String PARAM_TRANSFORMATIONS
static const String PARAM_UPDATEIMMEDIATELY
static const String PARAM_WIDTH
static const String PARAM_EXPORT_FILENAME
static const String PARAM_EXPORT_FORMAT
static const String PARAM_EXPORT_HIGHRES
static const String PARAM_EXPORT_INTERACTIVE
static const String PARAM_EXPORT_ASYNC
static const String PARAM_COLORIZE
static const String PARAM_COLORAXIS
static const String PARAM_CANVASTITLE
static const String PARAM_XAXISLABEL
static const String PARAM_YAXISLABEL
static const String PARAM_SHOWMAJORGRID
static const String PARAM_SHOWMINORGRID
static const String PARAM_MAJORCOLOR
static const String PARAM_MINORCOLOR
static const String PARAM_MAJORSTYLE
static const String PARAM_MINORSTYLE
static const String PARAM_MAJORWIDTH
static const String PARAM_MINORWIDTH
static const String PARAM_XAUTORANGE
static const String PARAM_XMIN
static const String PARAM_XMAX
static const String PARAM_YAUTORANGE
static const String PARAM_YMIN
static const String PARAM_YMAX
static const String PARAM_SYMBOL
static const String PARAM_SYMBOLSHAPE
static const String PARAM_SYMBOLSIZE
static const String PARAM_SYMBOLCOLOR
static const String PARAM_SYMBOLFILL
static const String PARAM_SYMBOLOUTLINE
static const String PARAM_FLAGGEDSYMBOL
static const String PARAM_FLAGGEDSYMBOLSHAPE
static const String PARAM_FLAGGEDSYMBOLSIZE
static const String PARAM_FLAGGEDSYMBOLCOLOR
static const String PARAM_FLAGGEDSYMBOLFILL
static const String PARAM_FLAGGEDSYMBOLOUTLINE
static const String METHOD_GETLOGPARAMS
 DBus method name for getting the log parameters, including: the sink filename (PARAM_FILENAME) and the filter priority (PARAM_PRIORITY).
static const String METHOD_SETLOGPARAMS
 DBus method name for setting the log parameters, using a Record with zero or more of the parameters set (see METHOD_GETLOGPARAMS).
static const String METHOD_GETPLOTMSPARAMS
 DBus method name for getting the plotms parameters, including: the "clear selections on axes change" flag (PARAM_CLEARSELECTIONS), and the cached image width (PARAM_WIDTH) and height (PARAM_HEIGHT).
static const String METHOD_SETPLOTMSPARAMS
 DBus method name for setting the plotms parameters, using a Record with zero or more of the parameters set (see METHOD_GETPLOTMSPARAMS).
static const String METHOD_SETCACHEDIMAGESIZETOSCREENRES
 DBus method name for setting the cached image size to the current screen resolution.
static const String METHOD_GETPLOTPARAMS
 DBus method name for getting the plot parameters at the given index (PARAM_PLOTINDEX), including: the MS filename (PARAM_FILENAME), the x axis (PARAM_AXIS_X) and data column (PARAM_DATACOLUMN_X), the y axis (PARAM_AXIS_Y) and data column (PARAM_DATACOLUMN_Y), averaging (PARAM_AVERAGING), selection (PARAM_SELECTION), and trasformations (PARAM_TRANSFORMATIONS) PARAMETERS: plot index.
static const String METHOD_SETPLOTPARAMS
 DBus method name for setting the plot parameters at the given index (PARAM_PLOTINDEX), using a Record with zero or more of the parameters set (see METHOD_GETPLOTPARAMS).
static const String METHOD_GETFLAGGING
 DBus method name for getting the flag extension parameters (PARAM_FLAGGING).
static const String METHOD_SETFLAGGING
 DBus method name for setting the flag extension parameters.
static const String METHOD_SHOW
 DBus method names for showing/hiding the window.
static const String METHOD_HIDE
static const String METHOD_UPDATE
 DBus method name for updating the running PlotMS with any attributes that were set with updateImmediately = false.
static const String METHOD_QUIT
 DBus method name for quitting the entire application.
static const String METHOD_SAVE
 DBus method name for exporting plot file.
static const String METHOD_ISDRAWING
 DBus method name for determining if a plot is being drawn.
static const String METHOD_ISCLOSED
 is the top widget still shown
static const String METHOD_LOCATEINFO
 DBus method name for locating points in a specified region PARAMETERS: upper left and lower right bounding box coordinates RETURNS: meta data of located points (Record)

Protected Member Functions

void dbusRunXmlMethod (const String &methodName, const Record &parameters, Record &retValue, const String &callerName, bool isAsync)
 Implements QtDBusXmlApp::dbusRunXmlMethod().
void dbusXmlReceived (const QtDBusXML &xml)
 Overrides QtDBusXmlApp::dbusXmlReceived() to print the message to the log as needed.

Private Member Functions

void log (const String &message)
 Helper method for posting log messages.
bool plotParameters (int &plotIndex) const
 Adjusts the given plot index to be an acceptable, and returns whether the parameters were resized or not.
void update ()
 Helper for updating.
bool _savePlot (const Record &parameters)
 helper for saving
Record _locateInfo (const Record &parameters)
 helper for locate

Private Attributes

PlotMSAppitsPlotms_
 Parent PlotMS.
PlotMSParameters itsParams_
 Set PlotMS parameters that haven't yet been transferred to the current PlotMS.
vector< PlotMSPlotParametersitsPlotParams_
 Set PlotMSSinglePlot parameters that haven't yet been transfered to the current PlotMS.
bool itsUpdateFlag_
 Flag for whether to call update() during show() or not.

Friends

class PlotMSDBusAppWatcher

Detailed Description

Subclass of QtDBusXmlApp to control plotms using DBus communication.

Definition at line 43 of file PlotMSDBusApp.h.


Constructor & Destructor Documentation

Non-Static //.

Constructor which takes PlotMS parent object.

Destructor.


Member Function Documentation

Record casa::PlotMSDBusApp::_locateInfo ( const Record parameters) [private]

helper for locate

bool casa::PlotMSDBusApp::_savePlot ( const Record parameters) [private]

helper for saving

bool casa::PlotMSDBusApp::connectToDBus ( const QString &  dbus_name = "") [virtual]

Connects to the DBus server using the dbusName() method with the current process ID.

Returns whether the connection succeeded or not.

Implements casa::QtDBusApp.

QString casa::PlotMSDBusApp::dbusName ( ) const [inline, virtual]

Implements casa::QtDBusApp.

Definition at line 52 of file PlotMSDBusApp.h.

References name().

static String casa::PlotMSDBusApp::dbusName ( pid_t  pid) [static]

Returns the name that the plotms in the process with the given ID is (or would be) registered with in the CASA DBus server.

void casa::PlotMSDBusApp::dbusRunXmlMethod ( const String methodName,
const Record parameters,
Record retValue,
const String callerName,
bool  isAsync 
) [protected, virtual]
void casa::PlotMSDBusApp::dbusXmlReceived ( const QtDBusXML xml) [protected, virtual]

Overrides QtDBusXmlApp::dbusXmlReceived() to print the message to the log as needed.

Reimplemented from casa::QtDBusXmlApp.

void casa::PlotMSDBusApp::log ( const String message) [private]

Helper method for posting log messages.

static const QString& casa::PlotMSDBusApp::name ( ) [static]

Referenced by dbusName().

void casa::PlotMSDBusApp::parametersHaveChanged ( const PlotMSWatchedParameters params,
int  updateFlag 
) [virtual]
bool casa::PlotMSDBusApp::plotParameters ( int &  plotIndex) const [private]

Adjusts the given plot index to be an acceptable, and returns whether the parameters were resized or not.

void casa::PlotMSDBusApp::plotsChanged ( const PlotMSPlotManager manager) [virtual]
void casa::PlotMSDBusApp::update ( ) [private]

Helper for updating.


Friends And Related Function Documentation

friend class PlotMSDBusAppWatcher [friend]

Definition at line 47 of file PlotMSDBusApp.h.


Member Data Documentation

Definition at line 59 of file PlotMSDBusApp.h.

Definition at line 60 of file PlotMSDBusApp.h.

Definition at line 61 of file PlotMSDBusApp.h.

Static //.

Constants for the casaplotms standalone executable.

Definition at line 58 of file PlotMSDBusApp.h.

Set PlotMS parameters that haven't yet been transferred to the current PlotMS.

Definition at line 260 of file PlotMSDBusApp.h.

Parent PlotMS.

Definition at line 256 of file PlotMSDBusApp.h.

Set PlotMSSinglePlot parameters that haven't yet been transfered to the current PlotMS.

Definition at line 264 of file PlotMSDBusApp.h.

Flag for whether to call update() during show() or not.

This will be true if the user updates something while the GUI is hidden.

Definition at line 268 of file PlotMSDBusApp.h.

DBus method name for getting the flag extension parameters (PARAM_FLAGGING).

PARAMETERS: none. RETURNS: value (Record), unless invalid or run asynchronously.

Definition at line 177 of file PlotMSDBusApp.h.

DBus method name for getting the log parameters, including: the sink filename (PARAM_FILENAME) and the filter priority (PARAM_PRIORITY).

PARAMETERS: none. RETURNS: value (Record), unless invalid or run asynchronously.

Definition at line 129 of file PlotMSDBusApp.h.

DBus method name for getting the plotms parameters, including: the "clear selections on axes change" flag (PARAM_CLEARSELECTIONS), and the cached image width (PARAM_WIDTH) and height (PARAM_HEIGHT).

PARAMETERS: none. RETURNS: value (Record), unless invalid or run asynchronously.

Definition at line 142 of file PlotMSDBusApp.h.

DBus method name for getting the plot parameters at the given index (PARAM_PLOTINDEX), including: the MS filename (PARAM_FILENAME), the x axis (PARAM_AXIS_X) and data column (PARAM_DATACOLUMN_X), the y axis (PARAM_AXIS_Y) and data column (PARAM_DATACOLUMN_Y), averaging (PARAM_AVERAGING), selection (PARAM_SELECTION), and trasformations (PARAM_TRANSFORMATIONS) PARAMETERS: plot index.

RETURNS: value (Record), unless invalid or run asynchronously.

Definition at line 164 of file PlotMSDBusApp.h.

Definition at line 190 of file PlotMSDBusApp.h.

is the top widget still shown

Definition at line 212 of file PlotMSDBusApp.h.

DBus method name for determining if a plot is being drawn.

Definition at line 209 of file PlotMSDBusApp.h.

DBus method name for locating points in a specified region PARAMETERS: upper left and lower right bounding box coordinates RETURNS: meta data of located points (Record)

Definition at line 217 of file PlotMSDBusApp.h.

DBus method name for quitting the entire application.

PARAMETERS: none. RETURNS: none.

Definition at line 202 of file PlotMSDBusApp.h.

DBus method name for exporting plot file.

Definition at line 206 of file PlotMSDBusApp.h.

DBus method name for setting the cached image size to the current screen resolution.

PARAMETERS: none. RETURNS: none.

Definition at line 154 of file PlotMSDBusApp.h.

DBus method name for setting the flag extension parameters.

PARAMETERS: flagging value. RETURNS: none.

Definition at line 182 of file PlotMSDBusApp.h.

DBus method name for setting the log parameters, using a Record with zero or more of the parameters set (see METHOD_GETLOGPARAMS).

PARAMETERS: value (Record). RETURNS: none.

Definition at line 135 of file PlotMSDBusApp.h.

DBus method name for setting the plotms parameters, using a Record with zero or more of the parameters set (see METHOD_GETPLOTMSPARAMS).

PARAMETERS: value (Record). RETURNS: none.

Definition at line 148 of file PlotMSDBusApp.h.

DBus method name for setting the plot parameters at the given index (PARAM_PLOTINDEX), using a Record with zero or more of the parameters set (see METHOD_GETPLOTPARAMS).

PARAMETERS: value (Record). RETURNS: none.

Definition at line 171 of file PlotMSDBusApp.h.

DBus method names for showing/hiding the window.

Does NOT quit the entire application. PARAMETERS: none. RETURNS: none.

Definition at line 189 of file PlotMSDBusApp.h.

DBus method name for updating the running PlotMS with any attributes that were set with updateImmediately = false.

PARAMETERS: none. RETURNS: none.

Definition at line 197 of file PlotMSDBusApp.h.

PARAMETERS //.

Parameter names.

Definition at line 69 of file PlotMSDBusApp.h.

Definition at line 70 of file PlotMSDBusApp.h.

Definition at line 71 of file PlotMSDBusApp.h.

Definition at line 92 of file PlotMSDBusApp.h.

Definition at line 72 of file PlotMSDBusApp.h.

Definition at line 91 of file PlotMSDBusApp.h.

Definition at line 90 of file PlotMSDBusApp.h.

Definition at line 73 of file PlotMSDBusApp.h.

Definition at line 74 of file PlotMSDBusApp.h.

Definition at line 89 of file PlotMSDBusApp.h.

Definition at line 85 of file PlotMSDBusApp.h.

Definition at line 86 of file PlotMSDBusApp.h.

Definition at line 87 of file PlotMSDBusApp.h.

Definition at line 88 of file PlotMSDBusApp.h.

Definition at line 75 of file PlotMSDBusApp.h.

Definition at line 115 of file PlotMSDBusApp.h.

Definition at line 118 of file PlotMSDBusApp.h.

Definition at line 119 of file PlotMSDBusApp.h.

Definition at line 120 of file PlotMSDBusApp.h.

Definition at line 116 of file PlotMSDBusApp.h.

Definition at line 117 of file PlotMSDBusApp.h.

Definition at line 76 of file PlotMSDBusApp.h.

Definition at line 77 of file PlotMSDBusApp.h.

Definition at line 78 of file PlotMSDBusApp.h.

Definition at line 97 of file PlotMSDBusApp.h.

Definition at line 99 of file PlotMSDBusApp.h.

Definition at line 101 of file PlotMSDBusApp.h.

Definition at line 98 of file PlotMSDBusApp.h.

Definition at line 100 of file PlotMSDBusApp.h.

Definition at line 102 of file PlotMSDBusApp.h.

Definition at line 79 of file PlotMSDBusApp.h.

Definition at line 80 of file PlotMSDBusApp.h.

Definition at line 81 of file PlotMSDBusApp.h.

Definition at line 95 of file PlotMSDBusApp.h.

Definition at line 96 of file PlotMSDBusApp.h.

Definition at line 109 of file PlotMSDBusApp.h.

Definition at line 112 of file PlotMSDBusApp.h.

Definition at line 113 of file PlotMSDBusApp.h.

Definition at line 114 of file PlotMSDBusApp.h.

Definition at line 110 of file PlotMSDBusApp.h.

Definition at line 111 of file PlotMSDBusApp.h.

Definition at line 82 of file PlotMSDBusApp.h.

Definition at line 83 of file PlotMSDBusApp.h.

Definition at line 84 of file PlotMSDBusApp.h.

Definition at line 103 of file PlotMSDBusApp.h.

Definition at line 93 of file PlotMSDBusApp.h.

Definition at line 105 of file PlotMSDBusApp.h.

Definition at line 104 of file PlotMSDBusApp.h.

Definition at line 106 of file PlotMSDBusApp.h.

Definition at line 94 of file PlotMSDBusApp.h.

Definition at line 108 of file PlotMSDBusApp.h.

Definition at line 107 of file PlotMSDBusApp.h.


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