33 virtual void AddCut(
const std::string& cut);
66 virtual const std::vector<std::string>&
GetCuts()
const {
return fCuts;}
75 virtual const char *
GetName()
const;
99 virtual bool IsNameInUse(
const std::string& name)
const;
117 virtual void SetCuts(
const std::vector<std::string>& cuts);
120 virtual void SetName(
const char *name = 0);
126 virtual void SetProperty(
const std::string& key,
const std::string& value);
Window containing a ROOT canvas.
Base class for plot edit windows.
Base class for GUI plots including histograms, scatter plots, pulses, and graphical cuts.
bool fNeedsRegeneration
Indicates whether plot needs to be regenerated because settings have changed.
virtual void SetCuts(const std::vector< std::string > &cuts)
Set cuts to apply in generating the plot.
std::string fXUnits
X-axis units.
virtual void SetSuperimpose(bool flag=false)
Set whether the plot should be superimposed.
virtual std::string GeneratePlotName(const std::string &baseName) const
Generate a name for the plot.
virtual const std::string & GetYUnits() const
Get y-axis units.
virtual bool IsNameInUse(const std::string &name) const
Check whether string is the name of any plot.
std::string fXVariable
X-axis variable.
virtual void GetCutsFromEditWindow()
Get cuts from edit window.
std::string fYUnits
Y-axis units.
virtual ~QGPlot()
Destructor.
QGPlot()
Default constructor.
virtual const char * GetName() const
Get plot name, should be overridden by derived classes.
virtual void Duplicate()
Duplicate the plot, should be overridden by derived classes.
static const std::list< QGPlot * > & GetPlots()
Get collection of plots.
virtual void GetCanvasWindowFromEditWindow()
Get canvas window from edit window.
static void ShowPlotsList()
Show plots list.
virtual TCanvas * GetCanvas()
Get pointer to the associated canvas.
virtual void Generate(QChain *chain=0)
Generate plot from chain of data files, should be overridden by derived classes.
virtual void Plot()
Plot this in the associated canvas window, generating it if necessary.
static std::list< QGPlot * > fPlots
Collection of pointers to all QGPlots.
QGPlotEditWindow * fPlotEditWindow
Pointer to plot edit window.
static QGPlot * GetPlotByName(const std::string &name)
Get plot by name.
virtual void SetRegenerate(bool flag=true)
Set whether the plot needs to be regenerated.
virtual void SetCanvasWindow(QGCanvasWindow *window)
Set the canvas window to which the plot is associated.
virtual QGCanvasWindow * GetCanvasWindow() const
Get pointer to the canvas window to which the plot is associated.
virtual bool NeedsRegeneration() const
Check whether plot needs to be regenerated.
virtual bool IsSuperimposeSet() const
Return true if plot is set to be superimposed.
virtual const std::string & GetXUnits() const
Get x-axis units.
std::vector< std::string > fCuts
Cuts applied to make the plot.
virtual void SetProperty(const std::string &key, const std::string &value)
Set property (used for opening a session)
virtual void AutoSetStyle()
Automatically set the plot style, should be overridden by derived classes.
virtual const std::vector< std::string > & GetCuts() const
Get cuts applied to make the plot.
virtual void AddCut(const std::string &cut)
Add cut.
virtual void SetName(const char *name=0)
Set plot name.
virtual QGPlotEditWindow * GetEditWindow()
Get pointer to edit window.
std::string fCutsString
Cuts in a single string.
virtual void SetXVariable(const std::string &x)
Set X-axis variable.
virtual void DisplayEditWindow()
Display edit window for the plot, should be overridden by derived classes.
virtual void SetYVariable(const std::string &y)
Set Y-axis variable.
virtual void GetParametersFromEditWindow()
Get parameters from edit window, should be overridden by derived classes.
std::string fYVariable
Y-axis variable.
virtual void Erase()
Erase plot, should be overridden by derived classes.
virtual void MakeCutsString()
Make cuts string.
virtual const std::string & GetXVariable() const
Get x-axis variable.
virtual const std::string & GetYVariable() const
Get y-axis variable.
bool fSuperimpose
Indicates whether plot should be superimposed on existing plot.
QGCanvasWindow * fCanvasWindow
Canvas window to which plot is associated.
virtual void SetXUnits(const std::string &units)
Set X-axis units.
virtual void SetYUnits(const std::string &units)
Set Y-axis units.
virtual void Display()
Display plot, should be overridden by derived classes.
virtual void SetPlotEditWindow(QGPlotEditWindow *window)
Set plot edit window.