CMS 3D CMS Logo

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 public:
42  FWDisplayProperties(Color_t iColor, bool isVisible, Char_t transparency);
43  //virtual ~FWDisplayProperties();
44 
45  // ---------- const member functions ---------------------
46 
47  Color_t color() const { return m_color; }
48 
49  Char_t transparency() const { return m_transparency; }
50 
51  bool isVisible() const { return m_isVisible; }
52 
53  bool operator==(const FWDisplayProperties& iRHS) const {
54  return m_color == iRHS.m_color && m_isVisible == iRHS.m_isVisible && m_transparency == iRHS.m_transparency;
55  }
56  bool operator!=(const FWDisplayProperties& iRHS) const { return not(*this == iRHS); }
57 
58  // ---------- static member functions --------------------
59 
60  // ---------- member functions ---------------------------
61 
62  void setColor(Color_t iColor) { m_color = iColor; }
63 
67  transparency = transparency > 100 ? 100 : transparency;
69  }
70 
71  void setIsVisible(bool iSet) { m_isVisible = iSet; }
72 
73 private:
74  //FWDisplayProperties(const FWDisplayProperties&); // stop default
75 
76  //const FWDisplayProperties& operator=(const FWDisplayProperties&); // stop default
77 
78  // ---------- member data --------------------------------
79 
80  Color_t m_color;
83 };
84 
85 #endif
void setColor(Color_t iColor)
Char_t transparency() const
static const FWDisplayProperties defaultProperties
bool operator==(const FWDisplayProperties &iRHS) const
FWDisplayProperties(Color_t iColor, bool isVisible, Char_t transparency)
void setTransparency(Char_t transparency)
void setIsVisible(bool iSet)
bool operator!=(const FWDisplayProperties &iRHS) const