AliRoot Core  a565103 (a565103)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliMUONPainterMatrixFrame Class Reference

Widget to plot a matrix of painters. More...

#include <AliMUONPainterMatrixFrame.h>

Inheritance diagram for AliMUONPainterMatrixFrame:

Public Member Functions

 AliMUONPainterMatrixFrame (const TGWindow *window, UInt_t w, UInt_t h)
 
virtual ~AliMUONPainterMatrixFrame ()
 
void Clear (Option_t *opt="")
 
void DataRangeAutoRequested ()
 
void DataRangeWasChanged (Double_t *range)
 
void DataSourceWasChanged (const char *name, AliMUONVTrackerData *data, Int_t dataIndex)
 
void EventInfo (Int_t event, Int_t px, Int_t py, TObject *selected)
 
void MouseEnter (AliMUONVPainter *painter)
 
void MouseMotion (AliMUONVPainter *painter, Double_t *position)
 
void MouseLeave (const AliMUONVPainter *painter)
 
void ResponderButtonWasClicked (Int_t id)
 
void OutlineButtonWasClicked (Int_t id)
 
void ColorSliderDefaultButtonWasClicked ()
 
void ColorSliderSetDefaultButtonWasClicked (Double_t *range)
 
void Use (AliMUONPainterMatrix *group)
 
void TitleHasChanged (const char *newTitle)
 
void Update ()
 
AliMUONPainterMatrixMatrix () const
 Get the matrix pointer. More...
 
void SaveAs (const char *filename="", Option_t *option="") const
 
void UpdateInterface (Bool_t fromScratch)
 

Private Member Functions

 AliMUONPainterMatrixFrame (const AliMUONPainterMatrixFrame &rhs)
 not implemented More...
 
AliMUONPainterMatrixFrameoperator= (const AliMUONPainterMatrixFrame &rhs)
 not implemented More...
 
void ChangeTitle (const TString &title)
 
void ChangeTitle (AliMUONVPainter *painter, const char *basename=0x0, Double_t x=FLT_MAX, Double_t y=FLT_MAX)
 
void CreateButtons ()
 
void UpdateDataRange ()
 
void ViewModified ()
 

Private Attributes

AliMUONPainterMatrixfPainterMatrix
 the matrix we plot (not owner) More...
 
TRootEmbeddedCanvas * fView
 the canvas used to plot More...
 
TGHorizontalFrame * fInterface
 the interface frame More...
 
TGButtonGroup * fResponderButtons
 the responder buttons More...
 
TGButtonGroup * fOutlineButtons
 the outline buttons More...
 
AliMUONPainterPlotSelectorfPlotSelector
 the data source selection More...
 
AliMUONPainterHighlighterfPainterHighlighter
 the highlighter More...
 
UInt_t fCanvasWidth
 canvas width More...
 
UInt_t fCanvasHeight
 canvas height More...
 
TGCompositeFrame * fMainFrame
 our main frame More...
 
AliMUONPainterColorSliderfColorSlider
 color slider (for data) More...
 

Detailed Description

Widget to plot a matrix of painters.

A widget to draw a painter matrix, and the corresponding interface to select what to outline or paint, and which part of the painter is responding to mouse events

Author
Laurent Aphecetche, Subatech

Definition at line 32 of file AliMUONPainterMatrixFrame.h.

Constructor & Destructor Documentation

AliMUONPainterMatrixFrame::AliMUONPainterMatrixFrame ( const TGWindow *  window,
UInt_t  w,
UInt_t  h 
)

ctor

Definition at line 59 of file AliMUONPainterMatrixFrame.cxx.

AliMUONPainterMatrixFrame::~AliMUONPainterMatrixFrame ( )
virtual

dtor

Definition at line 157 of file AliMUONPainterMatrixFrame.cxx.

AliMUONPainterMatrixFrame::AliMUONPainterMatrixFrame ( const AliMUONPainterMatrixFrame rhs)
private

