casa
5.7.0-16
|
Abstraction for the interface between the client (possibly a GUI) and the model (plot engine) that is performing the work. More...
#include <Client.h>
Public Member Functions | |
virtual bool | isActionEnabled (PlotMSAction::Type type) const =0 |
Returns whether or not the user can invoke a particular action. More... | |
virtual std::vector< PlotMSPlot * > | getCurrentPlots () const =0 |
Return the current client plot. More... | |
virtual std::vector < std::vector< PMS::Axis > > | getSelectedLoadAxes () const =0 |
Retrieve the plot load axes the user has specified. More... | |
virtual std::vector < std::vector< PMS::Axis > > | getSelectedReleaseAxes () const =0 |
Retrieve the release axes the user has specified. More... | |
virtual PlotMSFlagging | getFlagging () const =0 |
Retrieve flagging information specified by the client. More... | |
virtual void | setCommonAxes (bool commonX, bool commonY) |
In the case of a grid of plots whether to use common x- or y- axes. More... | |
virtual bool | isCommonAxisX () const |
virtual bool | isCommonAxisY () const |
virtual void | setAxisLocation (PlotAxis locationX, PlotAxis locationY) |
virtual PlotAxis | getAxisLocationX () const |
virtual PlotAxis | getAxisLocationY () const |
virtual std::vector < casacore::String > | getFiles () const =0 |
Return a list of files loaded in the client. More... | |
virtual void | setFlagging (PlotMSFlagging flag)=0 |
Flagging. More... | |
virtual bool | isInteractive () const =0 |
Return whether the client is interactive (a GUI) or noninteractive (a script) More... | |
virtual bool | exportToFormat (const PlotExportFormat &format) |
virtual bool | exportPlot (const PlotExportFormat &format, const bool async)=0 |
Save the current plot to a file. More... | |
virtual void | showError (const casacore::String &message, const casacore::String &title, bool isWarning)=0 |
Display an error in a client dependent way. More... | |
virtual void | showMessage (const casacore::String &message, const casacore::String &title, bool warning=false)=0 |
Display a message. More... | |
virtual void | clearMessage ()=0 |
virtual void | setCanvasCachedAxesStackImageSize (int width, int height) |
virtual PlotterPtr | getPlotter () |
Get the abstraction that holds the plots. More... | |
virtual void | setAnnotationModeActive (PlotMSAction::Type, bool) |
Use to enable annotations in the GUI client. More... | |
virtual PlotSymbolPtr | createSymbol (const PlotSymbolPtr ©) |
Ask the client to make a deep copy of the given plot symbol. More... | |
virtual PlotSymbolPtr | createSymbol (const casacore::String &descriptor, casacore::Int size, const casacore::String &color, const casacore::String &fillPattern, bool outline) |
Ask the client to make a symbol with the given specifications for insertion into the plot. More... | |
virtual PlotLoggerPtr | getLogger () |
Logging is client (implementation) specific so that client needs to be asked for the logger. More... | |
virtual void | canvasAdded (PlotCanvasPtr &canvas)=0 |
Add a plot to those displayed. More... | |
virtual bool | isVisible (PlotCanvasPtr &canvas) |
Is the plot visible? More... | |
virtual void | doThreadedOperation (ThreadController *controller)=0 |
The client is responsible for doing threaded operations. More... | |
virtual ThreadController * | getThreadController (PlotMSAction::Type type, PMSPTMethod postThreadMethod=NULL, PlotMSPlot *postThreadObject=NULL, int index=0)=0 |
FactoryMethod for producing a thread controller to manage a specific type of threaded operation. More... | |
virtual std::vector < PlotCanvasPtr > | currentCanvases () |
virtual void | holdDrawing () |
Keeps resizes from flooding event loop (dragging). More... | |
virtual void | releaseDrawing () |
virtual bool | allDrawingHeld () const |
virtual void | setOperationCompleted (bool completed) |
virtual bool | plot ()=0 |
virtual void | showGUI (bool show=true)=0 |
virtual int | showAndExec (bool show=true) |
virtual int | execLoop ()=0 |
virtual bool | guiShown () const =0 |
virtual bool | close ()=0 |
virtual bool | isDrawing () const =0 |
virtual bool | isClosed () const =0 |
virtual PlotFactoryPtr | getPlotFactory () |
virtual void | gridSizeChanged (int, int)=0 |
Protected Member Functions | |
Client () | |
virtual | ~Client () |
Protected Attributes | |
PlotterPtr | itsPlotter_ |
Plotter. More... | |
PlotFactoryPtr | itsFactory_ |
Plot factory. More... | |
Abstraction for the interface between the client (possibly a GUI) and the model (plot engine) that is performing the work.
|
virtual |
|
pure virtual |
Add a plot to those displayed.
Implemented in casa::ClientScript, and casa::PlotMSPlotter.
|
pure virtual |
Implemented in casa::ClientScript.
|
pure virtual |
Implemented in casa::ClientScript.
|
virtual |
Ask the client to make a deep copy of the given plot symbol.
The client (and only the client) should have access to the PlotFactory that makes the plot components.
|
virtual |
Ask the client to make a symbol with the given specifications for insertion into the plot.
|
virtual |
|
pure virtual |
The client is responsible for doing threaded operations.
For a GUI client this will involve starting a background thread so that the GUI is not frozen. For a script client, this may be a no-opt as the script can just wait for the operation to complete.
Implemented in casa::PlotMSPlotter, and casa::ClientScript.
|
pure virtual |
Implemented in casa::PlotMSPlotter, and casa::ClientScript.
|
pure virtual |
Save the current plot to a file.
Implemented in casa::PlotMSPlotter, and casa::ClientScript.
|
virtual |
|
virtual |
|
virtual |
|
pure virtual |
Return the current client plot.
Implemented in casa::PlotMSPlotter, and casa::ClientScript.
|
pure virtual |
Return a list of files loaded in the client.
Implemented in casa::ClientScript, and casa::PlotMSPlotter.
|
pure virtual |
Retrieve flagging information specified by the client.
Implemented in casa::PlotMSPlotter, and casa::ClientScript.
Referenced by casa::FlagActionUtil::flagRange(), and casa::FlagActionUtil::unflagRange().
|
virtual |
Logging is client (implementation) specific so that client needs to be asked for the logger.
|
virtual |
|
virtual |
Get the abstraction that holds the plots.
|
pure virtual |
Retrieve the plot load axes the user has specified.
Implemented in casa::PlotMSPlotter, and casa::ClientScript.
|
pure virtual |
Retrieve the release axes the user has specified.
Implemented in casa::PlotMSPlotter, and casa::ClientScript.
|
pure virtual |
FactoryMethod for producing a thread controller to manage a specific type of threaded operation.
Examples include caching, exporting a plot, and drawing.
Implemented in casa::PlotMSPlotter, and casa::ClientScript.
|
pure virtual |
Implemented in casa::PlotMSPlotter, and casa::ClientScript.
|
pure virtual |
Implemented in casa::PlotMSPlotter, and casa::ClientScript.
|
virtual |
Keeps resizes from flooding event loop (dragging).
|
pure virtual |
Returns whether or not the user can invoke a particular action.
Implemented in casa::PlotMSPlotter, and casa::ClientScript.
|
pure virtual |
Implemented in casa::ClientScript, and casa::PlotMSPlotter.
|
virtual |
|
virtual |
|
pure virtual |
Implemented in casa::ClientScript, and casa::PlotMSPlotter.
|
pure virtual |
Return whether the client is interactive (a GUI) or noninteractive (a script)
Implemented in casa::PlotMSPlotter, and casa::ClientScript.
|
virtual |
Is the plot visible?
|
pure virtual |
Implemented in casa::ClientScript, and casa::PlotMSPlotter.
|
virtual |
|
inlinevirtual |
Use to enable annotations in the GUI client.
Reimplemented in casa::PlotMSPlotter.
|
virtual |
|
virtual |
In the case of a grid of plots whether to use common x- or y- axes.
|
pure virtual |
Flagging.
Implemented in casa::PlotMSPlotter, and casa::ClientScript.
|
virtual |
Reimplemented in casa::ClientScript.
|
virtual |
|
pure virtual |
Display an error in a client dependent way.
For a GUI, this may mean popping up a dialog; for a script, this may mean writing the error to a log file or web log.
Implemented in casa::ClientScript.
|
pure virtual |
Implemented in casa::PlotMSPlotter, and casa::ClientScript.
|
pure virtual |
Display a message.
For a GUI client, this may mean popping up a dialog; for a script client, this may mean writing the message to a log file or a web log.
Implemented in casa::ClientScript.
|
protected |
Plot factory.
Definition at line 172 of file Client.h.
Referenced by casa::ClientScript::execLoop().
|
protected |