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 // $Id: CmsShowCommon.h,v 1.10 2011/03/07 20:57:03 amraktad Exp $
20 //
21 
22 #include <sigc++/signal.h>
23 #include <sigc++/sigc++.h>
24 
25 #include "Rtypes.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 
71  bool getRnrPTBMarkers() const { return m_drawBreakPoints.value(); }
72 
73 protected:
74  const FWColorManager* colorManager() const;
75 
76  // ---------- member data --------------------------------
77 
78 
80 
83 
84  // general colors
85  mutable FWLongParameter m_backgroundColor; // can be set via Ctr+b key binding
87 
88  // geom colors
92 
93 
94  std::auto_ptr<FWViewEnergyScale> m_energyScale;
95 
96 private:
97  CmsShowCommon(const CmsShowCommon&); // stop default
98  const CmsShowCommon& operator=(const CmsShowCommon&); // stop default
99 };
100 
101 
102 #endif
const CmsShowCommon & operator=(const CmsShowCommon &)
bool getRnrPTBMarkers() const
Definition: CmsShowCommon.h:71
FWBoolParameter m_drawBreakPoints
Definition: CmsShowCommon.h:82
FWLongParameter m_backgroundColor
Definition: CmsShowCommon.h:85
FWGeomColorIndex
void setTrackBreakMode()
FWLongParameter * m_geomColors[kFWGeomColorSize]
Definition: CmsShowCommon.h:91
const FWColorManager * colorManager() const
FWLongParameter m_gamma
Definition: CmsShowCommon.h:86
void setGeomTransparency(int val, bool projected)
virtual ~CmsShowCommon()
UChar_t getProjTrackBreaking() const
Definition: CmsShowCommon.h:70
unsigned char UChar_t
Definition: FUTypes.h:14
void setGeomColor(FWGeomColorIndex, Color_t)
fireworks::Context * m_context
Definition: CmsShowCommon.h:79
void switchBackground()
FWLongParameter m_geomTransparency3D
Definition: CmsShowCommon.h:90
void setDrawBreakMarkers()
FWLongParameter m_geomTransparency2D
Definition: CmsShowCommon.h:89
FWViewEnergyScale * getEnergyScale() const
Definition: CmsShowCommon.h:67
std::auto_ptr< FWViewEnergyScale > m_energyScale
Definition: CmsShowCommon.h:94
virtual void addTo(FWConfiguration &) const
virtual void setFrom(const FWConfiguration &)
FWEnumParameter m_trackBreak
Definition: CmsShowCommon.h:81
CmsShowCommon(fireworks::Context *)