36 #if defined(WITHOUT_DBUS)
44 #define PLOTMS_VERSION 0x002250;
45 #define PLOTMS_VERSION_STR "2.25";
60 PlotMSApp(
bool connectToDBus =
false,
bool userGui =
true
61 #
if defined(WITHOUT_DBUS)
70 #
if defined(WITHOUT_DBUS)
102 bool isWarning =
false);
196 std::vector<casacore::String>
getFiles()
const;
216 #if ! defined(WITHOUT_DBUS)
220 std::shared_ptr<grpcPlotMSState> grpc_;
229 void initialize(
bool connectToDBus,
bool userGui
230 #
if defined(WITHOUT_DBUS)
void setExportFormat(const PlotExportFormat format)
virtual PlotFactoryPtr getPlotFactory()
PlotEngine methods.
virtual casacore::Record locateInfo(casacore::Bool &success, casacore::String &errorMessage)
PlotExportFormat getExportFormat()
void showWarning(const casacore::String &message, const casacore::String &title="PlotMS Warning")
virtual PlotMSExportParam & getExportParameters()
Gets/Sets the export parameters for this PlotMS.
StatsData< AccumType > copy(const StatsData< AccumType > &stats)
int showAndExec(bool show=true)
See PlotMSPlotter::showAndExec().
PlotLoggerPtr itsLogger_
Logger.
virtual bool isDrawing() const
PlotMSPlot * addOverPlot(const PlotMSPlotParameters *p=NULL)
See PlotMSPlotManager::addOverPlot();.
void showError(const casacore::String &message, const casacore::String &title="PlotMS Error", bool isWarning=false)
See PlotMSPlotter::showError().
int execLoop()
See PlotMSPlotter::execLoop().
virtual void allowPopups(bool allow=true)
To allow normal error/warning/info popups, which block execution, or, if not, prevent blocking by wri...
virtual bool guiShown() const
See PlotMSPlotter::guiShown().
virtual Type type()
Return the type enum.
PlotAxis getAxisLocationY() const
virtual PlotSymbolPtr createSymbol(const casacore::String &descriptor, casacore::Int size, const casacore::String &color, const casacore::String &fillPattern, bool outline)
Symbols.
Parameters for a PlotMSPlot.
bool exportToFormat(const PlotExportFormat &format)
Subclass of PlotMSWatchedParameters that hold parameters for the whole plotter.
bool isVisible(PlotCanvasPtr &canvas)
PlotMSExportParam itsExportParameters_
void show(const variant &v)
Abstract class for parameters that may be watched by one or more interested classes.
void close()
See PlotMSPlotter::close().
PlotMSParameters itsParameters_
Current parameters.
Controller class for plotms.
virtual PlotMSFlagging getFlagging() const
virtual PlotMSParameters & getParameters()
Parameter Methods //.
void showMessage(const casacore::String &message, const casacore::String &title="PlotMS Message")
See PlotMSPlotter::showMessage().
virtual void showGUI(bool show=true)
Plotter Methods //.
Specifies flagging parameters (including possibly flag extension) for an MS.
bool save(const PlotExportFormat &format)
save plot to file using specified format.
Type
Static // Enum for implemented actions.
void setAxisLocation(PlotAxis locationX, PlotAxis locationY)
Class for a single "plot" concept.
virtual PlotMSPlotManager & getPlotManager()
Plot Management Methods //.
Client * itsPlotter_
Plotter, Script or GUI.
void parametersHaveChanged(const PlotMSWatchedParameters ¶ms, int updateFlag)
Implements PlotMSParametersWatcher::parametersHaveChanged().
virtual void setFlagging(PlotMSFlagging flag)
bool isCommonAxisX() const
std::vector< casacore::String > getFiles() const
PlotAxis
Enum for the four plot axes.
A hierarchical collection of named fields of various types.
bool Bool
Define the standard types used by Casacore.
Abstraction for the interface between the client (possibly a GUI) and the model (plot engine) that is...
bool operationCompleted
Whether the most recent plot updated was successfully completed.
PlotMSDBusApp * itsDBus_
DBus application, or NULL if one is not needed.
void setAnnotationModeActive(PlotMSAction::Type type, bool active)
Enable/disable annotations in the client.
PlotMSPlotManager itsPlotManager_
Plot manager.
Specifies export parameters for plotms.
virtual void quitApplication()
void setExportParameters(const PlotMSExportParam ¶ms)
bool isCommonAxisY() const
void resetTools()
Enables/disables tool settings on the canvases based on GUI settings.
PlotMSApp & operator=(const PlotMSApp ©)
PlotMSApp(bool connectToDBus=false, bool userGui=true)
Default constructor that uses default options.
Interface for classes that wish to be notified when PlotMSWatchedParameters have changed.
virtual PlotLoggerPtr getLogger()
Logger Methods //.
void setOperationCompleted(bool completed)
Set whether the latest plot update was successful completed.
bool updateCachePlot(PlotMSPlot *plot, void(*f)(void *, bool), bool setupPlot)
String: the storage and methods of handling collections of characters.
void canvasAdded(PlotCanvasPtr canvas)
void initialize(bool connectToDBus, bool userGui)
Initializes a new PlotMS object, to be called from constructor.
Abstracts the interface DBUS uses to talk to the main PlotMS application.
Class which manages PlotMSPlots for plotms.
ABSTRACT CLASSES Abstract class for colors Any implementation of color should be able to provide a hexadecimal form of the color(i.e.,"000000"for black) and
PlotExportFormat itsExportFormat
void setCommonAxes(bool commonX, bool commonY)
void setParameters(const PlotMSParameters ¶ms)
PlotAxis getAxisLocationX() const
virtual void clearPlots()
Remove existing plots.
bool isOperationCompleted() const
Returns whether or not the latest plot update completed successfully.