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 ( const FWModelId iId = FWModelId())
inline

Definition at line 33 of file FWModelIdFromEveSelector.h.

33  :
34  m_id(iId) {}

Member Function Documentation

void FWModelIdFromEveSelector::doSelect ( )
overridevirtual

Implements FWFromEveSelectorBase.

Definition at line 60 of file FWModelIdFromEveSelector.cc.

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

Referenced by id().

61 {
62  if( not m_id.item()->modelInfo(m_id.index()).isSelected() ) {
63  m_id.select();
64  }
65 }
int index() const
Definition: FWModelId.h:49
void select() const
Definition: FWModelId.cc:71
ModelInfo modelInfo(int iIndex) const
Definition: FWEventItem.cc:537
const FWEventItem * item() const
Definition: FWModelId.h:44
void FWModelIdFromEveSelector::doUnselect ( )
overridevirtual

Implements FWFromEveSelectorBase.

Definition at line 68 of file FWModelIdFromEveSelector.cc.

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

Referenced by id().

69 {
70  if( m_id.item()->modelInfo(m_id.index()).isSelected() ) {
71  m_id.unselect();
72  }
73 }
void unselect() const
Definition: FWModelId.cc:67
int index() const
Definition: FWModelId.h:49
ModelInfo modelInfo(int iIndex) const
Definition: FWEventItem.cc:537
const FWEventItem * item() const
Definition: FWModelId.h:44
const FWModelId& FWModelIdFromEveSelector::id ( void  ) const
inline

Definition at line 39 of file FWModelIdFromEveSelector.h.

References doSelect(), doUnselect(), and m_id.

39 {return m_id;}
FWModelIdFromEveSelector::operator FWModelId ( ) const
inline

Definition at line 37 of file FWModelIdFromEveSelector.h.

References m_id.

37 { return m_id;}

Member Data Documentation

FWModelId FWModelIdFromEveSelector::m_id
private

Definition at line 53 of file FWModelIdFromEveSelector.h.

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