![]() |
Diana Software
|
Window containing a ROOT canvas. More...
Public Member Functions | |
| QGCanvasWindow (const TGWindow *p=0, UInt_t w=600, UInt_t h=450) | |
| Constructor. More... | |
| virtual | ~QGCanvasWindow () |
| Destructor. More... | |
| void | AddPlot (QGPlot *plot) |
| Add pointer to a plot to the list of plots associated with this window. More... | |
| void | AddToDrawnPlots (QGPlot *plot) |
| Add pointer to a plot to the list of drawn plots. More... | |
| void | ClearDrawnPlots () |
| Clears the collection of drawn plots. More... | |
| void | DisplayPlotFrame () |
| Display the plot frame. More... | |
| void | DisplaySetupFrame () |
| Display the setup frame. More... | |
| std::list< QGPlot * > & | GetDrawnPlots () |
| Get collection of drawn plots. More... | |
| QGFileHandler * | GetFileHandler () const |
| Get pointer to file handler. More... | |
| QGPlotFrame * | GetPlotFrame () |
| Get pointer to the plot frame. More... | |
| std::list< QGPlot * > & | GetPlots () |
| Get collection of plots associated with this window. More... | |
| void | RemoveFromDrawnPlots (QGPlot *plot) |
| Remove pointer to a plot from the list of drawn plots. More... | |
| void | RemovePlot (QGPlot *plot) |
| Remove pointer to a plot from the list of plots associated with this window. More... | |
| void | SetPlotsToRegenerate () |
| Set regenerate for each plot associated with this window. More... | |
| void | SetProperty (std::string key, std::string value) |
| Set property (used for opening a session) More... | |
| void | UpdateFileLabel () |
| Update the file label. More... | |
| void | UpdateVariablesDropDownBoxes () |
| Update variables drop down boxes for plots associated with this window. More... | |
Public Member Functions inherited from QGWindow | |
| QGWindow (const TGWindow *p=0, UInt_t w=100, UInt_t h=100) | |
| Constructor. More... | |
| virtual | ~QGWindow () |
| Destructor. More... | |
| virtual void | SetWindowName (const char *name=0) |
| Set name of window. More... | |
Private Attributes | |
| QGCanvasWindowButtonsFrame * | fButtonsFrame |
| Buttons frame. More... | |
| QGFileHandler * | fFileHandler |
| File handler. More... | |
| TGLabel * | fFilenameLabel |
| Filename label. More... | |
| std::list< QGPlot * > | fDrawnPlots |
| Collection of currently drawn plots in this window. More... | |
| QGPlotFrame * | fPlotFrame |
| Plot frame. More... | |
| std::list< QGPlot * > | fPlots |
| Collection of plots associated with this window. More... | |
| QGCanvasSetupFrame * | fSetupFrame |
| Setup frame. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from QGWindow | |
| static QGWindow * | GetWindowByName (const std::string &name) |
| Get pointer to window with a given name. More... | |
| static const std::list< QGWindow * > & | GetWindows () |
| Get collection of windows. More... | |
| static bool | IsNameInUse (std::string name) |
| Check whether string is the name of any window. More... | |
| static std::string | GenerateWindowName (std::string baseName) |
| Generate a name for the window. More... | |
| static void | UpdateWindowDropDownBoxes () |
| Update window drop down boxes. More... | |
Protected Attributes inherited from QGWindow | |
| UInt_t | fWidth |
| Width of window. More... | |
| UInt_t | fHeight |
| Height of window. More... | |
Static Protected Attributes inherited from QGWindow | |
| static std::list< QGWindow * > | fWindows |
| Collection of pointers to all open QGWindows. More... | |
Window containing a ROOT canvas.
Definition at line 26 of file QGCanvasWindow.hh.
| QGCanvasWindow::QGCanvasWindow | ( | const TGWindow * | p = 0, |
| UInt_t | w = 600, |
||
| UInt_t | h = 450 |
||
| ) |
Constructor.
Definition at line 29 of file QGCanvasWindow.cc.
References DisplaySetupFrame(), fButtonsFrame, fFileHandler, fFilenameLabel, fPlotFrame, fSetupFrame, QStringHandler::Resize(), QGCanvasSetupFrame::SetDisplay(), QGCanvasWindowButtonsFrame::ShowDefaultDisplay(), and QGWindow::UpdateWindowDropDownBoxes().
|
virtual |
| void QGCanvasWindow::AddPlot | ( | QGPlot * | plot | ) |
Add pointer to a plot to the list of plots associated with this window.
Definition at line 69 of file QGCanvasWindow.cc.
References fPlots.
Referenced by QGPlot::QGPlot(), and QGPlot::SetCanvasWindow().
| void QGCanvasWindow::AddToDrawnPlots | ( | QGPlot * | plot | ) |
Add pointer to a plot to the list of drawn plots.
Definition at line 78 of file QGCanvasWindow.cc.
References fDrawnPlots.
Referenced by QGHistogram::Display(), QGPulse::Display(), and QGScatterPlot::Display().
| void QGCanvasWindow::ClearDrawnPlots | ( | ) |
Clears the collection of drawn plots.
Definition at line 87 of file QGCanvasWindow.cc.
References fDrawnPlots.
Referenced by QGHistogram::Display(), QGPulse::Display(), QGScatterPlot::Display(), and QGCanvasSetupFrame::HandleCloseFilesButton().
| void QGCanvasWindow::DisplayPlotFrame | ( | ) |
Display the plot frame.
Definition at line 92 of file QGCanvasWindow.cc.
References fButtonsFrame, fFileHandler, fFilenameLabel, fPlotFrame, fSetupFrame, QGFileHandler::IsFileOpen(), and QGCanvasWindowButtonsFrame::ShowDefaultDisplay().
Referenced by QGCanvasWindowButtonsFrame::HandleGoToPlotsButton(), QGPlotIconsFrame::HandlePulsesButton(), QGCanvasSetupFrame::OpenFile(), SetProperty(), and QGGraphicalCut::ViewPulses().
| void QGCanvasWindow::DisplaySetupFrame | ( | ) |
Display the setup frame.
Definition at line 105 of file QGCanvasWindow.cc.
References fButtonsFrame, fFileHandler, fFilenameLabel, fPlotFrame, fSetupFrame, QGFileHandler::IsFileOpen(), QGCanvasSetupFrame::SetDisplay(), and QGCanvasWindowButtonsFrame::ShowSetupWindowDisplay().
Referenced by QGCanvasSetupFrame::HandleCloseFilesButton(), QGCanvasWindowButtonsFrame::HandleSetupWindowButton(), and QGCanvasWindow().
|
inline |
Get collection of drawn plots.
Definition at line 50 of file QGCanvasWindow.hh.
References fDrawnPlots.
Referenced by QGHistogram::Display(), QGPulse::Display(), QGScatterPlot::Display(), QGPlotIconsFrame::HandleCopyLimitsButton(), QGPlotIconsFrame::HandleGraphicalCutButton(), QGPlotIconsFrame::HandlePulsesButton(), QGCalibrationPeakFrame::HandleSetButton(), and QGGraphicalCut::ViewPulses().
|
inline |
Get pointer to file handler.
Definition at line 53 of file QGCanvasWindow.hh.
References fFileHandler.
Referenced by QGPulse::FillEventData(), QGHistogramEditWindow::FillVariablesDropDownBoxes(), QGPulseEditWindow::FillVariablesDropDownBoxes(), QGScatterPlotEditWindow::FillVariablesDropDownBoxes(), QGHistogram::Generate(), QGPulse::Generate(), QGScatterPlot::Generate(), QGPulse::GetPulseFromChain(), QGCanvasSetupFrame::HandleCloseFilesButton(), QGCanvasSetupFrame::HandleListOpenFilesButton(), QGPlotIconsFrame::HandlePulsesButton(), QGCanvasSetupFrame::OpenFile(), QGCanvasSetupFrame::OpenSession(), QGPulse::Order(), QGPlot::Plot(), QGCanvasSetupFrame::SetDisplay(), SetProperty(), UpdateFileLabel(), and QGGraphicalCut::ViewPulses().
|
inline |
Get pointer to the plot frame.
Definition at line 56 of file QGCanvasWindow.hh.
References fPlotFrame.
Referenced by QGHistogram::Display(), QGPulse::Display(), QGScatterPlot::Display(), QGGraphicalCut::Erase(), QGHistogram::Erase(), QGPulse::Erase(), QGScatterPlot::Erase(), QGPlot::GetCanvas(), QGCanvasSetupFrame::HandleCloseFilesButton(), QGCanvasWindowButtonsFrame::HandleSaveCanvasButton(), QGCalibrationPeakFrame::HandleSetButton(), and QGPlot::Plot().
|
inline |
Get collection of plots associated with this window.
Definition at line 59 of file QGCanvasWindow.hh.
References fPlots.
Referenced by QGPlotIconsFrame::HandleEditPlotsButton(), and QGCanvasSetupFrame::OpenSession().
| void QGCanvasWindow::RemoveFromDrawnPlots | ( | QGPlot * | plot | ) |
Remove pointer to a plot from the list of drawn plots.
Definition at line 118 of file QGCanvasWindow.cc.
References fDrawnPlots.
Referenced by QGHistogram::Display(), QGPulse::Display(), QGScatterPlot::Display(), QGHistogram::Erase(), QGPulse::Erase(), QGScatterPlot::Erase(), and RemovePlot().
| void QGCanvasWindow::RemovePlot | ( | QGPlot * | plot | ) |
Remove pointer to a plot from the list of plots associated with this window.
Definition at line 125 of file QGCanvasWindow.cc.
References fPlots, and RemoveFromDrawnPlots().
Referenced by QGPlot::SetCanvasWindow(), and QGPlot::~QGPlot().
| void QGCanvasWindow::SetPlotsToRegenerate | ( | ) |
Set regenerate for each plot associated with this window.
Definition at line 133 of file QGCanvasWindow.cc.
References fPlots.
Referenced by QGCanvasSetupFrame::HandleCloseFilesButton(), QGCanvasSetupFrame::OpenFile(), QGPlot::Plot(), and SetProperty().
| void QGCanvasWindow::SetProperty | ( | std::string | key, |
| std::string | value | ||
| ) |
Set property (used for opening a session)
Definition at line 141 of file QGCanvasWindow.cc.
References DisplayPlotFrame(), FILE_KEY, GetFileHandler(), QGFileHandler::OpenFile(), SetPlotsToRegenerate(), UpdateFileLabel(), and UpdateVariablesDropDownBoxes().
| void QGCanvasWindow::UpdateFileLabel | ( | ) |
Update the file label.
Definition at line 154 of file QGCanvasWindow.cc.
References fFilenameLabel, GetFileHandler(), and QGFileHandler::GetFilenames().
Referenced by QGPlotIconsFrame::HandlePulsesButton(), QGCanvasSetupFrame::OpenFile(), SetProperty(), and QGGraphicalCut::ViewPulses().
| void QGCanvasWindow::UpdateVariablesDropDownBoxes | ( | ) |
Update variables drop down boxes for plots associated with this window.
Definition at line 174 of file QGCanvasWindow.cc.
References fPlots.
Referenced by QGCanvasSetupFrame::HandleCloseFilesButton(), QGCanvasSetupFrame::OpenFile(), QGPlot::Plot(), and SetProperty().
|
private |
Buttons frame.
Definition at line 81 of file QGCanvasWindow.hh.
Referenced by DisplayPlotFrame(), DisplaySetupFrame(), and QGCanvasWindow().
|
private |
Collection of currently drawn plots in this window.
Definition at line 90 of file QGCanvasWindow.hh.
Referenced by AddToDrawnPlots(), ClearDrawnPlots(), GetDrawnPlots(), and RemoveFromDrawnPlots().
|
private |
File handler.
Definition at line 84 of file QGCanvasWindow.hh.
Referenced by DisplayPlotFrame(), DisplaySetupFrame(), GetFileHandler(), QGCanvasWindow(), and ~QGCanvasWindow().
|
private |
Filename label.
Definition at line 87 of file QGCanvasWindow.hh.
Referenced by DisplayPlotFrame(), DisplaySetupFrame(), QGCanvasWindow(), and UpdateFileLabel().
|
private |
Plot frame.
Definition at line 93 of file QGCanvasWindow.hh.
Referenced by DisplayPlotFrame(), DisplaySetupFrame(), GetPlotFrame(), and QGCanvasWindow().
|
private |
Collection of plots associated with this window.
Definition at line 96 of file QGCanvasWindow.hh.
Referenced by AddPlot(), GetPlots(), RemovePlot(), SetPlotsToRegenerate(), UpdateVariablesDropDownBoxes(), and ~QGCanvasWindow().
|
private |
Setup frame.
Definition at line 99 of file QGCanvasWindow.hh.
Referenced by DisplayPlotFrame(), DisplaySetupFrame(), and QGCanvasWindow().