34 void select(
const TObject*
object)
const;
37 void selectOnly(
const TEveElement* eveObj)
const;
74 void add(
const TObject* dataStoreObject, TEveElement* visualRepresentation);
77 void addCluster(
const TObject* dataStoreObject, TEveCaloData* caloData,
int towerID);
defines a bidirectional (many to many) mapping between TObjects in DataStore and their visual represe...
~VisualRepMap()
destructor
void addCluster(const TObject *dataStoreObject, TEveCaloData *caloData, int towerID)
Selection inside TEveCalo* is complicated, use this to keep track of ECL clusters.
const TObject * getDataStoreObject(TEveElement *elem) const
Get object represented by given visual representation.
bool m_currentlySelecting
are we currently in a select() call?
bool isCurrentlySelecting() const
are we currently in a select() call?
void clearSelection() const
Clear existing selection in Eve Browser.
static VisualRepMap * getInstance()
get instance pointer.
void selectRelated(TEveElement *eveObj) const
Select related objects.
TEveElement * getEveElement(const TObject *obj) const
Get (first) visual representation of given object.
std::vector< EveTower * > m_eclTowers
individual ECL towers (getting them out of TEve is hard).
void selectOnly(const TEveElement *eveObj) const
Deselect all other objects.
void select(const TObject *object) const
Select the representation of the given object.
DataStoreEveElementMap * m_dataStoreEveElementMap
Map DataStore contents in current event with their visual representation.
void clear()
Remove all contents in map.
VisualRepMap & operator=(const VisualRepMap &)=delete
no assignment
VisualRepMap(const VisualRepMap &)=delete
no copy ctor
VisualRepMap()
default constructor
void add(const TObject *dataStoreObject, TEveElement *visualRepresentation)
Generic function to keep track of which objects have which visual representation.
bool isVisualized(const TObject *obj)
Does obj have a visualization?
Hide implementation in private class.
Abstract base class for different kinds of events.