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

Widget to pick what to plot for the painters. More...

#include <AliMUONPainterPlotSelector.h>

Inheritance diagram for AliMUONPainterPlotSelector:

Public Member Functions

 AliMUONPainterPlotSelector (const TGWindow *window, UInt_t w=1, UInt_t h=1)
 
virtual ~AliMUONPainterPlotSelector ()
 
void DataSourceWasRegistered (AliMUONVTrackerData *data)
 
void DataSourceWasUnregistered (AliMUONVTrackerData *data)
 
void DataSourceWasChanged (const char *type, AliMUONVTrackerData *data, Int_t dataIndex)
 
void DimensionButtonWasClicked (Int_t id)
 
void SourceButtonWasClicked (Int_t id)
 
void TypeButtonWasClicked (Int_t id)
 
void Update (const AliMUONPainterMatrix &painterMatrix)
 
void NumberOfEventsChanged ()
 

Private Member Functions

 AliMUONPainterPlotSelector (const AliMUONPainterPlotSelector &rhs)
 Not implemented. More...
 
AliMUONPainterPlotSelectoroperator= (const AliMUONPainterPlotSelector &rhs)
 Not implemented. More...
 
void BackupDimensionButtons ()
 
void CreateDimensionButtons (const char *dataSourceName)
 
void CreateTypeButtons (const TObjArray &types)
 
void DataSourceWasChanged ()
 
void ResetDimensionButtonMap ()
 
void RestoreDimensionButtons (const char *dataSourceName, Bool_t updateCurrentDimension)
 
void SetCurrentData (AliMUONVTrackerData *data)
 
void SetCurrentDimension (Long_t i)
 
void SetCurrentType (const char *type)
 
void UpdateDimensionButton ()
 
void UpdateSourceButton ()
 
void UpdateTypeButton ()
 

Private Attributes

TGButtonGroup * fTypes
 types buttons More...
 
TGButtonGroup * fDataSourceNames
 data source names buttons More...
 
TGButtonGroup * fDataSourceDimensions
 data source dimensions buttons More...
 
TMap * fDimensionButtonMap
 cache for button group More...
 
TString fCurrentType
 current type More...
 
AliMUONVTrackerDatafCurrentData
 current data More...
 
Long_t fCurrentDimension
 current data index More...
 

Static Private Attributes

static const char * fgkDefaultSourceName = "none"
 default source name More...
 

Detailed Description

Widget to pick what to plot for the painters.

Widget to select which data to plot for painters

Author
Laurent Aphecetche

See AliMUONPainterInterfaceHelper for an important implementation note about our use of TGButtonGroup

Definition at line 27 of file AliMUONPainterPlotSelector.h.

Constructor & Destructor Documentation

AliMUONPainterPlotSelector::AliMUONPainterPlotSelector ( const TGWindow *  window,
UInt_t  w = 1,
UInt_t  h = 1 
)

ctor

Definition at line 50 of file AliMUONPainterPlotSelector.cxx.

AliMUONPainterPlotSelector::~AliMUONPainterPlotSelector ( )
virtual

dtor

Definition at line 102 of file AliMUONPainterPlotSelector.cxx.

AliMUONPainterPlotSelector::AliMUONPainterPlotSelector ( const AliMUONPainterPlotSelector rhs)
private

Not implemented.

Member Function Documentation

void AliMUONPainterPlotSelector::BackupDimensionButtons ( )
private

Backup the dimension button group

Definition at line 109 of file AliMUONPainterPlotSelector.cxx.

Referenced by SourceButtonWasClicked().

void AliMUONPainterPlotSelector::CreateDimensionButtons ( const char *  dataSourceName)
private

Create the dimension button group for a given data source

Definition at line 137 of file AliMUONPainterPlotSelector.cxx.

Referenced by DataSourceWasRegistered().

void AliMUONPainterPlotSelector::CreateTypeButtons ( const TObjArray types)
private

Create the type button group

Definition at line 163 of file AliMUONPainterPlotSelector.cxx.

Referenced by Update().

void AliMUONPainterPlotSelector::DataSourceWasChanged ( const char *  type,
AliMUONVTrackerData data,
Int_t  dataIndex 
)

Emit a signal to tell data source was changed

Definition at line 193 of file AliMUONPainterPlotSelector.cxx.

void AliMUONPainterPlotSelector::DataSourceWasChanged ( )
private

Data source was changed

Definition at line 185 of file AliMUONPainterPlotSelector.cxx.

Referenced by DimensionButtonWasClicked(), SourceButtonWasClicked(), and TypeButtonWasClicked().

