CMS 3D CMS Logo

Public Member Functions | Private Member Functions | Private Attributes

FWSecondarySelectableSelector Class Reference

Inheritance diagram for FWSecondarySelectableSelector:
FWFromEveSelectorBase

List of all members.

Public Member Functions

virtual void doSelect ()
virtual void doUnselect ()
 FWSecondarySelectableSelector (const TEveSecondarySelectable::SelectionSet_t &s, const FWEventItem *i)
const FWEventItemitem () const
 ~FWSecondarySelectableSelector ()

Private Member Functions

void syncSelection ()

Private Attributes

const FWEventItemm_item
const
TEveSecondarySelectable::SelectionSet_t & 
m_selected

Detailed Description

Definition at line 29 of file FWDigitSetProxyBuilder.cc.


Constructor & Destructor Documentation

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.

{}

Member Function Documentation

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);
         }
      }
   }

Member Data Documentation

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().