not implemented

Member Function Documentation

void AliMUONPainterMatrixFrame::ChangeTitle ( const TString &  title)
private

Change title

Definition at line 166 of file AliMUONPainterMatrixFrame.cxx.

Referenced by DataSourceWasChanged(), MouseEnter(), MouseLeave(), MouseMotion(), and Use().

void AliMUONPainterMatrixFrame::ChangeTitle ( AliMUONVPainter painter,
const char *  basename = 0x0,
Double_t  x = FLT_MAX,
Double_t  y = FLT_MAX 
)
private

Change the title according to painter

Definition at line 174 of file AliMUONPainterMatrixFrame.cxx.

void AliMUONPainterMatrixFrame::Clear ( Option_t *  opt = "")

Clear the view(s)

Definition at line 208 of file AliMUONPainterMatrixFrame.cxx.

Referenced by Use().

void AliMUONPainterMatrixFrame::ColorSliderDefaultButtonWasClicked ( )

Get here when the button "Default" under the color scale was clicked We must then reset the data range to its default (if available)

Definition at line 227 of file AliMUONPainterMatrixFrame.cxx.

void AliMUONPainterMatrixFrame::ColorSliderSetDefaultButtonWasClicked ( Double_t *  range)

Use the current values of the color slider as default range for the current dimension of the current data (if any)

Definition at line 262 of file AliMUONPainterMatrixFrame.cxx.

void AliMUONPainterMatrixFrame::CreateButtons ( )
private

Create the interface buttons

create buttons

Definition at line 289 of file AliMUONPainterMatrixFrame.cxx.

Referenced by UpdateInterface().

void AliMUONPainterMatrixFrame::DataRangeAutoRequested ( )

Get there when the "Auto" button below the color slider is clicked, to compute the data range actually painted.

Definition at line 316 of file AliMUONPainterMatrixFrame.cxx.

void AliMUONPainterMatrixFrame::DataRangeWasChanged ( Double_t *  range)

Get there when the data range is changed

Definition at line 336 of file AliMUONPainterMatrixFrame.cxx.

void AliMUONPainterMatrixFrame::DataSourceWasChanged ( const char *  name,
AliMUONVTrackerData data,
Int_t  dataIndex 
)

Update what to plot

Definition at line 350 of file AliMUONPainterMatrixFrame.cxx.

void AliMUONPainterMatrixFrame::EventInfo ( Int_t  event,
Int_t  px,
Int_t  py,
TObject *  selected 
)

Used to detect entering/leaving a given painter

Definition at line 376 of file AliMUONPainterMatrixFrame.cxx.

void AliMUONPainterMatrixFrame::MouseEnter ( AliMUONVPainter painter)

Emit a signal to notify that mouse pointer is entering a given painter

Definition at line 447 of file AliMUONPainterMatrixFrame.cxx.

Referenced by EventInfo().

void AliMUONPainterMatrixFrame::MouseLeave ( const AliMUONVPainter painter)

Emit a signal to notify that mouse pointer is leaving a given painter

Definition at line 461 of file AliMUONPainterMatrixFrame.cxx.

Referenced by AliMUONPainterMasterFrame::Clicked(), EventInfo(), and AliMUONPainterMasterFrame::ShiftClicked().

void AliMUONPainterMatrixFrame::MouseMotion ( AliMUONVPainter painter,
Double_t *  position 
)

Emit a signal to notify that mouse pointer is moving within a given painter

Definition at line 474 of file AliMUONPainterMatrixFrame.cxx.

Referenced by EventInfo().

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

not implemented

void AliMUONPainterMatrixFrame::OutlineButtonWasClicked ( Int_t  id)

One outline button was clicked

Definition at line 505 of file AliMUONPainterMatrixFrame.cxx.

void AliMUONPainterMatrixFrame::ResponderButtonWasClicked ( Int_t  id)

One responder button was clicked

