14 #include "TGTextEntry.h"
56 set<string>::const_iterator iter;
57 for (iter = aliases.begin(); iter != aliases.end(); ++iter) {
62 for (iter = leaves.begin(); iter != leaves.end(); ++iter) {
76 string windowName =
"Diana GUI: ";
77 windowName += scatterPlot->
GetName();
85 if (scatterPlot->GetCanvasWindow()) {
90 cout <<
"QGScatterPlotEditWindow::SetPlot(QGPlot *plot) Warning: dynamic_cast<QGScatterPlot*> failed" << endl;
QGFileHandler * GetFileHandler() const
Get pointer to file handler.
TGListBox * GetCutsListBox()
Get pointer to cuts list box.
QGDropDownBox * GetDropDownBox()
Get drop down box.
void SetCuts(const std::vector< std::string > &cuts)
Set cuts.
void AddEntryS(const std::string &entry)
Add entry.
std::set< std::string > GetSetOfLeaves()
Get the names of the leaves of the tree.
std::set< std::string > GetSetOfAliases()
Get the aliases defined in the tree.
virtual const char * GetName() const
Get graph name.
Base class for plot edit windows.
void ShowPlotStyleFrame()
Show plot style frame.
void ShowCutsFrame()
Show cuts frame.
QGCutsFrame * fCutsFrame
Cuts frame.
QGPlotEditButtonsFrame * fButtonsFrame
Buttons frame.
void ShowButtonsFrame()
Show buttons frame.
Base class for GUI plots including histograms, scatter plots, pulses, and graphical cuts.
virtual QGCanvasWindow * GetCanvasWindow() const
Get pointer to the canvas window to which the plot is associated.
virtual void SetPlotEditWindow(QGPlotEditWindow *window)
Set plot edit window.
Class for scatter plot edit window.
void SetPlot(QGPlot *plot)
Set pointer to the scatter plot.
virtual ~QGScatterPlotEditWindow()
Destructor.
QGScatterPlot * fScatterPlot
Pointer to QGScatterPlot.
QGScatterPlotParametersFrame * fScatterPlotParametersFrame
Scatter plot parameters frame.
QGScatterPlotEditWindow(const TGWindow *p=0, UInt_t w=280, UInt_t h=450)
Constructor.
void FillVariablesDropDownBoxes()
Fill drop down boxes with variables from the chain.
void ShowScatterPlotParametersFrame()
Show parameters frame.
Part of a scatter plot edit window for inputting parameters.
QGDropDownBox * GetXDropDownBox()
Get pointer to x-axis variable drop down box.
std::string GetXVariable()
Get x-axis variable.
void SetXUnits(const std::string &units)
Set the x-axis units.
void SetYUnits(const std::string &units)
Set the y-axis units.
void SetYVariable(const std::string &y)
Set the y-axis variable.
void SetSuperimpose(bool flag=true)
Set whether the superimpose box is checked.
void SetXVariable(const std::string &x)
Set the x-axis variable.
QGDropDownBox * GetYDropDownBox()
Get pointer to y-axis variable drop down box.
std::string GetYVariable()
Get y-axis variable.
Class for GUI scatter plots.
virtual void SetWindowName(const char *name=0)
Set name of window.
std::string Resize(const std::string &s, size_t len)
resize a string to len, adding spaces if necessary