void AliMUONPainterPlotSelector::DataSourceWasRegistered ( AliMUONVTrackerData data)

A new data source has been registered : add it to the interface

Definition at line 209 of file AliMUONPainterPlotSelector.cxx.

void AliMUONPainterPlotSelector::DataSourceWasUnregistered ( AliMUONVTrackerData data)

A data source has been unregistered : remove it from the interface

Definition at line 249 of file AliMUONPainterPlotSelector.cxx.

void AliMUONPainterPlotSelector::DimensionButtonWasClicked ( Int_t  id)

One dim button was clicked

Definition at line 286 of file AliMUONPainterPlotSelector.cxx.

void AliMUONPainterPlotSelector::NumberOfEventsChanged ( )

Change the tool tip of the corresponding data source button

Definition at line 231 of file AliMUONPainterPlotSelector.cxx.

AliMUONPainterPlotSelector& AliMUONPainterPlotSelector::operator= ( const AliMUONPainterPlotSelector rhs)
private

Not implemented.

void AliMUONPainterPlotSelector::ResetDimensionButtonMap ( )
private

Reset the button group map

Definition at line 306 of file AliMUONPainterPlotSelector.cxx.

Referenced by Update().

void AliMUONPainterPlotSelector::RestoreDimensionButtons ( const char *  dataSourceName,
Bool_t  updateCurrentDimension 
)
private

Restore (i.e. contrary of Backup) a given dimension button group

Definition at line 322 of file AliMUONPainterPlotSelector.cxx.

Referenced by SourceButtonWasClicked(), and UpdateSourceButton().

void AliMUONPainterPlotSelector::SetCurrentData ( AliMUONVTrackerData data)
private

Set the current data pointer

Definition at line 353 of file AliMUONPainterPlotSelector.cxx.

Referenced by SourceButtonWasClicked(), and Update().

void AliMUONPainterPlotSelector::SetCurrentDimension ( Long_t  i)
private

Set the current dimension

Definition at line 361 of file AliMUONPainterPlotSelector.cxx.

Referenced by DimensionButtonWasClicked(), RestoreDimensionButtons(), and Update().

void AliMUONPainterPlotSelector::SetCurrentType ( const char *  type)
private

Set the current type

Definition at line 369 of file AliMUONPainterPlotSelector.cxx.

Referenced by TypeButtonWasClicked(), and Update().

void AliMUONPainterPlotSelector::SourceButtonWasClicked ( Int_t  id)

A source button was clicked

Definition at line 377 of file AliMUONPainterPlotSelector.cxx.

Referenced by DataSourceWasUnregistered().

void AliMUONPainterPlotSelector::TypeButtonWasClicked ( Int_t  id)

A type button was clicked

Definition at line 422 of file AliMUONPainterPlotSelector.cxx.

void AliMUONPainterPlotSelector::Update ( const AliMUONPainterMatrix painterMatrix)

Update ourselves from a new painter matrix

Definition at line 431 of file AliMUONPainterPlotSelector.cxx.

Referenced by AliMUONPainterMatrixFrame::UpdateInterface().

void AliMUONPainterPlotSelector::UpdateDimensionButton ( )
private

Update the dim buttons

Definition at line 477 of file AliMUONPainterPlotSelector.cxx.

Referenced by Update().

void AliMUONPainterPlotSelector::UpdateSourceButton ( )
private

Update the source buttons

Definition at line 500 of file AliMUONPainterPlotSelector.cxx.

Referenced by Update().

void AliMUONPainterPlotSelector::UpdateTypeButton ( )
private

Update the type buttons

Definition at line 520 of file AliMUONPainterPlotSelector.cxx.

Referenced by DataSourceWasChanged(), SourceButtonWasClicked(), and Update().

Member Data Documentation

AliMUONVTrackerData* AliMUONPainterPlotSelector::fCurrentData
private
Long_t AliMUONPainterPlotSelector::fCurrentDimension
private
TString AliMUONPainterPlotSelector::fCurrentType
private
TGButtonGroup* AliMUONPainterPlotSelector::fDataSourceDimensions
private
TGButtonGroup* AliMUONPainterPlotSelector::fDataSourceNames
private
TMap* AliMUONPainterPlotSelector::fDimensionButtonMap
private
const char * AliMUONPainterPlotSelector::fgkDefaultSourceName = "none"
staticprivate

default source name

Definition at line 91 of file AliMUONPainterPlotSelector.h.

Referenced by BackupDimensionButtons(), and SourceButtonWasClicked().

TGButtonGroup* AliMUONPainterPlotSelector::fTypes
private

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