Painter for EclData, parent class, created with EclPainterFactory.
More...
#include <EclPainter.h>
|
| 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.
◆ EclPainter() [1/2]
Default constructor.
- Parameters
-
Definition at line 24 of file EclPainter.cc.
24 :
26{
29}
ECL::ECLChannelMapper * m_mapper
mapper for CellID <-> (crate, shaper, chid) conversion.
void setData(EclData *data)
Set EclData to display in painter.
EclData::EclSubsystem displayed_subsys
Identifier of displayed ECL subsystem.
◆ EclPainter() [2/2]
◆ ~EclPainter()
◆ cloneFrom()
Clone attributes from other EclPainter.
Definition at line 93 of file EclPainter.cc.
94{
98}
EclData * m_ecl_data
Data to draw.
◆ Draw()
◆ getData() [1/2]
◆ getData() [2/2]
◆ getDisplayedSubsystem()
Get currently displayed ECL subsystem.
Definition at line 51 of file EclPainter.cc.
◆ getInformation()
◆ getMapper()
Return currently set ECLChannelMapper.
Definition at line 41 of file EclPainter.cc.
◆ getNewRootObjectName()
| void getNewRootObjectName |
( |
char * | buf, |
|
|
int | size ) |
|
staticprotected |
Make unique name for next root object.
Definition at line 88 of file EclPainter.cc.
89{
91}
static int m_obj_counter
Counter to make unique names for new root objects.
◆ getSubsystemTitle()
Return title of ECL subsystem to use in painter.
Definition at line 56 of file EclPainter.cc.
57{
58 switch (subsys) {
59 case EclData::BARR:
60 return TString("Barrel");
61 case EclData::FORW:
62 return TString("Forward endcap");
63 case EclData::BACKW:
64 return TString("Backward endcap");
65 case EclData::ALL:
66 return TString("Full ECL");
67 default:
68 return TString();
69 }
70}
◆ handleClick()
Some EclPainters can shift to another view upon click.
(For example, clicking on crate reveals histogram of shapers in that crate)
- Returns
- EclPainter with new perspective/range.
Reimplemented in EclPainter1D.
Definition at line 79 of file EclPainter.cc.
80{
81 return nullptr;
82}
◆ operator=()
Assignment operator.
Definition at line 41 of file EclPainter.h.
41{ cloneFrom(other); return *this; }
◆ setData()
◆ setDisplayedSubsystem()
Change between the displayed ECL subsystem (barrel, forward and backward endcaps).
Definition at line 46 of file EclPainter.cc.
◆ setMapper()
Set ECLChannelMapper for CellID <-> (crate, shaper, chid) conversion.
Definition at line 36 of file EclPainter.cc.
◆ setXRange()
| void setXRange |
( |
int | x1, |
|
|
int | x2 ) |
|
virtual |
◆ displayed_subsys
Identifier of displayed ECL subsystem.
Definition at line 116 of file EclPainter.h.
◆ m_ecl_data
◆ m_mapper
mapper for CellID <-> (crate, shaper, chid) conversion.
Definition at line 113 of file EclPainter.h.
◆ m_obj_counter
Counter to make unique names for new root objects.
Definition at line 109 of file EclPainter.h.
The documentation for this class was generated from the following files: