![]() |
AliRoot Core
v5-06-15 (45dab64)
|
A matrix of AliMUONVPainter. More...
#include <AliMUONPainterMatrix.h>
Public Member Functions | |
AliMUONPainterMatrix (const char *basename="", Int_t nx=1, Int_t ny=1) | |
virtual | ~AliMUONPainterMatrix () |
void | Adopt (AliMUONVPainter *painter) |
Adopt a painter in this matrix. More... | |
AliMUONPainterMatrix * | Clone (const AliMUONAttPainter &attributes) const |
void | Connect (const char *sourceMethod, const char *destClassName, void *destObject, const char *destMethod) |
const AliMUONAttPainter & | Attributes () const |
Get our attributes. More... | |
void | ComputeDataRange () |
Compute the data range for this matrix. More... | |
void | GetDataRange (Double_t &dataMin, Double_t &dataMax) const |
Get the data range for this matrix. More... | |
virtual const char * | GetName () const |
Get matrix name. More... | |
const char * | Basename () const |
Base name (short name) More... | |
const char * | Whatname () const |
void | GetTypes (TObjArray &types) const |
Int_t | Nx () const |
Number of painters to arrange in x-direction. More... | |
Int_t | Ny () const |
Number of painters to arrange in y-direction. More... | |
AliMUONVPainter * | Painter (Int_t index) const |
Get a painter. More... | |
void | Print (Option_t *opt="") const |
Printout. More... | |
AliMUONVTrackerData * | Data () const |
TString | DataPattern () const |
Int_t | DataIndex () const |
void | SetData (const char *pattern, AliMUONVTrackerData *d, Int_t indexInData) |
void | SetDataRange (Double_t min, Double_t max) |
Force a given data range for all painter groups belonging to this matrix. More... | |
void | SetOutlined (const char *pattern, Bool_t value) |
void | SetResponder (const char *pattern) |
Int_t | Size () const |
Number of painters (should be <= Nx*Ny) More... | |
AliMUONAttPainter | Validate (const AliMUONAttPainter &att) const |
Normalize attributes. More... | |
void | Draw (Option_t *opt="") |
TCanvas * | CreateCanvas (Int_t x=0, Int_t y=0, Int_t w=-1, Int_t h=-1) |
Static Public Member Functions | |
static std::string | NameIt (const char *what, const char *basename, const AliMUONAttPainter &att) |
Private Member Functions | |
AliMUONPainterMatrix (const AliMUONPainterMatrix &rhs) | |
Not implemented. More... | |
AliMUONPainterMatrix & | operator= (const AliMUONPainterMatrix &rhs) |
Not implemented. More... | |
void | SetName () |
void | UpdateAttributes () |
Private Attributes | |
TString | fBasename |
base name of that matrix More... | |
TString | fWhatname |
data name More... | |
Int_t | fNx |
number of rows More... | |
Int_t | fNy |
number of columns More... | |
TObjArray * | fPainters |
painters in that matrix More... | |
AliMUONAttPainter | fAttributes |
attributes of our painter(s) More... | |
TString | fName |
our name More... | |
A matrix of AliMUONVPainter.
Matrix of AliMUONVPainter
Definition at line 31 of file AliMUONPainterMatrix.h.
AliMUONPainterMatrix::AliMUONPainterMatrix | ( | const char * | basename = "" , |
Int_t | nx = 1 , |
||
Int_t | ny = 1 |
||
) |
|
virtual |
dtor
Definition at line 71 of file AliMUONPainterMatrix.cxx.
|
private |
Not implemented.
void AliMUONPainterMatrix::Adopt | ( | AliMUONVPainter * | painter | ) |
Adopt a painter in this matrix.
Adopt a given painter
Definition at line 79 of file AliMUONPainterMatrix.cxx.
Referenced by AliMUONPainterMasterFrame::Clicked(), Clone(), AliMUONPainterDataSourceFrame::CreateFullTracker(), AliMUONMchViewApplication::GenerateStartupMatrix(), and AliMUONPainterMasterFrame::ShiftClicked().
|
inline |
Get our attributes.
Definition at line 48 of file AliMUONPainterMatrix.h.
Referenced by AliMUONPainterMasterFrame::UpdateAttributes().
|
inline |
Base name (short name)
Definition at line 60 of file AliMUONPainterMatrix.h.
Referenced by AliMUONPainterMasterFrame::AttributesChanged(), and Clone().
AliMUONPainterMatrix * AliMUONPainterMatrix::Clone | ( | const AliMUONAttPainter & | attributes | ) | const |
Clone with given attributes
Definition at line 89 of file AliMUONPainterMatrix.cxx.
Referenced by AliMUONPainterMasterFrame::AttributesChanged().
void AliMUONPainterMatrix::ComputeDataRange | ( | ) |
Compute the data range for this matrix.
Compute the data range spanned by the painters in this matrix
Definition at line 125 of file AliMUONPainterMatrix.cxx.
Referenced by AliMUONPainterMatrixFrame::DataRangeAutoRequested(), and AliMUONPainterMatrixFrame::UpdateDataRange().
void AliMUONPainterMatrix::Connect | ( | const char * | sourceMethod, |
const char * | destClassName, | ||
void * | destObject, | ||
const char * | destMethod | ||
) |
Connect our painters
Definition at line 165 of file AliMUONPainterMatrix.cxx.
Referenced by AliMUONPainterMasterFrame::ShowPainterMatrix().
TCanvas * AliMUONPainterMatrix::CreateCanvas | ( | Int_t | x = 0 , |
Int_t | y = 0 , |
||
Int_t | w = -1 , |
||
Int_t | h = -1 |
||
) |
Generate a canvas to show the painter matrix.
Layout is the following :
painter themselves | color |
range | |
Definition at line 178 of file AliMUONPainterMatrix.cxx.
Referenced by AliMUONPainterDataSourceFrame::CreatePedestalCanvases(), and AliMUONPainterMatrixFrame::SaveAs().
AliMUONVTrackerData * AliMUONPainterMatrix::Data | ( | ) | const |
Return our data
Definition at line 366 of file AliMUONPainterMatrix.cxx.
Referenced by AliMUONPainterMasterFrame::AttributesChanged(), AliMUONPainterMatrixFrame::ColorSliderDefaultButtonWasClicked(), AliMUONPainterMatrixFrame::ColorSliderSetDefaultButtonWasClicked(), SetDataRange(), AliMUONPainterMasterFrame::ShiftClicked(), and AliMUONPainterMatrixFrame::Update().
Int_t AliMUONPainterMatrix::DataIndex | ( | ) | const |
Return our data index
Definition at line 384 of file AliMUONPainterMatrix.cxx.
Referenced by AliMUONPainterMasterFrame::AttributesChanged(), AliMUONPainterMatrixFrame::ColorSliderDefaultButtonWasClicked(), AliMUONPainterMatrixFrame::ColorSliderSetDefaultButtonWasClicked(), SetData(), SetDataRange(), and AliMUONPainterMasterFrame::ShiftClicked().
TString AliMUONPainterMatrix::DataPattern | ( | ) | const |
Return our data pattern
Definition at line 375 of file AliMUONPainterMatrix.cxx.
Referenced by AliMUONPainterMasterFrame::AttributesChanged(), and AliMUONPainterMasterFrame::ShiftClicked().
void AliMUONPainterMatrix::Draw | ( | Option_t * | opt = "" | ) |
Append our painters to the current pad
Definition at line 393 of file AliMUONPainterMatrix.cxx.
Referenced by CreateCanvas().
void AliMUONPainterMatrix::GetDataRange | ( | Double_t & | dataMin, |
Double_t & | dataMax | ||
) | const |
Get the data range for this matrix.
Get the data range spanned by the painters in this matrix
Definition at line 315 of file AliMUONPainterMatrix.cxx.
Referenced by CreateCanvas(), AliMUONPainterMatrixFrame::DataRangeAutoRequested(), and AliMUONPainterMatrixFrame::UpdateDataRange().
|
inlinevirtual |
Get matrix name.
Definition at line 57 of file AliMUONPainterMatrix.h.
Referenced by AliMUONPainterRegistry::AddToHistory(), AliMUONPainterMatrixFrame::ChangeTitle(), CreateCanvas(), AliMUONPainterMatrixFrame::MouseLeave(), AliMUONPainterMasterFrame::PrintMe(), AliMUONPainterRegistry::Unregister(), and AliMUONPainterMatrixFrame::Use().
void AliMUONPainterMatrix::GetTypes | ( | TObjArray & | types | ) | const |
Get the types of the painters in this matrix
Definition at line 339 of file AliMUONPainterMatrix.cxx.
Referenced by AliMUONPainterMatrixFrame::CreateButtons(), AliMUONPainterPlotSelector::Update(), and AliMUONPainterMatrixFrame::UpdateInterface().
|
static |
Build a name
Definition at line 418 of file AliMUONPainterMatrix.cxx.
Referenced by AliMUONPainterMasterFrame::AttributesChanged(), and AliMUONPainterMasterFrame::ShiftClicked().
|
inline |
Number of painters to arrange in x-direction.
Definition at line 67 of file AliMUONPainterMatrix.h.
Referenced by Clone(), Draw(), and AliMUONPainterMatrixFrame::Use().
|
inline |
Number of painters to arrange in y-direction.
Definition at line 70 of file AliMUONPainterMatrix.h.
Referenced by Clone(), Draw(), and AliMUONPainterMatrixFrame::Use().
|
private |
Not implemented.
AliMUONVPainter * AliMUONPainterMatrix::Painter | ( | Int_t | index | ) | const |
Get a painter.
Get a given painter
Definition at line 433 of file AliMUONPainterMatrix.cxx.
Referenced by Clone(), ComputeDataRange(), Connect(), Data(), DataIndex(), DataPattern(), AliMUONPainterMatrixFrame::DataSourceWasChanged(), Draw(), GetDataRange(), GetTypes(), SetData(), SetDataRange(), SetOutlined(), SetResponder(), AliMUONPainterPlotSelector::Update(), UpdateAttributes(), AliMUONPainterMatrixFrame::UpdateInterface(), AliMUONPainterMatrixFrame::Use(), and Validate().
void AliMUONPainterMatrix::Print | ( | Option_t * | opt = "" | ) | const |
Printout.
Printout
Definition at line 446 of file AliMUONPainterMatrix.cxx.
Referenced by AliMUONPainterRegistry::Print().
void AliMUONPainterMatrix::SetData | ( | const char * | pattern, |
AliMUONVTrackerData * | d, | ||
Int_t | indexInData | ||
) |
Set the data to be plotted
Definition at line 455 of file AliMUONPainterMatrix.cxx.
Referenced by AliMUONPainterDataSourceFrame::CreateFullTracker(), and AliMUONPainterMatrixFrame::DataSourceWasChanged().
void AliMUONPainterMatrix::SetDataRange | ( | Double_t | min, |
Double_t | max | ||
) |
Force a given data range for all painter groups belonging to this matrix.
Set the data range
Definition at line 500 of file AliMUONPainterMatrix.cxx.
Referenced by ComputeDataRange(), AliMUONPainterDataSourceFrame::CreateFullTracker(), AliMUONPainterMatrixFrame::DataRangeWasChanged(), and SetData().
|
private |
Build our name
Definition at line 527 of file AliMUONPainterMatrix.cxx.
Referenced by SetData(), and UpdateAttributes().
void AliMUONPainterMatrix::SetOutlined | ( | const char * | pattern, |
Bool_t | value | ||
) |
Calls SetOutlined for all our painters
Definition at line 561 of file AliMUONPainterMatrix.cxx.
Referenced by AliMUONPainterMatrixFrame::OutlineButtonWasClicked().
void AliMUONPainterMatrix::SetResponder | ( | const char * | pattern | ) |
Calls SetResponder for all our painters
Definition at line 573 of file AliMUONPainterMatrix.cxx.
Referenced by AliMUONPainterMatrixFrame::ResponderButtonWasClicked().
Int_t AliMUONPainterMatrix::Size | ( | ) | const |
Number of painters (should be <= Nx*Ny)
Return the number of painters we actually handle
Definition at line 584 of file AliMUONPainterMatrix.cxx.
Referenced by Clone(), ComputeDataRange(), Connect(), Draw(), GetDataRange(), GetTypes(), SetData(), SetDataRange(), SetOutlined(), SetResponder(), AliMUONPainterPlotSelector::Update(), UpdateAttributes(), AliMUONPainterMatrixFrame::Use(), Validate(), and AliMUONPainterMatrixFrame::ViewModified().
|
private |
Update our attributes (using our painters' attributes)
Definition at line 592 of file AliMUONPainterMatrix.cxx.
Referenced by Adopt().
AliMUONAttPainter AliMUONPainterMatrix::Validate | ( | const AliMUONAttPainter & | att | ) | const |
Normalize attributes.
Normalize attributes
Definition at line 640 of file AliMUONPainterMatrix.cxx.
Referenced by AliMUONPainterMasterFrame::AttributesChanged().
|
inline |
Definition at line 62 of file AliMUONPainterMatrix.h.
Referenced by AliMUONPainterMasterFrame::AttributesChanged(), and AliMUONPainterMasterFrame::ShiftClicked().
|
private |
attributes of our painter(s)
Definition at line 120 of file AliMUONPainterMatrix.h.
Referenced by Attributes(), Print(), SetName(), and UpdateAttributes().
|
private |
base name of that matrix
Definition at line 115 of file AliMUONPainterMatrix.h.
Referenced by Basename(), Print(), and SetName().
|
private |
our name
Definition at line 121 of file AliMUONPainterMatrix.h.
|
private |
number of rows
Definition at line 117 of file AliMUONPainterMatrix.h.
|
private |
number of columns
Definition at line 118 of file AliMUONPainterMatrix.h.
|
private |
painters in that matrix
Definition at line 119 of file AliMUONPainterMatrix.h.
Referenced by Adopt(), Painter(), Size(), and ~AliMUONPainterMatrix().
|
private |
data name
Definition at line 116 of file AliMUONPainterMatrix.h.
Referenced by Print(), SetData(), SetName(), and Whatname().