CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
FWDisplayProperties.h
Go to the documentation of this file.
1 #ifndef Fireworks_Core_FWDisplayProperties_h
2 #define Fireworks_Core_FWDisplayProperties_h
3 // -*- C++ -*-
4 //
5 // Package: Core
6 // Class : FWDisplayProperties
7 //
16 //
17 // Original Author:
18 // Created: Thu Jan 3 14:22:36 EST 2008
19 //
20 
21 // system include files
22 #include "Rtypes.h"
23 
24 // user include files
25 
26 // forward declarations
27 
29 {
30 
31 public:
44  FWDisplayProperties(Color_t iColor,
45  bool isVisible,
46  bool filetrPassed,
47  Char_t transparency);
48  //virtual ~FWDisplayProperties();
49 
50  // ---------- const member functions ---------------------
51 
52  Color_t color() const {
53  return m_color;
54  }
55 
56  Char_t transparency() const {
57  return m_transparency;
58  }
59 
60  bool isVisible() const {
61  return m_isVisible;
62  }
63 
64  bool filterPassed() const {
65  return m_filterPassed;
66  }
67 
68  void setFilterPassed(bool x)
69  {
70  m_filterPassed = x;
71  }
72 
73  bool operator==(const FWDisplayProperties& iRHS) const {
74  return m_color == iRHS.m_color
75  && m_isVisible == iRHS.m_isVisible
77  && m_transparency == iRHS.m_transparency;
78  }
79  bool operator!=(const FWDisplayProperties& iRHS) const {
80  return not (*this == iRHS);
81  }
82 
83  // ---------- static member functions --------------------
84 
85  // ---------- member functions ---------------------------
86 
87  void setColor(Color_t iColor) {
88  m_color = iColor;
89  }
90 
93  transparency = transparency < 0 ? 0 : transparency;
94  transparency = transparency > 100 ? 100 : transparency;
96  }
97 
98  void setIsVisible(bool iSet) {
99  m_isVisible = iSet;
100  }
101 
102 private:
103  //FWDisplayProperties(const FWDisplayProperties&); // stop default
104 
105  //const FWDisplayProperties& operator=(const FWDisplayProperties&); // stop default
106 
107  // ---------- member data --------------------------------
108 
109  Color_t m_color;
113 };
114 
115 #endif
void setColor(Color_t iColor)
FWDisplayProperties(Color_t iColor, bool isVisible, bool filetrPassed, Char_t transparency)
void setFilterPassed(bool x)
bool operator!=(const FWDisplayProperties &iRHS) const
bool filterPassed() const
static const FWDisplayProperties defaultProperties
Color_t color() const
Char_t transparency() const
bool operator==(const FWDisplayProperties &iRHS) const
void setTransparency(Char_t transparency)
void setIsVisible(bool iSet)