BinToBWLinear.cxx
Go to the documentation of this file.
1 
12 #include "BinToBWLinear.h"
13 
14 using namespace hippodraw;
15 
17 BinToBWLinear ( const char * name )
18  : BinToColorMap ( name )
19 {
20  m_reds.resize ( 256);
21  m_greens.resize ( 256 );
22  m_blues.resize ( 256 );
23 
24  for ( int i = 0; i < 256; i++ ) {
25  m_reds [i] = i;
26  m_greens[i] = i;
27  m_blues [i] = i;
28  }
29 }
30 
32  : BinToColorMap ( bin_to_color )
33 {
34 }
35 
37 {
38  return new BinToBWLinear ( *this );
39 }
40 
unsigned int i
BinToColor * clone() const
Creates a copy of itself.
std::vector< int > m_reds
vector of reds for color map.
Definition: BinToColorMap.h:44
The base class for the value to the color transformation.
Definition: BinToColor.h:30
The base class for the value to the color transformation.
Definition: BinToColorMap.h:29
BinToBWLinear(const char *)
The constructor.
The class derived from the BinToColor class.
Definition: BinToBWLinear.h:30
std::vector< int > m_greens
vector of greens for color map.
Definition: BinToColorMap.h:47
BinToBWLinear class interface.
std::vector< int > m_blues
vector of blues for color map.
Definition: BinToColorMap.h:50

Generated for HippoDraw Class Library by doxygen