![]() |
AliRoot Core
v5-06-30 (35d6c57)
|
Registry for a bunch of AliMUONVPainter related stuff. More...
#include <AliMUONPainterRegistry.h>
Public Member Functions | |
virtual | ~AliMUONPainterRegistry () |
Int_t | FindIndexOf (AliMUONPainterMatrix *group) const |
void | HistoryMenuActivated (Int_t i) |
Int_t | NumberOfPainterMatrices () const |
AliMUONPainterMatrix * | PainterMatrix (Int_t i) const |
AliMUONPainterMatrix * | PainterMatrix (const char *groupName) const |
void | AddToHistory (AliMUONPainterMatrix *group) |
void | PainterMatrixWasRegistered (const AliMUONPainterMatrix *group) |
void | PainterMatrixWasUnregistered (const AliMUONPainterMatrix *group) |
void | PainterMatrixWantToShow (const AliMUONPainterMatrix *group) |
void | Print (Option_t *opt) const |
Int_t | Register (AliMUONPainterMatrix *group) |
void | SetMenuBar (TGMenuBar *bar) |
Set the menu bar where to put the history menu. More... | |
Bool_t | Unregister (AliMUONPainterMatrix *group) |
Static Public Member Functions | |
static AliMUONPainterRegistry * | Instance () |
Private Member Functions | |
AliMUONPainterRegistry () | |
Not implemented. More... | |
AliMUONPainterRegistry (const AliMUONPainterRegistry &) | |
Not implemented. More... | |
AliMUONPainterRegistry & | operator= (const AliMUONPainterRegistry &) |
Not implemented. More... | |
Private Attributes | |
TObjArray * | fPainterMatrices |
painter matrices More... | |
TGPopupMenu * | fHistoryMenu |
history menu More... | |
TGMenuBar * | fMenuBar |
Menu bar where to put the history menu. More... | |
Int_t | fHistoryCounter |
index to get back history menu items More... | |
Static Private Attributes | |
static AliMUONPainterRegistry * | fgInstance |
unique instance More... | |
Registry for a bunch of AliMUONVPainter related stuff.
Registry for AliMUONVPainter related stuff : painter data sources and painter matrices
Definition at line 27 of file AliMUONPainterRegistry.h.
|
virtual |
dtor
Definition at line 59 of file AliMUONPainterRegistry.cxx.
|
private |
Not implemented.
ctor
Definition at line 48 of file AliMUONPainterRegistry.cxx.
Referenced by Instance().
|
private |
Not implemented.
void AliMUONPainterRegistry::AddToHistory | ( | AliMUONPainterMatrix * | group | ) |
Add a matrix to the history
Definition at line 131 of file AliMUONPainterRegistry.cxx.
Referenced by AliMUONPainterMasterFrame::ShowPainterMatrix().
Int_t AliMUONPainterRegistry::FindIndexOf | ( | AliMUONPainterMatrix * | group | ) | const |
Get the index of a given painterMatrix
Definition at line 67 of file AliMUONPainterRegistry.cxx.
Referenced by AliMUONPainterMasterFrame::PainterMatrixWantToShow().
void AliMUONPainterRegistry::HistoryMenuActivated | ( | Int_t | i | ) |
A painterMatrix was chosen from the history menu
Definition at line 83 of file AliMUONPainterRegistry.cxx.
|
static |
Get unique instance of this class
Definition at line 96 of file AliMUONPainterRegistry.cxx.
Referenced by AliMUONPainterMasterFrame::AddPainterMatrix(), AliMUONPainterMasterFrame::AliMUONPainterMasterFrame(), AliMUONPainterMasterFrame::AttributesChanged(), AliMUONPainterMasterFrame::Backward(), AliMUONPainterDataSourceFrame::CreateFullTracker(), AliMUONMchViewApplication::CreateMenuBar(), AliMUONPainterMasterFrame::Forward(), AliMUONMchViewApplication::GenerateStartupMatrix(), AliMUONPainterMasterFrame::PainterMatrixWantToShow(), AliMUONPainterMasterFrame::ShiftClicked(), and AliMUONPainterMasterFrame::ShowPainterMatrix().
Int_t AliMUONPainterRegistry::NumberOfPainterMatrices | ( | ) | const |
The number of painter matrices we handle
Definition at line 228 of file AliMUONPainterRegistry.cxx.
Referenced by Print().
|
private |
Not implemented.
AliMUONPainterMatrix * AliMUONPainterRegistry::PainterMatrix | ( | Int_t | i | ) | const |
Get one painter matrix
Definition at line 105 of file AliMUONPainterRegistry.cxx.
Referenced by AliMUONPainterMasterFrame::AttributesChanged(), AliMUONPainterMasterFrame::Backward(), AliMUONPainterMasterFrame::Forward(), and AliMUONPainterMasterFrame::ShiftClicked().
AliMUONPainterMatrix * AliMUONPainterRegistry::PainterMatrix | ( | const char * | groupName | ) | const |
Get a painterMatrix by name
Definition at line 75 of file AliMUONPainterRegistry.cxx.
void AliMUONPainterRegistry::PainterMatrixWantToShow | ( | const AliMUONPainterMatrix * | group | ) |
A given paintermatrix want to appear on screen
Definition at line 121 of file AliMUONPainterRegistry.cxx.
Referenced by HistoryMenuActivated().
void AliMUONPainterRegistry::PainterMatrixWasRegistered | ( | const AliMUONPainterMatrix * | group | ) |
A new painter matrix was registered
Definition at line 173 of file AliMUONPainterRegistry.cxx.
Referenced by Register().
void AliMUONPainterRegistry::PainterMatrixWasUnregistered | ( | const AliMUONPainterMatrix * | group | ) |
A painter matrix was unregistered
Definition at line 183 of file AliMUONPainterRegistry.cxx.
Referenced by Unregister().
void AliMUONPainterRegistry::Print | ( | Option_t * | opt | ) | const |
Printout
Definition at line 193 of file AliMUONPainterRegistry.cxx.
Int_t AliMUONPainterRegistry::Register | ( | AliMUONPainterMatrix * | group | ) |
group is adopted, i.e. the registry becomes the owner of it.
Definition at line 216 of file AliMUONPainterRegistry.cxx.
Referenced by AliMUONPainterMasterFrame::AddPainterMatrix(), AliMUONPainterDataSourceFrame::CreateFullTracker(), and AliMUONMchViewApplication::GenerateStartupMatrix().
|
inline |
Set the menu bar where to put the history menu.
Definition at line 57 of file AliMUONPainterRegistry.h.
Referenced by AliMUONMchViewApplication::CreateMenuBar().
Bool_t AliMUONPainterRegistry::Unregister | ( | AliMUONPainterMatrix * | group | ) |
Unregister some matrix
Definition at line 236 of file AliMUONPainterRegistry.cxx.
|
staticprivate |
|
private |
index to get back history menu items
Definition at line 74 of file AliMUONPainterRegistry.h.
Referenced by AddToHistory().
|
private |
history menu
Definition at line 72 of file AliMUONPainterRegistry.h.
Referenced by AddToHistory(), and HistoryMenuActivated().
|
private |
Menu bar where to put the history menu.
Definition at line 73 of file AliMUONPainterRegistry.h.
Referenced by AddToHistory(), and SetMenuBar().
|
private |
painter matrices
Definition at line 71 of file AliMUONPainterRegistry.h.
Referenced by FindIndexOf(), NumberOfPainterMatrices(), PainterMatrix(), Print(), Register(), Unregister(), and ~AliMUONPainterRegistry().