CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
FWViewEnergyScale.h
Go to the documentation of this file.
1 #ifndef Fireworks_Core_FWViewEnergyScale_h
2 #define Fireworks_Core_FWViewEnergyScale_h
3 // -*- C++ -*-
4 //
5 // Package: Core
6 // Class : FWViewEnergyScale
7 //
16 //
17 // Original Author: Alja Mrak-Tadel
18 // Created: Fri Jun 18 20:37:55 CEST 2010
19 //
20 
21 // system include files
22 
23 // user include files
24 
30 
31 // forward declarations
32 class FWEveView;
33 
35 {
37 
38 public:
41  virtual ~FWViewEnergyScale();
42 
43  void updateScaleFactors(float iMaxVal);
44 
45  float getScaleFactor3D() const { return m_scaleFactor3D; }
46  float getScaleFactorLego() const { return m_scaleFactorLego; }
47 
48  bool getPlotEt() const { return m_plotEt.value(); }
49 
50  void scaleParameterChanged() const;
51 
52  sigc::signal<void> parameterChanged_;
53 
54  // added for debug
55  const std::string& name() const { return m_name; }
56 
57  virtual void setFrom(const FWConfiguration&);
58  void SetFromCmsShowCommonConfig(long mode, float convert, float maxH, bool et);
59 
60 protected:
65 
66 private:
67  FWViewEnergyScale(const FWViewEnergyScale&); // stop default
68  const FWViewEnergyScale& operator=(const FWViewEnergyScale&); // stop default
69 
70  float calculateScaleFactor(float iMaxVal, bool isLego) const;
71 
73 
74  // cached
77 };
78 
79 #endif
float getScaleFactor3D() const
FWDoubleParameter m_fixedValToHeight
virtual ~FWViewEnergyScale()
const FWViewEnergyScale & operator=(const FWViewEnergyScale &)
void scaleParameterChanged() const
FWBoolParameter m_plotEt
void updateScaleFactors(float iMaxVal)
void convert(uint32 i, char_uint32 v)
Definition: MsgTools.h:46
const std::string m_name
virtual void setFrom(const FWConfiguration &)
float calculateScaleFactor(float iMaxVal, bool isLego) const
float getScaleFactorLego() const
void SetFromCmsShowCommonConfig(long mode, float convert, float maxH, bool et)
FWDoubleParameter m_maxTowerHeight
FWEnumParameter m_scaleMode
sigc::signal< void > parameterChanged_
const std::string & name() const
FWViewEnergyScale(std::string name, int version)
bool getPlotEt() const