casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PlotEngine.h
Go to the documentation of this file.
1 //# Copyright (C) 2008
2 //# Associated Universities, Inc. Washington DC, USA.
3 //#
4 //# This program is free software; you can redistribute it and/or modify it
5 //# under the terms of the GNU General Public License as published by the Free
6 //# Software Foundation; either version 2 of the License, or (at your option)
7 //# any later version.
8 //#
9 //# This program is distributed in the hope that it will be useful, but WITHOUT
10 //# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 //# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
12 //# more details.
13 //#
14 //# You should have received a copy of the GNU General Public License along
15 //# with this program; if not, write to the Free Software Foundation, Inc.,
16 //# 675 Massachusetts Ave, Cambridge, MA 02139, USA.
17 //#
18 //# Correspondence concerning AIPS++ should be addressed as follows:
19 //# Internet email: aips2-request@nrao.edu.
20 //# Postal address: AIPS++ Project Office
21 //# National Radio Astronomy Observatory
22 //# 520 Edgemont Road
23 //# Charlottesville, VA 22903-2475 USA
24 //#
25 
26 #ifndef PLOTENGINE_H_
27 #define PLOTENGINE_H_
28 
35 
36 namespace casa {
37 
38 class PlotMSPlot;
39 
45 class PlotEngine {
46 public:
47 
48  // Gets the logger associated with this PlotMS.
49  virtual PlotLoggerPtr getLogger() = 0;
50 
51  // Returns the PlotMSPlotManager associated with this PlotMS.
52  virtual PlotMSPlotManager& getPlotManager() = 0;
53  virtual PlotFactoryPtr getPlotFactory() = 0;
54  virtual PlotMSParameters& getParameters() = 0;
56 
57  //Symbols
58  virtual PlotSymbolPtr createSymbol (const casacore::String& descriptor,
60  const casacore::String& fillPattern, bool outline ) = 0;
61 
62  virtual PlotMSPlot* addOverPlot(const PlotMSPlotParameters* p = NULL) = 0;
63 
64 
65  //Show/hide
66  virtual void allowPopups(bool allow = true) = 0;
67  virtual bool popupsAllowed() = 0;
68  virtual void showGUI(bool show = true) = 0;
69  virtual bool guiShown() const = 0;
70  virtual bool isClosed() const = 0;
71  virtual void clearPlots() = 0;
72 
73  virtual bool isOperationCompleted() const = 0;
74  virtual void setOperationCompleted( bool complete) = 0;
75  virtual bool save(const PlotExportFormat& format) = 0;
76  virtual PlotMSFlagging getFlagging() const = 0;
77  virtual void setFlagging(PlotMSFlagging flag) = 0;
78  virtual void quitApplication() = 0;
79  virtual bool isDrawing() const = 0;
80 
81  virtual casacore::Record locateInfo( casacore::Bool& success, casacore::String& errorMessage ) = 0;
82 
83 protected:
85  virtual ~PlotEngine(){};
86 };
87 
88 }
89 #endif /* PLOTENGINE_H_ */
virtual bool isDrawing() const =0
virtual void quitApplication()=0
virtual PlotMSParameters & getParameters()=0
int Int
Definition: aipstype.h:50
virtual void setOperationCompleted(bool complete)=0
virtual bool isOperationCompleted() const =0
virtual casacore::Record locateInfo(casacore::Bool &success, casacore::String &errorMessage)=0
virtual void showGUI(bool show=true)=0
Parameters for a PlotMSPlot.
Subclass of PlotMSWatchedParameters that hold parameters for the whole plotter.
virtual PlotSymbolPtr createSymbol(const casacore::String &descriptor, casacore::Int size, const casacore::String &color, const casacore::String &fillPattern, bool outline)=0
Symbols.
virtual ~PlotEngine()
Definition: PlotEngine.h:85
size_t size() const
virtual void setFlagging(PlotMSFlagging flag)=0
void show(const variant &v)
virtual PlotLoggerPtr getLogger()=0
Gets the logger associated with this PlotMS.
virtual void allowPopups(bool allow=true)=0
Show/hide.
virtual PlotMSPlot * addOverPlot(const PlotMSPlotParameters *p=NULL)=0
Specifies flagging parameters (including possibly flag extension) for an MS.
Class for a single "plot" concept.
Definition: PlotMSPlot.h:57
A hierarchical collection of named fields of various types.
Definition: Record.h:180
bool Bool
Define the standard types used by Casacore.
Definition: aipstype.h:42
PlotExportFormat contains parameters for exporting a canvas to a file.
Definition: PlotOptions.h:817
virtual void clearPlots()=0
Specifies export parameters for plotms.
virtual bool guiShown() const =0
String: the storage and methods of handling collections of characters.
Definition: String.h:223
Abstracts the interface DBUS uses to talk to the main PlotMS application.
Definition: PlotEngine.h:45
Class which manages PlotMSPlots for plotms.
virtual PlotFactoryPtr getPlotFactory()=0
virtual bool isClosed() const =0
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
virtual bool save(const PlotExportFormat &format)=0
virtual PlotMSPlotManager & getPlotManager()=0
Returns the PlotMSPlotManager associated with this PlotMS.
virtual PlotMSFlagging getFlagging() const =0
virtual PlotMSExportParam & getExportParameters()=0
virtual bool popupsAllowed()=0