QGPlot Class Reference

Inheritance diagram for QGPlot:

QGGraph QGGraphicalCut QGHistogram QGPulse QGScatterPlot

List of all members.


Detailed Description

Base class for GUI plots including histograms, scatter plots, pulses, and graphical cuts.

Author:
Adam Bryant (adam_bryant@berkeley.edu)

Public Member Functions

 QGPlot ()
 Default constructor.
 QGPlot (const QGPlot &)
 Copy constructor.
virtual ~QGPlot ()
 Destructor.
virtual void AddCut (const std::string &cut)
 Add cut.
virtual void AutoSetStyle ()
 Automatically set the plot style, should be overridden by derived classes.
virtual void Display ()
 Display plot, should be overridden by derived classes.
virtual void DisplayEditWindow ()
 Display edit window for the plot, should be overridden by derived classes.
virtual void Duplicate ()
 Duplicate the plot, should be overridden by derived classes.
virtual void Erase ()
 Erase plot, should be overridden by derived classes.
virtual void Generate (QChain *chain=0)
 Generate plot from chain of data files, should be overridden by derived classes.
virtual std::string GeneratePlotName (const std::string &baseName) const
 Generate a name for the plot.
virtual TCanvas * GetCanvas ()
 Get pointer to the associated canvas.
virtual QGCanvasWindowGetCanvasWindow () const
 Get pointer to the canvas window to which the plot is associated.
virtual void GetCanvasWindowFromEditWindow ()
 Get canvas window from edit window.
virtual const std::vector
< std::string > & 
GetCuts () const
 Get cuts applied to make the plot.
virtual void GetCutsFromEditWindow ()
 Get cuts from edit window.
virtual QGPlotEditWindowGetEditWindow ()
 Get pointer to edit window.
virtual const char * GetName () const
 Get plot name, should be overridden by derived classes.
virtual void GetParametersFromEditWindow ()
 Get parameters from edit window, should be overridden by derived classes.
virtual const std::string & GetXUnits () const
 Get x-axis units.
virtual const std::string & GetXVariable () const
 Get x-axis variable.
virtual const std::string & GetYUnits () const
 Get y-axis units.
virtual const std::string & GetYVariable () const
 Get y-axis variable.
virtual bool IsNameInUse (const std::string &name) const
 Check whether string is the name of any plot.
virtual bool IsSuperimposeSet () const
 Return true if plot is set to be superimposed.
virtual void MakeCutsString ()
 Make cuts string.
virtual bool NeedsRegeneration () const
 Check whether plot needs to be regenerated.
virtual void Plot ()
 Plot this in the associated canvas window, generating it if necessary.
virtual void SetCanvasWindow (QGCanvasWindow *window)
 Set the canvas window to which the plot is associated.
virtual void SetCuts (const std::vector< std::string > &cuts)
 Set cuts to apply in generating the plot.
virtual void SetName (const char *name=0)
 Set plot name.
virtual void SetPlotEditWindow (QGPlotEditWindow *window)
 Set plot edit window.
virtual void SetProperty (const std::string &key, const std::string &value)
 Set property (used for opening a session).
virtual void SetRegenerate (bool flag=true)
 Set whether the plot needs to be regenerated.
virtual void SetSuperimpose (bool flag=false)
 Set whether the plot should be superimposed.
virtual void SetXVariable (const std::string &x)
 Set X-axis variable.
virtual void SetXUnits (const std::string &units)
 Set X-axis units.
virtual void SetYVariable (const std::string &y)
 Set Y-axis variable.
virtual void SetYUnits (const std::string &units)
 Set Y-axis units.

Static Public Member Functions

static QGPlotGetPlotByName (const std::string &name)
 Get plot by name.
static const std::list< QGPlot * > & GetPlots ()
 Get collection of plots.
static void ShowPlotsList ()
 Show plots list.

Protected Attributes

QGCanvasWindowfCanvasWindow
 Canvas window to which plot is associated.
std::vector< std::string > fCuts
 Cuts applied to make the plot.
std::string fCutsString
 Cuts in a single string.
bool fNeedsRegeneration
 Indicates whether plot needs to be regenerated because settings have changed.
QGPlotEditWindowfPlotEditWindow
 Pointer to plot edit window.
bool fSuperimpose
 Indicates whether plot should be superimposed on existing plot.
std::string fXVariable
 X-axis variable.
std::string fXUnits
 X-axis units.
std::string fYVariable
 Y-axis variable.
std::string fYUnits
 Y-axis units.

Static Protected Attributes

static std::list< QGPlot * > fPlots
 Collection of pointers to all QGPlots.

The documentation for this class was generated from the following files:

Generated on Tue Nov 16 10:50:06 2010 for CUORE Software by  doxygen 1.5.6