CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CmsShowCommon.h
Go to the documentation of this file.
1 #ifndef Fireworks_Core_CmsShowCommon_h
2 #define Fireworks_Core_CmsShowCommon_h
3 // -*- C++ -*-
4 //
5 // Package: Core
6 // Class : CmsShowCommon
7 //
16 //
17 // Original Author: Alja Mrak-Tadel
18 // Created: Fri Sep 10 14:51:07 CEST 2010
19 //
20 
21 #include <sigc++/signal.h>
22 #include <sigc++/sigc++.h>
23 
24 #include "Rtypes.h"
25 
32 
33 class CmsShowCommonPopup;
34 class FWColorManager;
35 namespace fireworks
36 {
37 class Context;
38 }
39 
41 {
42  friend class CmsShowCommonPopup;
43 
44 public:
46  virtual ~CmsShowCommon();
47 
48  // ---------- const member functions ---------------------
49  virtual void addTo(FWConfiguration&) const;
50 
51  // ---------- static member functions --------------------
52 
53  // ---------- member functions ---------------------------
54  virtual void setFrom(const FWConfiguration&);
55 
56  void setTrackBreakMode();
57  void setDrawBreakMarkers();
58 
59  int gamma() { return m_gamma.value(); }
60  void setGamma();
61  void switchBackground();
62 
63  void setGeomColor(FWGeomColorIndex, Color_t);
64  void setGeomTransparency(int val, bool projected);
65 
66  FWViewEnergyScale* getEnergyScale() const { return m_energyScale.get(); }
67 
68 
69  UChar_t getProjTrackBreaking() const { return m_trackBreak.value(); }
70  bool getRnrPTBMarkers() const { return m_drawBreakPoints.value(); }
71 
72 protected:
73  const FWColorManager* colorManager() const;
74 
75  // ---------- member data --------------------------------
76 
77 
79 
82 
83  // general colors
84  mutable FWLongParameter m_backgroundColor; // can be set via Ctr+b key binding
86 
87  // geom colors
91 
92 
93  std::auto_ptr<FWViewEnergyScale> m_energyScale;
94 
95 private:
96  CmsShowCommon(const CmsShowCommon&); // stop default
97  const CmsShowCommon& operator=(const CmsShowCommon&); // stop default
98 };
99 
100 
101 #endif
const CmsShowCommon & operator=(const CmsShowCommon &)
bool getRnrPTBMarkers() const
Definition: CmsShowCommon.h:70
FWBoolParameter m_drawBreakPoints
Definition: CmsShowCommon.h:81
FWLongParameter m_backgroundColor
Definition: CmsShowCommon.h:84
FWGeomColorIndex
void setTrackBreakMode()
FWLongParameter * m_geomColors[kFWGeomColorSize]
Definition: CmsShowCommon.h:90
const FWColorManager * colorManager() const
FWLongParameter m_gamma
Definition: CmsShowCommon.h:85
void setGeomTransparency(int val, bool projected)
virtual ~CmsShowCommon()
UChar_t getProjTrackBreaking() const
Definition: CmsShowCommon.h:69
void setGeomColor(FWGeomColorIndex, Color_t)
fireworks::Context * m_context
Definition: CmsShowCommon.h:78
void switchBackground()
FWLongParameter m_geomTransparency3D
Definition: CmsShowCommon.h:89
void setDrawBreakMarkers()
FWLongParameter m_geomTransparency2D
Definition: CmsShowCommon.h:88
FWViewEnergyScale * getEnergyScale() const
Definition: CmsShowCommon.h:66
std::auto_ptr< FWViewEnergyScale > m_energyScale
Definition: CmsShowCommon.h:93
virtual void addTo(FWConfiguration &) const
virtual void setFrom(const FWConfiguration &)
FWEnumParameter m_trackBreak
Definition: CmsShowCommon.h:80
CmsShowCommon(fireworks::Context *)