ATTPCROOT  0.3.0-alpha
A ROOT-based framework for analyzing data from active target detectors
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
AtTabCanvas Class Reference

Abstract class for a tab composed of a single TCanvas. More...

#include <AtTabCanvas.h>

Inheritance diagram for AtTabCanvas:
Inheritance graph
[legend]
Collaboration diagram for AtTabCanvas:
Collaboration graph
[legend]

Public Member Functions

 AtTabCanvas (TString name, Int_t rows=1, Int_t cols=1)
 
- Public Member Functions inherited from AtTabBase
 AtTabBase (TString tabName)
 
virtual ~AtTabBase ()=default
 
void Init ()
 Called in the init stage of the run. More...
 
virtual void Exec ()=0
 Called after the run's Exec() to update tab. More...
 
AtTabInfoGetTabInfo ()
 
void SetTabName (TString name)
 

Protected Member Functions

void MakeTab (TEveWindowSlot *slot) override
 Create the gui components of the tab in the passed window slot. More...
 
void UpdateCanvas ()
 
- Protected Member Functions inherited from AtTabBase
virtual void InitTab ()=0
 
template<typename T >
T * GetFairRootInfo (std::string infoName=T::Class_Name())
 

Protected Attributes

TCanvas * fCanvas {nullptr}
 
Int_t fRows
 
Int_t fCols
 
- Protected Attributes inherited from AtTabBase
Int_t fTabId {0}
 
TString fTabName
 
std::unique_ptr< AtTabInfofTabInfo {std::make_unique<AtTabInfo>()}
 

Additional Inherited Members

- Static Protected Attributes inherited from AtTabBase
static int fNumTabs = 0
 

Detailed Description

Abstract class for a tab composed of a single TCanvas.

Optionally can be subdivded into multiple canvases. We don't use TRootEmbeddedCanvas because we may want the toolbar

Definition at line 20 of file AtTabCanvas.h.

Constructor & Destructor Documentation

◆ AtTabCanvas()

AtTabCanvas::AtTabCanvas ( TString  name,
Int_t  rows = 1,
Int_t  cols = 1 
)
inline

Definition at line 26 of file AtTabCanvas.h.

Member Function Documentation

◆ MakeTab()

void AtTabCanvas::MakeTab ( TEveWindowSlot *  slot)
overrideprotectedvirtual

Create the gui components of the tab in the passed window slot.

Implements AtTabBase.

Reimplemented in AtTabPad, and AtTabMacro.

Definition at line 8 of file AtTabCanvas.cxx.

◆ UpdateCanvas()

void AtTabCanvas::UpdateCanvas ( )
protected

Definition at line 24 of file AtTabCanvas.cxx.

Member Data Documentation

◆ fCanvas

TCanvas* AtTabCanvas::fCanvas {nullptr}
protected

Definition at line 22 of file AtTabCanvas.h.

◆ fCols

Int_t AtTabCanvas::fCols
protected

Definition at line 23 of file AtTabCanvas.h.

◆ fRows

Int_t AtTabCanvas::fRows
protected

Definition at line 23 of file AtTabCanvas.h.


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