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

Window containing a ROOT canvas. More...

Inheritance diagram for QGCanvasWindow:
QGWindow

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...
 
QGFileHandlerGetFileHandler () const
 Get pointer to file handler. More...
 
QGPlotFrameGetPlotFrame ()
 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

QGCanvasWindowButtonsFramefButtonsFrame
 Buttons frame. More...
 
QGFileHandlerfFileHandler
 File handler. More...
 
TGLabel * fFilenameLabel
 Filename label. More...
 
std::list< QGPlot * > fDrawnPlots
 Collection of currently drawn plots in this window. More...
 
QGPlotFramefPlotFrame
 Plot frame. More...
 
std::list< QGPlot * > fPlots
 Collection of plots associated with this window. More...
 
QGCanvasSetupFramefSetupFrame
 Setup frame. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from QGWindow
static QGWindowGetWindowByName (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...
 

Detailed Description

Window containing a ROOT canvas.

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

Definition at line 26 of file QGCanvasWindow.hh.

Constructor & Destructor Documentation

◆ QGCanvasWindow()

QGCanvasWindow::QGCanvasWindow ( const TGWindow *  p = 0,
UInt_t  w = 600,
UInt_t  h = 450 
)

◆ ~QGCanvasWindow()

QGCanvasWindow::~QGCanvasWindow ( )
virtual

Destructor.

Definition at line 60 of file QGCanvasWindow.cc.

References fFileHandler, and fPlots.

Member Function Documentation

◆ AddPlot()

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().

◆ AddToDrawnPlots()

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().

◆ ClearDrawnPlots()

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().

◆ DisplayPlotFrame()

void QGCanvasWindow::DisplayPlotFrame ( )

◆ DisplaySetupFrame()

void QGCanvasWindow::DisplaySetupFrame ( )

◆ GetDrawnPlots()

std::list<QGPlot*>& QGCanvasWindow::GetDrawnPlots ( )
inline

◆ GetFileHandler()

QGFileHandler* QGCanvasWindow::GetFileHandler ( ) const
inline

◆ GetPlotFrame()

QGPlotFrame* QGCanvasWindow::GetPlotFrame ( )
inline

◆ GetPlots()

std::list<QGPlot*>& QGCanvasWindow::GetPlots ( )
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().

◆ RemoveFromDrawnPlots()

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().

◆ 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().

◆ SetPlotsToRegenerate()

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().

◆ SetProperty()

void QGCanvasWindow::SetProperty ( std::string  key,
std::string  value 
)

◆ UpdateFileLabel()

void QGCanvasWindow::UpdateFileLabel ( )

◆ UpdateVariablesDropDownBoxes()

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().

Member Data Documentation

◆ fButtonsFrame

QGCanvasWindowButtonsFrame* QGCanvasWindow::fButtonsFrame
private

Buttons frame.

Definition at line 81 of file QGCanvasWindow.hh.

Referenced by DisplayPlotFrame(), DisplaySetupFrame(), and QGCanvasWindow().

◆ fDrawnPlots

std::list<QGPlot*> QGCanvasWindow::fDrawnPlots
private

Collection of currently drawn plots in this window.

Definition at line 90 of file QGCanvasWindow.hh.

Referenced by AddToDrawnPlots(), ClearDrawnPlots(), GetDrawnPlots(), and RemoveFromDrawnPlots().

◆ fFileHandler

QGFileHandler* QGCanvasWindow::fFileHandler
private

File handler.

Definition at line 84 of file QGCanvasWindow.hh.

Referenced by DisplayPlotFrame(), DisplaySetupFrame(), GetFileHandler(), QGCanvasWindow(), and ~QGCanvasWindow().

◆ fFilenameLabel

TGLabel* QGCanvasWindow::fFilenameLabel
private

Filename label.

Definition at line 87 of file QGCanvasWindow.hh.

Referenced by DisplayPlotFrame(), DisplaySetupFrame(), QGCanvasWindow(), and UpdateFileLabel().

◆ fPlotFrame

QGPlotFrame* QGCanvasWindow::fPlotFrame
private

Plot frame.

Definition at line 93 of file QGCanvasWindow.hh.

Referenced by DisplayPlotFrame(), DisplaySetupFrame(), GetPlotFrame(), and QGCanvasWindow().

◆ fPlots

std::list<QGPlot*> QGCanvasWindow::fPlots
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().

◆ fSetupFrame

QGCanvasSetupFrame* QGCanvasWindow::fSetupFrame
private

Setup frame.

Definition at line 99 of file QGCanvasWindow.hh.

Referenced by DisplayPlotFrame(), DisplaySetupFrame(), and QGCanvasWindow().


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