Public Member Functions | |
virtual void | doSelect () |
virtual void | doUnselect () |
FWSecondarySelectableSelector (const TEveSecondarySelectable::SelectionSet_t &s, const FWEventItem *i) | |
const FWEventItem * | item () const |
~FWSecondarySelectableSelector () | |
Private Member Functions | |
void | syncSelection () |
Private Attributes | |
const FWEventItem * | m_item |
const TEveSecondarySelectable::SelectionSet_t & | m_selected |
Definition at line 29 of file FWDigitSetProxyBuilder.cc.
FWSecondarySelectableSelector::FWSecondarySelectableSelector | ( | const TEveSecondarySelectable::SelectionSet_t & | s, |
const FWEventItem * | i | ||
) | [inline] |
Definition at line 32 of file FWDigitSetProxyBuilder.cc.
: m_selected(s), m_item(i) {}
FWSecondarySelectableSelector::~FWSecondarySelectableSelector | ( | ) | [inline] |
Definition at line 33 of file FWDigitSetProxyBuilder.cc.
{}
virtual void FWSecondarySelectableSelector::doSelect | ( | ) | [inline, virtual] |
Implements FWFromEveSelectorBase.
Definition at line 35 of file FWDigitSetProxyBuilder.cc.
References syncSelection().
{ syncSelection(); }
virtual void FWSecondarySelectableSelector::doUnselect | ( | ) | [inline, virtual] |
Implements FWFromEveSelectorBase.
Definition at line 40 of file FWDigitSetProxyBuilder.cc.
References syncSelection().
{ syncSelection(); }
const FWEventItem* FWSecondarySelectableSelector::item | ( | ) | const [inline] |
Definition at line 45 of file FWDigitSetProxyBuilder.cc.
References m_item.
Referenced by FWDigitSetProxyBuilder::getTooltip().
{ return m_item; }
void FWSecondarySelectableSelector::syncSelection | ( | ) | [inline, private] |
Definition at line 51 of file FWDigitSetProxyBuilder.cc.
References i, FWEventItem::ModelInfo::isSelected(), m_item, m_selected, FWEventItem::modelInfo(), FWEventItem::select(), findQualityFiles::size, FWEventItem::size(), and FWEventItem::unselect().
Referenced by doSelect(), and doUnselect().
{ size_t size = m_item->size(); for (size_t i = 0; i < size; ++i) { FWEventItem::ModelInfo modelInfo = m_item->modelInfo(i); TEveSecondarySelectable::SelectionSet_ci si = m_selected.find(i); if ((si != m_selected.end()) != modelInfo.isSelected() ) { if (si != m_selected.end()) m_item->select(i); else m_item->unselect(i); } } }
const FWEventItem* FWSecondarySelectableSelector::m_item [private] |
Definition at line 49 of file FWDigitSetProxyBuilder.cc.
Referenced by item(), and syncSelection().
const TEveSecondarySelectable::SelectionSet_t& FWSecondarySelectableSelector::m_selected [private] |
Definition at line 48 of file FWDigitSetProxyBuilder.cc.
Referenced by syncSelection().