Definition at line 489 of file AliMUONPainterMatrixFrame.cxx.

void AliMUONPainterMatrixFrame::SaveAs ( const char *  filename = "",
Option_t *  option = "" 
) const

Save painter matrix (in the sense of "print") in filename

Definition at line 524 of file AliMUONPainterMatrixFrame.cxx.

Referenced by AliMUONPainterMasterFrame::SaveAs().

void AliMUONPainterMatrixFrame::TitleHasChanged ( const char *  newTitle)

Emit the TitleHasChanged signal

Definition at line 537 of file AliMUONPainterMatrixFrame.cxx.

Referenced by ChangeTitle().

void AliMUONPainterMatrixFrame::Update ( )
void AliMUONPainterMatrixFrame::UpdateDataRange ( )
private

Update the data range

Definition at line 579 of file AliMUONPainterMatrixFrame.cxx.

Referenced by Update().

void AliMUONPainterMatrixFrame::UpdateInterface ( Bool_t  fromScratch)

Update the full interface

Definition at line 606 of file AliMUONPainterMatrixFrame.cxx.

Referenced by OutlineButtonWasClicked(), AliMUONPainterMasterFrame::Update(), and Use().

void AliMUONPainterMatrixFrame::Use ( AliMUONPainterMatrix group)

Change the matrix used

Definition at line 663 of file AliMUONPainterMatrixFrame.cxx.

Referenced by AliMUONPainterMasterFrame::ShowPainterMatrix().

void AliMUONPainterMatrixFrame::ViewModified ( )
private

Update our canvas

Definition at line 698 of file AliMUONPainterMatrixFrame.cxx.

Referenced by OutlineButtonWasClicked(), and Update().

Member Data Documentation

UInt_t AliMUONPainterMatrixFrame::fCanvasHeight
private

canvas height

Definition at line 104 of file AliMUONPainterMatrixFrame.h.

UInt_t AliMUONPainterMatrixFrame::fCanvasWidth
private

canvas width

Definition at line 103 of file AliMUONPainterMatrixFrame.h.

AliMUONPainterColorSlider* AliMUONPainterMatrixFrame::fColorSlider
private
TGHorizontalFrame* AliMUONPainterMatrixFrame::fInterface
private

the interface frame

Definition at line 95 of file AliMUONPainterMatrixFrame.h.

TGCompositeFrame* AliMUONPainterMatrixFrame::fMainFrame
private

our main frame

Definition at line 106 of file AliMUONPainterMatrixFrame.h.

Referenced by Update().

TGButtonGroup* AliMUONPainterMatrixFrame::fOutlineButtons
private

the outline buttons

Definition at line 97 of file AliMUONPainterMatrixFrame.h.

Referenced by Clear(), CreateButtons(), OutlineButtonWasClicked(), and UpdateInterface().

AliMUONPainterHighlighter* AliMUONPainterMatrixFrame::fPainterHighlighter
private

the highlighter

Definition at line 101 of file AliMUONPainterMatrixFrame.h.

Referenced by EventInfo(), Use(), and ~AliMUONPainterMatrixFrame().

AliMUONPainterPlotSelector* AliMUONPainterMatrixFrame::fPlotSelector
private

the data source selection

Definition at line 99 of file AliMUONPainterMatrixFrame.h.

Referenced by UpdateInterface().

TGButtonGroup* AliMUONPainterMatrixFrame::fResponderButtons
private

the responder buttons

Definition at line 96 of file AliMUONPainterMatrixFrame.h.

Referenced by Clear(), CreateButtons(), ResponderButtonWasClicked(), and UpdateInterface().

TRootEmbeddedCanvas* AliMUONPainterMatrixFrame::fView
private

the canvas used to plot

Definition at line 94 of file AliMUONPainterMatrixFrame.h.

Referenced by Clear(), OutlineButtonWasClicked(), Update(), Use(), and ViewModified().


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