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 // $Id: FWViewEnergyScale.h,v 1.8 2010/11/27 22:08:23 amraktad Exp $
20 //
21 
22 // system include files
23 
24 // user include files
25 
31 
32 // forward declarations
33 class FWEveView;
34 
36 {
38 
39 public:
42  virtual ~FWViewEnergyScale();
43 
44  void updateScaleFactors(float iMaxVal);
45 
46  float getScaleFactor3D() const { return m_scaleFactor3D; }
47  float getScaleFactorLego() const { return m_scaleFactorLego; }
48 
49  bool getPlotEt() const { return m_plotEt.value(); }
50 
51  void scaleParameterChanged() const;
52 
53  sigc::signal<void> parameterChanged_;
54 
55  // added for debug
56  const std::string& name() const { return m_name; }
57 
58  virtual void setFrom(const FWConfiguration&);
59  void SetFromCmsShowCommonConfig(long mode, float convert, float maxH, bool et);
60 
61 protected:
66 
67 private:
68  FWViewEnergyScale(const FWViewEnergyScale&); // stop default
69  const FWViewEnergyScale& operator=(const FWViewEnergyScale&); // stop default
70 
71  float calculateScaleFactor(float iMaxVal, bool isLego) const;
72 
74 
75  // cached
78 };
79 
80 #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