RAIDA  1.9.0
IPlotter.h
1 // -*- C++ -*-
2 // AID-GENERATED
3 // =========================================================================
4 // This class was generated by AID - Abstract Interface Definition
5 // DO NOT MODIFY, but use the org.freehep.aid.Aid utility to regenerate it.
6 // =========================================================================
7 #ifndef AIDA_IPLOTTER_H
8 #define AIDA_IPLOTTER_H 1
9 
10 // This file is part of the AIDA library
11 // Copyright (C) 2002 by the AIDA team. All rights reserved.
12 // This library is free software and under the terms of the
13 // GNU Library General Public License described in the LGPL.txt
14 
15 #include <string>
16 #include <vector>
17 
18 namespace AIDA {
19 
20 class IPlotterRegion;
21 class ITitleStyle;
22 
40 class IPlotter {
41 
42 public:
44  virtual ~IPlotter() { /* nop */; }
45 
61  virtual IPlotterRegion * createRegion(double x = 0, double y = 0, double w = 1.0, double h = 1.0) = 0;
62 
70  virtual bool createRegions(int columns = 1, int rows = 1, int index = 0) = 0;
71 
75  virtual IPlotterRegion & currentRegion() const = 0;
76 
80  virtual int currentRegionNumber() const = 0;
81 
85  virtual int numberOfRegions() const = 0;
86 
90  virtual bool setCurrentRegionNumber(int index) = 0;
91 
98  virtual IPlotterRegion & next() = 0;
99 
103  virtual IPlotterRegion * region(int index) const = 0;
104 
108  virtual void destroyRegions() = 0;
109 
115  virtual void clearRegions() = 0;
116 
117  /*
118  * Set various plotting paramters for the whole page.
119  * Activate the graphic layer and update the screen window(s)
120  * if needed.
121  */
122  virtual bool setParameter(const std::string & parameter, const std::string & options = "") = 0;
123 
129  virtual std::string parameterValue(const std::string & parameter) const = 0;
130 
131  virtual std::vector<std::string> availableParameterOptions(const std::string & parameter) const = 0;
132 
133  virtual std::vector<std::string> availableParameters() const = 0;
134 
135  /*
136  * GUI related methods :
137  */
138 
142  virtual bool show() = 0;
143 
149  virtual bool refresh() = 0;
150 
154  virtual bool hide() = 0;
155 
160  virtual bool interact() = 0;
161 
162  /*
163  * Other methods.
164  */
165 
174  virtual bool writeToFile(const std::string & filename, const std::string & type = "") = 0;
175 
179  virtual void setTitle(const std::string & title) = 0;
180 
184  virtual ITitleStyle & titleStyle() = 0;
185 
186  virtual void setTitleStyle(const ITitleStyle & style) = 0;
187 }; // class
188 } // namespace AIDA
189 #endif /* ifndef AIDA_IPLOTTER_H */
virtual ~IPlotter()
Destructor.
Definition: IPlotter.h:44
virtual void setTitle(const std::string &title)=0
Set the global title of the plotter (page).
User level interface to a plotter region.
Definition: IPlotterRegion.h:62
virtual ITitleStyle & titleStyle()=0
Get/set title style.
virtual int numberOfRegions() const =0
virtual bool setCurrentRegionNumber(int index)=0
Set current region by giving its index [0,n-1].
virtual std::string parameterValue(const std::string &parameter) const =0
Get value of a parameter.
virtual IPlotterRegion * region(int index) const =0
virtual bool writeToFile(const std::string &filename, const std::string &type="")=0
Produce an output file.
virtual IPlotterRegion * createRegion(double x=0, double y=0, double w=1.0, double h=1.0)=0
Region management methods.
virtual bool interact()=0
Give control to the plotter GUI.
virtual bool show()=0
Map the plotter on the screen.
virtual int currentRegionNumber() const =0
virtual bool refresh()=0
Refresh the screen window(s).
User level interface to plotter.
Definition: IPlotter.h:40
Style for the &quot;title scene part&quot; of a plotting region or for the global title of a plotting page...
Definition: ITitleStyle.h:29
virtual IPlotterRegion & next()=0
Set current region to be the &quot;next&quot; one.
virtual void destroyRegions()=0
Destroy regions.
virtual IPlotterRegion & currentRegion() const =0
virtual bool createRegions(int columns=1, int rows=1, int index=0)=0
Create a grid of regions.
virtual void clearRegions()=0
Clear all regions.
virtual bool hide()=0
Unmap the plotter on the screen.