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 Member Functions | Private Attributes
FWEnumParameter Class Reference

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

Inheritance diagram for FWEnumParameter:
FWGenericParameterWithRange< T > FWGenericParameter< T > FWParameterBase FWConfigurable

Public Member Functions

bool addEntry (Long_t id, const std::string &txt)
 
const std::map< Long_t,
std::string > & 
entryMap () const
 
 FWEnumParameter ()
 
 FWEnumParameter (FWParameterizable *iParent, const std::string &iName, const long &iDefault=0, long iMin=-1, long iMax=-1)
 
template<class K >
 FWEnumParameter (FWParameterizable *iParent, const std::string &iName, K iCallback, const long &iDefault=0, long iMin=-1, long iMax=-1)
 
- Public Member Functions inherited from FWGenericParameterWithRange< T >
 FWGenericParameterWithRange (void)
 
 FWGenericParameterWithRange (FWParameterizable *iParent, const std::string &iName, const T &iDefault=T(), T iMin=-1, T iMax=-1)
 
template<class K >
 FWGenericParameterWithRange (FWParameterizable *iParent, const std::string &iName, K iCallback, const T &iDefault=T(), T iMin=-1, T iMax=-1)
 
T max () const
 
T min () const
 
- Public Member Functions inherited from FWGenericParameter< T >
virtual void addTo (FWConfiguration &iTo) const
 
 FWGenericParameter ()
 
 FWGenericParameter (FWParameterizable *iParent, const std::string &iName, const T &iDefault=T())
 
template<class K >
 FWGenericParameter (FWParameterizable *iParent, const std::string &iName, K iCallback, const T &iDefault=T())
 
void set (T iValue)
 
virtual void setFrom (const FWConfiguration &iFrom)
 
T value () const
 
- Public Member Functions inherited from FWParameterBase
 FWParameterBase (FWParameterizable *iParent, const std::string &iName)
 
const std::string & name () const
 
virtual ~FWParameterBase ()
 
- Public Member Functions inherited from FWConfigurable
 FWConfigurable ()
 
virtual ~FWConfigurable ()
 

Private Member Functions

 FWEnumParameter (const FWEnumParameter &)
 
const FWEnumParameteroperator= (const FWEnumParameter &)
 

Private Attributes

std::map< Long_t, std::string > m_enumEntries
 

Additional Inherited Members

- Public Types inherited from FWGenericParameter< T >
typedef T value_type
 
- Public Attributes inherited from FWGenericParameter< T >
sigc::signal< void, Tchanged_
 

Detailed Description

Description: Specialization of FWLongParameter to allow drop-down menu GUI.

Usage: <usage>

Definition at line 30 of file FWEnumParameter.h.

Constructor & Destructor Documentation

FWEnumParameter::FWEnumParameter ( )
inline

Definition at line 34 of file FWEnumParameter.h.

34  : FWLongParameter()
35  {}
FWParameters::Long FWLongParameter
Definition: FWParameters.h:36
FWEnumParameter::FWEnumParameter ( FWParameterizable iParent,
const std::string &  iName,
const long &  iDefault = 0,
long  iMin = -1,
long  iMax = -1 
)
inline

Definition at line 37 of file FWEnumParameter.h.

41  :
42  FWLongParameter(iParent, iName, iDefault, iMin, iMax)
43  {}
FWParameters::Long FWLongParameter
Definition: FWParameters.h:36
template<class K >
FWEnumParameter::FWEnumParameter ( FWParameterizable iParent,
const std::string &  iName,
iCallback,
const long &  iDefault = 0,
long  iMin = -1,
long  iMax = -1 
)
inline

Definition at line 46 of file FWEnumParameter.h.

51  :
52  FWLongParameter(iParent, iName, iCallback, iDefault, iMin, iMax)
53  {}
FWParameters::Long FWLongParameter
Definition: FWParameters.h:36
FWEnumParameter::FWEnumParameter ( const FWEnumParameter )
private

Member Function Documentation

bool FWEnumParameter::addEntry ( Long_t  id,
const std::string &  txt 
)
inline

Definition at line 61 of file FWEnumParameter.h.

References m_enumEntries.

Referenced by CmsShowCommon::CmsShowCommon(), FW3DViewBase::FW3DViewBase(), FWEveView::FWEveView(), FWGeometryTableView::FWGeometryTableView(), FWLegoViewBase::FWLegoViewBase(), and FWViewEnergyScale::FWViewEnergyScale().

62  {
63  return m_enumEntries.insert(std::make_pair(id, txt)).second;
64  }
std::map< Long_t, std::string > m_enumEntries
const std::map<Long_t, std::string>& FWEnumParameter::entryMap ( ) const
inline

Definition at line 66 of file FWEnumParameter.h.

References m_enumEntries.

Referenced by FWEnumParameterSetter::build().

66 { return m_enumEntries; }
std::map< Long_t, std::string > m_enumEntries
const FWEnumParameter& FWEnumParameter::operator= ( const FWEnumParameter )
private

Member Data Documentation

std::map<Long_t, std::string> FWEnumParameter::m_enumEntries
private

Definition at line 73 of file FWEnumParameter.h.

Referenced by addEntry(), and entryMap().