test
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 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 ( )
virtual

Implements FWFromEveSelectorBase.

Definition at line 60 of file FWModelIdFromEveSelector.cc.

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

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

Implements FWFromEveSelectorBase.

Definition at line 68 of file FWModelIdFromEveSelector.cc.

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

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