CMS 3D CMS Logo

Public Member Functions | Private Member Functions | Private Attributes

FWViewEnergyScaleEditor Class Reference

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

Inheritance diagram for FWViewEnergyScaleEditor:
FWParameterSetterEditorBase

List of all members.

Public Member Functions

 ClassDef (FWViewEnergyScaleEditor, 0)
 FWViewEnergyScaleEditor (FWViewEnergyScale *s, TGCompositeFrame *w, bool addAutoScaleControll=true)
void setEnabled (bool)
virtual ~FWViewEnergyScaleEditor ()

Private Member Functions

void addParam (const FWParameterBase *, const char *title=0)
 FWViewEnergyScaleEditor (const FWViewEnergyScaleEditor &)
const FWViewEnergyScaleEditoroperator= (const FWViewEnergyScaleEditor &)

Private Attributes

bool m_enabled
FWViewEnergyScalem_scale
std::vector< boost::shared_ptr
< FWParameterSetterBase > > 
m_setters

Detailed Description

Description: [one line class summary]

Usage: <usage>

Definition at line 38 of file FWViewEnergyScaleEditor.h.


Constructor & Destructor Documentation

FWViewEnergyScaleEditor::FWViewEnergyScaleEditor ( FWViewEnergyScale s,
TGCompositeFrame *  w,
bool  addAutoScaleControll = true 
)
FWViewEnergyScaleEditor::~FWViewEnergyScaleEditor ( ) [virtual]

Definition at line 49 of file FWViewEnergyScaleEditor.cc.

{
}
FWViewEnergyScaleEditor::FWViewEnergyScaleEditor ( const FWViewEnergyScaleEditor ) [private]

Member Function Documentation

void FWViewEnergyScaleEditor::addParam ( const FWParameterBase param,
const char *  title = 0 
) [private]

Definition at line 69 of file FWViewEnergyScaleEditor.cc.

References m_setters, and FWParameterSetterBase::makeSetterFor().

Referenced by FWViewEnergyScaleEditor().

{
   int leftPad = 0;
   if (title)
   {
      leftPad = 10;
      AddFrame(new TGLabel(this, title), new TGLayoutHints(kLHintsLeft, leftPad, 0, 0, 0));   
      leftPad *= 2;
   }
   
   boost::shared_ptr<FWParameterSetterBase> ptr( FWParameterSetterBase::makeSetterFor((FWParameterBase*)param) );
   ptr->attach((FWParameterBase*)param, this);
   TGFrame* pframe = ptr->build(this);
   AddFrame(pframe, new TGLayoutHints(kLHintsLeft, leftPad, 0, 0, 0));
   m_setters.push_back(ptr);
}
FWViewEnergyScaleEditor::ClassDef ( FWViewEnergyScaleEditor  ,
 
)
const FWViewEnergyScaleEditor& FWViewEnergyScaleEditor::operator= ( const FWViewEnergyScaleEditor ) [private]
void FWViewEnergyScaleEditor::setEnabled ( bool  x)

Definition at line 58 of file FWViewEnergyScaleEditor.cc.

References i, m_enabled, m_setters, and ExpressReco_HICollisions_FallBack::x.

Referenced by FWEveView::populateController(), and FWEveView::useGlobalEnergyScaleChanged().

{
   m_enabled =x;
   typedef  std::vector<boost::shared_ptr<FWParameterSetterBase> > sList;
   for (sList::iterator i = m_setters.begin(); i!=m_setters.end(); ++i)
   {
      (*i)->setEnabled(m_enabled);
   }
}

Member Data Documentation

Definition at line 62 of file FWViewEnergyScaleEditor.h.

Referenced by setEnabled().

Definition at line 61 of file FWViewEnergyScaleEditor.h.

Referenced by FWViewEnergyScaleEditor().

std::vector<boost::shared_ptr<FWParameterSetterBase> > FWViewEnergyScaleEditor::m_setters [private]

Definition at line 65 of file FWViewEnergyScaleEditor.h.

Referenced by addParam(), and setEnabled().