AliRoot Core  v5-06-30 (35d6c57)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliMUONPainterRegistry Class Reference

Registry for a bunch of AliMUONVPainter related stuff. More...

#include <AliMUONPainterRegistry.h>

Inheritance diagram for AliMUONPainterRegistry:

Public Member Functions

virtual ~AliMUONPainterRegistry ()
 
Int_t FindIndexOf (AliMUONPainterMatrix *group) const
 
void HistoryMenuActivated (Int_t i)
 
Int_t NumberOfPainterMatrices () const
 
AliMUONPainterMatrixPainterMatrix (Int_t i) const
 
AliMUONPainterMatrixPainterMatrix (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 AliMUONPainterRegistryInstance ()
 

Private Member Functions

 AliMUONPainterRegistry ()
 Not implemented. More...
 
 AliMUONPainterRegistry (const AliMUONPainterRegistry &)
 Not implemented. More...
 
AliMUONPainterRegistryoperator= (const AliMUONPainterRegistry &)
 Not implemented. More...
 

Private Attributes

TObjArrayfPainterMatrices
 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 AliMUONPainterRegistryfgInstance
 unique instance More...
 

Detailed Description

Registry for a bunch of AliMUONVPainter related stuff.

Registry for AliMUONVPainter related stuff : painter data sources and painter matrices

Author
Laurent Aphecetche, Subatech

Definition at line 27 of file AliMUONPainterRegistry.h.

Constructor & Destructor Documentation

AliMUONPainterRegistry::~AliMUONPainterRegistry ( )
virtual

dtor

Definition at line 59 of file AliMUONPainterRegistry.cxx.

AliMUONPainterRegistry::AliMUONPainterRegistry ( )
private

Not implemented.

ctor

Definition at line 48 of file AliMUONPainterRegistry.cxx.

Referenced by Instance().

AliMUONPainterRegistry::AliMUONPainterRegistry ( const AliMUONPainterRegistry )
private

Not implemented.

Member Function Documentation

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.

Int_t AliMUONPainterRegistry::NumberOfPainterMatrices ( ) const

The number of painter matrices we handle

Definition at line 228 of file AliMUONPainterRegistry.cxx.

Referenced by Print().

AliMUONPainterRegistry& AliMUONPainterRegistry::operator= ( const AliMUONPainterRegistry )
private

Not implemented.

AliMUONPainterMatrix * AliMUONPainterRegistry::PainterMatrix ( Int_t  i) const
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().

void AliMUONPainterRegistry::SetMenuBar ( TGMenuBar *  bar)
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.

Member Data Documentation

AliMUONPainterRegistry * AliMUONPainterRegistry::fgInstance
staticprivate

unique instance

Definition at line 70 of file AliMUONPainterRegistry.h.

Referenced by Instance().

Int_t AliMUONPainterRegistry::fHistoryCounter
private

index to get back history menu items

Definition at line 74 of file AliMUONPainterRegistry.h.

Referenced by AddToHistory().

TGPopupMenu* AliMUONPainterRegistry::fHistoryMenu
private

history menu

Definition at line 72 of file AliMUONPainterRegistry.h.

Referenced by AddToHistory(), and HistoryMenuActivated().

TGMenuBar* AliMUONPainterRegistry::fMenuBar
private

Menu bar where to put the history menu.

Definition at line 73 of file AliMUONPainterRegistry.h.

Referenced by AddToHistory(), and SetMenuBar().

TObjArray* AliMUONPainterRegistry::fPainterMatrices
private

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