Fireworks
Core
interface
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
28
class
FWDisplayProperties
{
29
public
:
30
static
const
FWDisplayProperties
defaultProperties
;
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
65
void
setTransparency
(Char_t
transparency
) {
66
transparency
=
transparency
< 0 ? 0 :
transparency
;
67
transparency
=
transparency
> 100 ? 100 :
transparency
;
68
m_transparency
=
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
;
81
bool
m_isVisible
;
82
Char_t
m_transparency
;
83
};
84
85
#endif
FWDisplayProperties::operator!=
bool operator!=(const FWDisplayProperties &iRHS) const
Definition:
FWDisplayProperties.h:56
FWDisplayProperties::isVisible
bool isVisible() const
Definition:
FWDisplayProperties.h:51
FWDisplayProperties::setIsVisible
void setIsVisible(bool iSet)
Definition:
FWDisplayProperties.h:71
FWDisplayProperties::color
Color_t color() const
Definition:
FWDisplayProperties.h:47
FWDisplayProperties::operator==
bool operator==(const FWDisplayProperties &iRHS) const
Definition:
FWDisplayProperties.h:53
FWDisplayProperties::m_isVisible
bool m_isVisible
Definition:
FWDisplayProperties.h:81
FWDisplayProperties::m_color
Color_t m_color
Definition:
FWDisplayProperties.h:80
FWDisplayProperties::transparency
Char_t transparency() const
Definition:
FWDisplayProperties.h:49
FWDisplayProperties::setColor
void setColor(Color_t iColor)
Definition:
FWDisplayProperties.h:62
FWDisplayProperties::m_transparency
Char_t m_transparency
Definition:
FWDisplayProperties.h:82
FWDisplayProperties::FWDisplayProperties
FWDisplayProperties(Color_t iColor, bool isVisible, Char_t transparency)
Definition:
FWDisplayProperties.cc:22
FWDisplayProperties::defaultProperties
static const FWDisplayProperties defaultProperties
Definition:
FWDisplayProperties.h:30
FWDisplayProperties::setTransparency
void setTransparency(Char_t transparency)
Definition:
FWDisplayProperties.h:65
FWDisplayProperties
Definition:
FWDisplayProperties.h:28
Generated for CMSSW Reference Manual by
1.8.16