CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Member Functions | Private Attributes
FWSecondarySelectableSelector Class Reference
Inheritance diagram for FWSecondarySelectableSelector:
FWFromEveSelectorBase

Public Member Functions

virtual void doSelect ()
 
virtual void doUnselect ()
 
 FWSecondarySelectableSelector (const TEveSecondarySelectable::SelectionSet_t &s, const FWEventItem *i)
 
const FWEventItemitem () const
 
 ~FWSecondarySelectableSelector ()
 
- Public Member Functions inherited from FWFromEveSelectorBase
 FWFromEveSelectorBase ()
 
virtual ~FWFromEveSelectorBase ()
 

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.

32 : m_selected(s), m_item(i) {}
const TEveSecondarySelectable::SelectionSet_t & m_selected
FWSecondarySelectableSelector::~FWSecondarySelectableSelector ( )
inline

Definition at line 33 of file FWDigitSetProxyBuilder.cc.

33 {}

Member Function Documentation

virtual void FWSecondarySelectableSelector::doSelect ( )
inlinevirtual

Implements FWFromEveSelectorBase.

Definition at line 35 of file FWDigitSetProxyBuilder.cc.

References syncSelection().

36  {
37  syncSelection();
38  }
virtual void FWSecondarySelectableSelector::doUnselect ( )
inlinevirtual

Implements FWFromEveSelectorBase.

Definition at line 40 of file FWDigitSetProxyBuilder.cc.

References syncSelection().

41  {
42  syncSelection();
43  }
const FWEventItem* FWSecondarySelectableSelector::item ( ) const
inline
void FWSecondarySelectableSelector::syncSelection ( )
inlineprivate

Definition at line 51 of file FWDigitSetProxyBuilder.cc.

References i, FWEventItem::ModelInfo::isSelected(), m_item, m_selected, FWEventItem::modelInfo(), FWEventItem::select(), FWEventItem::size(), findQualityFiles::size, and FWEventItem::unselect().

Referenced by doSelect(), and doUnselect().

52  {
53  size_t size = m_item->size();
54  for (size_t i = 0; i < size; ++i)
55  {
57  TEveSecondarySelectable::SelectionSet_ci si = m_selected.find(i);
58  if ((si != m_selected.end()) != modelInfo.isSelected() )
59  {
60  if (si != m_selected.end())
61  m_item->select(i);
62  else
63  m_item->unselect(i);
64  }
65  }
66  }
int i
Definition: DBlmapReader.cc:9
bool isSelected() const
Definition: FWEventItem.h:71
void unselect(int iIndex) const
Definition: FWEventItem.cc:240
size_t size() const
Definition: FWEventItem.cc:549
const TEveSecondarySelectable::SelectionSet_t & m_selected
void select(int iIndex) const
Definition: FWEventItem.cc:251
ModelInfo modelInfo(int iIndex) const
Definition: FWEventItem.cc:536
tuple size
Write out results.

Member Data Documentation

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