RAIDA  1.9.0
IPlotterROOT.h
1 // -*- C++ -*-
2 #ifndef AIDA_IPLOTTERROOT_H
3 #define AIDA_IPLOTTERROOT_H 1
4 
5 #include <AIDA/IPlotter.h>
6 #include <string>
7 #include <vector>
8 
9 namespace AIDA {
10 
11 class IPlotterRegion;
12 class ITitleStyle;
13 
31 class IPlotterROOT : public IPlotter {
32 
33 public:
35  virtual ~IPlotterROOT() { /* nop */; }
36 
37  IPlotterROOT() { /* nop */; }
38 
54  virtual IPlotterRegion * createRegion(double x = 0,
55  double y = 0,
56  double w = 1.0,
57  double h = 1.0) ;
58 
66  virtual bool createRegions(int columns = 1,
67  int rows = 1,
68  int index = 0) ;
69 
73  virtual IPlotterRegion & currentRegion() const ;
74 
78  virtual int currentRegionNumber() const ;
79 
83  virtual int numberOfRegions() const ;
84 
88  virtual bool setCurrentRegionNumber(int index) ;
89 
96  virtual IPlotterRegion & next() ;
97 
101  virtual IPlotterRegion * region(int index) const ;
102 
106  virtual void destroyRegions() ;
107 
113  virtual void clearRegions() ;
114 
115  /*
116  * Set various plotting paramters for the whole page.
117  * Activate the graphic layer and update the screen window(s)
118  * if needed.
119  */
120  virtual bool setParameter(const std::string & parameter,
121  const std::string & options = "") ;
122 
128  virtual std::string parameterValue(const std::string & parameter) const ;
129 
130  virtual std::vector<std::string> availableParameterOptions(const std::string & parameter) const ;
131 
132  virtual std::vector<std::string> availableParameters() const ;
133 
134  /*
135  * GUI related methods :
136  */
137 
141  virtual bool show() ;
142 
148  virtual bool refresh() ;
149 
153  virtual bool hide() ;
154 
159  virtual bool interact() ;
160 
161  /*
162  * Other methods.
163  */
164 
173  virtual bool writeToFile(const std::string & filename,
174  const std::string & type = "") ;
175 
179  virtual void setTitle(const std::string & title) ;
180 
184  virtual ITitleStyle & titleStyle() ;
185 
186  virtual void setTitleStyle(const ITitleStyle & style) ;
187 }; // class
188 } // namespace AIDA
189 #endif /* ifndef AIDA_IPLOTTERROOT_H */
virtual bool hide()
Unmap the plotter on the screen.
Definition: IPlotterROOT.cc:108
virtual bool writeToFile(const std::string &filename, const std::string &type="")
Produce an output file.
Definition: IPlotterROOT.cc:120
virtual IPlotterRegion & next()
Set current region to be the &quot;next&quot; one.
Definition: IPlotterROOT.cc:49
virtual int numberOfRegions() const
Definition: IPlotterROOT.cc:37
virtual void destroyRegions()
Destroy regions.
Definition: IPlotterROOT.cc:59
User level interface to plotter.
Definition: IPlotterROOT.h:31
virtual std::string parameterValue(const std::string &parameter) const
Get value of a parameter.
Definition: IPlotterROOT.cc:76
virtual int currentRegionNumber() const
Definition: IPlotterROOT.cc:31
virtual bool createRegions(int columns=1, int rows=1, int index=0)
Create a grid of regions.
Definition: IPlotterROOT.cc:18
virtual bool show()
Map the plotter on the screen.
Definition: IPlotterROOT.cc:96
virtual void clearRegions()
Clear all regions.
Definition: IPlotterROOT.cc:64
User level interface to plotter.
Definition: IPlotter.h:40
virtual bool refresh()
Refresh the screen window(s).
Definition: IPlotterROOT.cc:102
virtual IPlotterRegion * region(int index) const
Definition: IPlotterROOT.cc:54
virtual IPlotterRegion & currentRegion() const
Definition: IPlotterROOT.cc:26
virtual ~IPlotterROOT()
Destructor.
Definition: IPlotterROOT.h:35
virtual ITitleStyle & titleStyle()
Get/set title style.
Definition: IPlotterROOT.cc:132
virtual void setTitle(const std::string &title)
Set the global title of the plotter (page).
Definition: IPlotterROOT.cc:127
virtual bool setCurrentRegionNumber(int index)
Set current region by giving its index [0,n-1].
Definition: IPlotterROOT.cc:43
virtual IPlotterRegion * createRegion(double x=0, double y=0, double w=1.0, double h=1.0)
Region management methods.
Definition: IPlotterROOT.cc:10
virtual bool interact()
Give control to the plotter GUI.
Definition: IPlotterROOT.cc:114