CMS 3D CMS Logo

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 
36 
37 public:
40  ~FWViewEnergyScale() override;
41 
42  void updateScaleFactors(float iMaxVal);
43 
44  float getScaleFactor3D() const { return m_scaleFactor3D; }
45  float getScaleFactorLego() const { return m_scaleFactorLego; }
46 
47  bool getPlotEt() const { return m_plotEt.value(); }
48 
49  void scaleParameterChanged() const;
50 
51  sigc::signal<void()> parameterChanged_;
52 
53  // added for debug
54  const std::string& name() const { return m_name; }
55 
56  void setFrom(const FWConfiguration&) override;
57  void SetFromCmsShowCommonConfig(long mode, float convert, float maxH, bool et);
58 
59 protected:
64 
65 public:
66  FWViewEnergyScale(const FWViewEnergyScale&) = delete; // stop default
67  const FWViewEnergyScale& operator=(const FWViewEnergyScale&) = delete; // stop default
68 
69 private:
70  float calculateScaleFactor(float iMaxVal, bool isLego) const;
71 
73 
74  // cached
77 };
78 
79 #endif
FWDoubleParameter m_fixedValToHeight
FWBoolParameter m_plotEt
void updateScaleFactors(float iMaxVal)
bool getPlotEt() const
const std::string & name() const
float getScaleFactorLego() const
const std::string m_name
void scaleParameterChanged() const
void SetFromCmsShowCommonConfig(long mode, float convert, float maxH, bool et)
void setFrom(const FWConfiguration &) override
sigc::signal< void()> parameterChanged_
W convert(V v)
Definition: ExtVec.h:66
float getScaleFactor3D() const
const FWViewEnergyScale & operator=(const FWViewEnergyScale &)=delete
FWDoubleParameter m_maxTowerHeight
FWEnumParameter m_scaleMode
~FWViewEnergyScale() override
FWViewEnergyScale(std::string name, int version)
float calculateScaleFactor(float iMaxVal, bool isLego) const