CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Private Attributes
FWModelId Class Reference

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

Public Types

enum  { kContainerIndex =-1 }
 

Public Member Functions

 FWModelId (const FWEventItem *iItem=0, int iIndex=kContainerIndex)
 
int index () const
 
const FWEventItemitem () const
 
bool operator< (const FWModelId &iRHS) const
 
void select () const
 
void setIndex (int iIndex)
 
void toggleSelect () const
 
void unselect () const
 

Private Attributes

int m_index
 
const FWEventItemm_item
 

Detailed Description

Description: identifies a particular model within an FWEventItem

Usage: <usage>

Definition at line 29 of file FWModelId.h.

Member Enumeration Documentation

anonymous enum
Enumerator
kContainerIndex 

Definition at line 33 of file FWModelId.h.

Constructor & Destructor Documentation

FWModelId::FWModelId ( const FWEventItem iItem = 0,
int  iIndex = kContainerIndex 
)
inline

Definition at line 34 of file FWModelId.h.

35  : m_item(iItem),m_index(iIndex) {
36  }
const FWEventItem * m_item
Definition: FWModelId.h:69
int m_index
Definition: FWModelId.h:70

Member Function Documentation

int FWModelId::index ( ) const
inline
const FWEventItem* FWModelId::item ( ) const
inline
bool FWModelId::operator< ( const FWModelId iRHS) const
inline

Definition at line 40 of file FWModelId.h.

References m_index, and m_item.

41  {
42  return m_item == iRHS.m_item ? m_index<iRHS.m_index : m_item<iRHS.m_item;
43  }
const FWEventItem * m_item
Definition: FWModelId.h:69
int m_index
Definition: FWModelId.h:70
void FWModelId::select ( ) const
void FWModelId::setIndex ( int  iIndex)
inline

Definition at line 60 of file FWModelId.h.

References m_index.

60  {
61  m_index=iIndex;
62  }
int m_index
Definition: FWModelId.h:70
void FWModelId::toggleSelect ( ) const

Definition at line 77 of file FWModelId.cc.

References m_index, m_item, and FWEventItem::toggleSelect().

77  {
79 }
const FWEventItem * m_item
Definition: FWModelId.h:69
void toggleSelect(int iIndex) const
Definition: FWEventItem.cc:265
int m_index
Definition: FWModelId.h:70
void FWModelId::unselect ( ) const

Definition at line 68 of file FWModelId.cc.

References m_index, m_item, and FWEventItem::unselect().

Referenced by FWModelIdFromEveSelector::doUnselect().

68  {
69  if(m_item) {m_item->unselect(m_index);}
70 }
void unselect(int iIndex) const
Definition: FWEventItem.cc:240
const FWEventItem * m_item
Definition: FWModelId.h:69
int m_index
Definition: FWModelId.h:70

Member Data Documentation

int FWModelId::m_index
private

Definition at line 70 of file FWModelId.h.

Referenced by index(), operator<(), select(), setIndex(), toggleSelect(), and unselect().

const FWEventItem* FWModelId::m_item
private

Definition at line 69 of file FWModelId.h.

Referenced by item(), operator<(), select(), toggleSelect(), and unselect().