Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
colorreps
BinToLineStyle.cxx
Go to the documentation of this file.
1
12
#include "
BinToLineStyle.h
"
13
14
namespace
hippodraw {
15
16
BinToLineStyle::
17
BinToLineStyle
(
const
char
* name )
18
:
BinToColor
( name )
19
{
20
}
21
22
BinToLineStyle::BinToLineStyle
(
const
BinToLineStyle
& bin_to_color )
23
:
BinToColor
( bin_to_color )
24
{
25
}
26
27
BinToColor
*
BinToLineStyle:: clone
()
const
28
{
29
return
new
BinToLineStyle
( *
this
);
30
}
31
32
void
33
BinToLineStyle::
34
doubleToColor
(
double
,
Color
& color )
const
35
{
36
int
red=color.
getRed
();
37
int
green=color.
getGreen
();
38
int
blue=color.
getBlue
();
39
40
color.
setColor
( red, green, blue );
41
}
42
43
bool
44
BinToLineStyle::
45
acceptChangeColor
()
const
46
{
47
return
true
;
48
}
49
50
}
// namespace hippodraw
51
Generated for HippoDraw Class Library by