Belle II Software development
|
Painter for EclData, parent class, created with EclPainterFactory. More...
#include <EclPainter.h>
Public Member Functions | |
EclPainter (EclData *data) | |
Default constructor. | |
EclPainter (const EclPainter &other) | |
Copy constructor. | |
EclPainter & | operator= (const EclPainter &other) |
Assignment operator. | |
void | setData (EclData *data) |
Set EclData to display in painter. | |
EclData * | getData () |
Return currently displayed EclData. | |
const EclData * | getData () const |
Return currently displayed EclData. | |
void | setMapper (ECL::ECLChannelMapper *mapper) |
Set ECLChannelMapper for CellID <-> (crate, shaper, chid) conversion. | |
ECL::ECLChannelMapper * | getMapper () |
Return currently set ECLChannelMapper. | |
void | setDisplayedSubsystem (EclData::EclSubsystem sys) |
Change between the displayed ECL subsystem (barrel, forward and backward endcaps). | |
EclData::EclSubsystem | getDisplayedSubsystem () |
Get currently displayed ECL subsystem. | |
TString | getSubsystemTitle (EclData::EclSubsystem subsys) |
Return title of ECL subsystem to use in painter. | |
virtual void | getInformation (int px, int py, MultilineWidget *panel) |
Sets the information to be displayed in the provided MultilineWidget. | |
virtual EclPainter * | handleClick (int px, int py) |
Some EclPainters can shift to another view upon click. | |
virtual void | setXRange (int x1, int x2) |
Set XRange for histogram in EclPainter. | |
virtual void | Draw ()=0 |
Redraw the canvas. | |
Protected Member Functions | |
void | getNewRootObjectName (char *buf, int size) |
Make unique name for next root object. | |
Private Member Functions | |
void | cloneFrom (const EclPainter &other) |
Clone attributes from other EclPainter. | |
Private Attributes | |
EclData * | m_ecl_data |
Data to draw. | |
ECL::ECLChannelMapper * | m_mapper |
mapper for CellID <-> (crate, shaper, chid) conversion. | |
EclData::EclSubsystem | displayed_subsys |
Identifier of displayed ECL subsystem. | |
Static Private Attributes | |
static int | m_obj_counter = 0 |
Counter to make unique names for new root objects. | |
Painter for EclData, parent class, created with EclPainterFactory.
Definition at line 29 of file EclPainter.h.
|
explicit |
Default constructor.
data | Data to display. |
Definition at line 24 of file EclPainter.cc.
|
inline |
Copy constructor.
Definition at line 37 of file EclPainter.h.
|
virtual |
Definition at line 31 of file EclPainter.cc.
|
private |
Clone attributes from other EclPainter.
Definition at line 93 of file EclPainter.cc.
|
pure virtual |
Redraw the canvas.
Implemented in EclPainter1D, EclPainter2D, EclPainterCommon, and EclPainterPolar.
|
inline |
|
inline |
EclData::EclSubsystem getDisplayedSubsystem | ( | ) |
Get currently displayed ECL subsystem.
Definition at line 51 of file EclPainter.cc.
|
virtual |
Sets the information to be displayed in the provided MultilineWidget.
px | X coordinate of mouse cursor. |
py | Y coordinate of mouse cursor. |
panel | MultilineWidget to display the information |
Reimplemented in EclPainter1D, EclPainter2D, EclPainterCommon, and EclPainterPolar.
Definition at line 72 of file EclPainter.cc.
ECL::ECLChannelMapper * getMapper | ( | ) |
Return currently set ECLChannelMapper.
Definition at line 41 of file EclPainter.cc.
|
protected |
Make unique name for next root object.
Definition at line 88 of file EclPainter.cc.
TString getSubsystemTitle | ( | EclData::EclSubsystem | subsys | ) |
Return title of ECL subsystem to use in painter.
Definition at line 56 of file EclPainter.cc.
|
virtual |
Some EclPainters can shift to another view upon click.
(For example, clicking on crate reveals histogram of shapers in that crate)
Reimplemented in EclPainter1D.
Definition at line 79 of file EclPainter.cc.
|
inline |
|
inline |
Set EclData to display in painter.
Definition at line 44 of file EclPainter.h.
void setDisplayedSubsystem | ( | EclData::EclSubsystem | sys | ) |
Change between the displayed ECL subsystem (barrel, forward and backward endcaps).
Definition at line 46 of file EclPainter.cc.
void setMapper | ( | ECL::ECLChannelMapper * | mapper | ) |
Set ECLChannelMapper for CellID <-> (crate, shaper, chid) conversion.
Definition at line 36 of file EclPainter.cc.
|
virtual |
Set XRange for histogram in EclPainter.
Reimplemented in EclPainter1D.
Definition at line 84 of file EclPainter.cc.
|
private |
Identifier of displayed ECL subsystem.
Definition at line 116 of file EclPainter.h.
|
private |
Data to draw.
Definition at line 111 of file EclPainter.h.
|
private |
mapper for CellID <-> (crate, shaper, chid) conversion.
Definition at line 113 of file EclPainter.h.
|
staticprivate |
Counter to make unique names for new root objects.
Definition at line 109 of file EclPainter.h.