Diana Software
Public Member Functions | Private Member Functions | List of all members
QGGraph Class Reference

Base class for scatter plots and pulses. More...

Inheritance diagram for QGGraph:
QGPlot QGPulse QGScatterPlot

Public Member Functions

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

Private Member Functions

 ClassDef (QGGraph, 0)
 

Additional Inherited Members

- Static Public Member Functions inherited from QGPlot
static QGPlotGetPlotByName (const std::string &name)
 Get plot by name. More...
 
static const std::list< QGPlot * > & GetPlots ()
 Get collection of plots. More...
 
static void ShowPlotsList ()
 Show plots list. More...
 
- Protected Attributes inherited from QGPlot
QGCanvasWindowfCanvasWindow
 Canvas window to which plot is associated. More...
 
std::vector< std::string > fCuts
 Cuts applied to make the plot. More...
 
std::string fCutsString
 Cuts in a single string. More...
 
bool fNeedsRegeneration
 Indicates whether plot needs to be regenerated because settings have changed. More...
 
QGPlotEditWindowfPlotEditWindow
 Pointer to plot edit window. More...
 
bool fSuperimpose
 Indicates whether plot should be superimposed on existing plot. More...
 
std::string fXVariable
 X-axis variable. More...
 
std::string fXUnits
 X-axis units. More...
 
std::string fYVariable
 Y-axis variable. More...
 
std::string fYUnits
 Y-axis units. More...
 
- Static Protected Attributes inherited from QGPlot
static std::list< QGPlot * > fPlots
 Collection of pointers to all QGPlots. More...
 

Detailed Description

Base class for scatter plots and pulses.

Author
Adam Bryant (adam_.nosp@m.brya.nosp@m.nt@be.nosp@m.rkel.nosp@m.ey.ed.nosp@m.u)

Definition at line 14 of file QGGraph.hh.

Constructor & Destructor Documentation

◆ QGGraph() [1/2]

QGGraph::QGGraph ( )

Default constructor.

◆ QGGraph() [2/2]

QGGraph::QGGraph ( const QGGraph graph)

Copy constructor.

Definition at line 12 of file QGGraph.cc.

◆ ~QGGraph()

QGGraph::~QGGraph ( )
virtual

Destructor.

Definition at line 17 of file QGGraph.cc.

Member Function Documentation

◆ ClassDef()

QGGraph::ClassDef ( QGGraph  ,
 
)
private

◆ GetName()

const char * QGGraph::GetName ( ) const
virtual

Get graph name.

Reimplemented from QGPlot.

Definition at line 21 of file QGGraph.cc.

Referenced by QGPulseEditWindow::SetPlot(), and QGScatterPlotEditWindow::SetPlot().

◆ Reset()

void QGGraph::Reset ( )
virtual

Reset the graph to an empty state.

Definition at line 26 of file QGGraph.cc.

References SetPoints().

Referenced by QGPulse::Display(), and QGScatterPlot::Generate().

◆ SetPoints()

void QGGraph::SetPoints ( Int_t  n,
const Double_t *  x,
const Double_t *  y 
)
virtual

Set the points of the graph.

Definition at line 31 of file QGGraph.cc.

Referenced by QGPulse::Display(), QGScatterPlot::Generate(), QGPulse::GetPulseFromChain(), and Reset().


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