CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
FWModelIdFromEveSelector Class Reference

#include <Fireworks/Core/interface/FWModelIdFromEveSelector.h>

Inheritance diagram for FWModelIdFromEveSelector:
FWFromEveSelectorBase

Public Member Functions

void doSelect () override
 
void doUnselect () override
 
 FWModelIdFromEveSelector (const FWModelId &iId=FWModelId())
 
const FWModelIdid () const
 
 operator FWModelId () const
 
- Public Member Functions inherited from FWFromEveSelectorBase
 FWFromEveSelectorBase ()
 
virtual ~FWFromEveSelectorBase ()
 

Private Attributes

FWModelId m_id
 

Detailed Description

Description: [one line class summary]

Usage: <usage>

Definition at line 29 of file FWModelIdFromEveSelector.h.

Constructor & Destructor Documentation

◆ FWModelIdFromEveSelector()

FWModelIdFromEveSelector::FWModelIdFromEveSelector ( const FWModelId iId = FWModelId())
inline

Definition at line 31 of file FWModelIdFromEveSelector.h.

31 : m_id(iId) {}

Member Function Documentation

◆ doSelect()

void FWModelIdFromEveSelector::doSelect ( )
overridevirtual

Implements FWFromEveSelectorBase.

Definition at line 58 of file FWModelIdFromEveSelector.cc.

58  {
59  if (not m_id.item()->modelInfo(m_id.index()).isSelected()) {
60  m_id.select();
61  }
62 }

References FWModelId::index(), FWModelId::item(), m_id, FWEventItem::modelInfo(), and FWModelId::select().

◆ doUnselect()

void FWModelIdFromEveSelector::doUnselect ( )
overridevirtual

Implements FWFromEveSelectorBase.

Definition at line 64 of file FWModelIdFromEveSelector.cc.

64  {
65  if (m_id.item()->modelInfo(m_id.index()).isSelected()) {
66  m_id.unselect();
67  }
68 }

References FWModelId::index(), FWModelId::item(), m_id, FWEventItem::modelInfo(), and FWModelId::unselect().

◆ id()

const FWModelId& FWModelIdFromEveSelector::id ( void  ) const
inline

Definition at line 36 of file FWModelIdFromEveSelector.h.

36 { return m_id; }

References m_id.

◆ operator FWModelId()

FWModelIdFromEveSelector::operator FWModelId ( ) const
inline

Definition at line 34 of file FWModelIdFromEveSelector.h.

34 { return m_id; }

References m_id.

Member Data Documentation

◆ m_id

FWModelId FWModelIdFromEveSelector::m_id
private

Definition at line 50 of file FWModelIdFromEveSelector.h.

Referenced by doSelect(), doUnselect(), id(), and operator FWModelId().

FWModelIdFromEveSelector::m_id
FWModelId m_id
Definition: FWModelIdFromEveSelector.h:50
FWEventItem::modelInfo
ModelInfo modelInfo(int iIndex) const
Definition: FWEventItem.cc:446
FWModelId::item
const FWEventItem * item() const
Definition: FWModelId.h:39
FWModelId::unselect
void unselect() const
Definition: FWModelId.cc:65
FWModelId::index
int index() const
Definition: FWModelId.h:41
FWModelId::select
void select() const
Definition: FWModelId.cc:70