test
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 #include "TGLUtil.h"
26 
33 
34 class CmsShowCommonPopup;
35 class FWColorManager;
36 namespace fireworks
37 {
38 class Context;
39 }
40 
42 {
43  friend class CmsShowCommonPopup;
44 
45 public:
47  virtual ~CmsShowCommon();
48 
49  // ---------- const member functions ---------------------
50  virtual void addTo(FWConfiguration&) const;
51 
52  // ---------- static member functions --------------------
53 
54  // ---------- member functions ---------------------------
55  virtual void setFrom(const FWConfiguration&);
56 
57  void setTrackBreakMode();
58  void setDrawBreakMarkers();
59 
60  int gamma() { return m_gamma.value(); }
61  void setGamma();
62  void switchBackground();
63 
64  void setGeomColor(FWGeomColorIndex, Color_t);
65  void setGeomTransparency(int val, bool projected);
66 
67  FWViewEnergyScale* getEnergyScale() const { return m_energyScale.get(); }
68 
69  const TGLColorSet& getLightColorSet() const { return m_lightColorSet; }
70  const TGLColorSet& getDarkColorSet() const { return m_darkColorSet; }
71 
72 
73  UChar_t getProjTrackBreaking() const { return m_trackBreak.value(); }
74  bool getRnrPTBMarkers() const { return m_drawBreakPoints.value(); }
75 
76 protected:
77  const FWColorManager* colorManager() const;
78 
79  // ---------- member data --------------------------------
80 
81 
83 
86 
87  // general colors
88  mutable FWLongParameter m_backgroundColor; // can be set via Ctr+b key binding
90 
91  // geom colors
95 
96  TGLColorSet m_lightColorSet;
97  TGLColorSet m_darkColorSet;
98 
99  std::auto_ptr<FWViewEnergyScale> m_energyScale;
100 
101 private:
102  CmsShowCommon(const CmsShowCommon&); // stop default
103  const CmsShowCommon& operator=(const CmsShowCommon&); // stop default
104 };
105 
106 
107 #endif
const CmsShowCommon & operator=(const CmsShowCommon &)
TGLColorSet m_lightColorSet
Definition: CmsShowCommon.h:96
bool getRnrPTBMarkers() const
Definition: CmsShowCommon.h:74
FWBoolParameter m_drawBreakPoints
Definition: CmsShowCommon.h:85
FWLongParameter m_backgroundColor
Definition: CmsShowCommon.h:88
FWGeomColorIndex
void setTrackBreakMode()
FWLongParameter * m_geomColors[kFWGeomColorSize]
Definition: CmsShowCommon.h:94
const FWColorManager * colorManager() const
FWLongParameter m_gamma
Definition: CmsShowCommon.h:89
void setGeomTransparency(int val, bool projected)
virtual ~CmsShowCommon()
UChar_t getProjTrackBreaking() const
Definition: CmsShowCommon.h:73
const TGLColorSet & getLightColorSet() const
Definition: CmsShowCommon.h:69
void setGeomColor(FWGeomColorIndex, Color_t)
fireworks::Context * m_context
Definition: CmsShowCommon.h:82
void switchBackground()
FWLongParameter m_geomTransparency3D
Definition: CmsShowCommon.h:93
void setDrawBreakMarkers()
FWLongParameter m_geomTransparency2D
Definition: CmsShowCommon.h:92
FWViewEnergyScale * getEnergyScale() const
Definition: CmsShowCommon.h:67
std::auto_ptr< FWViewEnergyScale > m_energyScale
Definition: CmsShowCommon.h:99
virtual void addTo(FWConfiguration &) const
const TGLColorSet & getDarkColorSet() const
Definition: CmsShowCommon.h:70
TGLColorSet m_darkColorSet
Definition: CmsShowCommon.h:97
virtual void setFrom(const FWConfiguration &)
FWEnumParameter m_trackBreak
Definition: CmsShowCommon.h:84
CmsShowCommon(fireworks::Context *)