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 Attributes
FWModelIdFromEveSelector Class Reference

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

Inheritance diagram for FWModelIdFromEveSelector:
FWFromEveSelectorBase

Public Member Functions

void doSelect ()
 
void doUnselect ()
 
 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 30 of file FWModelIdFromEveSelector.h.

Constructor & Destructor Documentation

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

Definition at line 34 of file FWModelIdFromEveSelector.h.

34  :
35  m_id(iId) {}

Member Function Documentation

void FWModelIdFromEveSelector::doSelect ( )
virtual

Implements FWFromEveSelectorBase.

Definition at line 61 of file FWModelIdFromEveSelector.cc.

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

62 {
63  if( not m_id.item()->modelInfo(m_id.index()).isSelected() ) {
64  m_id.select();
65  }
66 }
int index() const
Definition: FWModelId.h:50
void select() const
Definition: FWModelId.cc:72
ModelInfo modelInfo(int iIndex) const
Definition: FWEventItem.cc:536
const FWEventItem * item() const
Definition: FWModelId.h:45
void FWModelIdFromEveSelector::doUnselect ( )
virtual

Implements FWFromEveSelectorBase.

Definition at line 69 of file FWModelIdFromEveSelector.cc.

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

70 {
71  if( m_id.item()->modelInfo(m_id.index()).isSelected() ) {
72  m_id.unselect();
73  }
74 }
void unselect() const
Definition: FWModelId.cc:68
int index() const
Definition: FWModelId.h:50
ModelInfo modelInfo(int iIndex) const
Definition: FWEventItem.cc:536
const FWEventItem * item() const
Definition: FWModelId.h:45
const FWModelId& FWModelIdFromEveSelector::id ( void  ) const
inline

Definition at line 40 of file FWModelIdFromEveSelector.h.

References m_id.

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

Definition at line 38 of file FWModelIdFromEveSelector.h.

References m_id.

38 { return m_id;}

Member Data Documentation

FWModelId FWModelIdFromEveSelector::m_id
private

Definition at line 54 of file FWModelIdFromEveSelector.h.

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