Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Class Members | File Members

ColorSeries Class Reference

#include <ColorSeries.h>

List of all members.

Public Member Functions

 ColorSeries (unsigned levels=2, const DrawingColor &endColor=DrawingColor("black","#000"), const DrawingColor &startColor=DrawingColor("white","#fff"))
DrawingColor get (unsigned level) const
std::string getColorAtLevel (unsigned level) const
std::string reversedSeriesGetColorAtLevel (unsigned level) const
bool useBlackInkAtLevel (unsigned level) const
bool reversedSeriesUseBlackInkAtLevel (unsigned level) const

Private Attributes

unsigned _levels
DrawingColor _endColor
DrawingColor _startColor
std::vector< DrawingColor_colorSeries

Static Private Attributes

static double _twoSaturations [2] = {0.00,1.0}
static double _threeSaturations [3] = {0.12,0.48,1.0}
static double _fourSaturations [4] = {0.12,0.30,0.65,1.0}
static double _fiveSaturations [5] = {0.12,0.24,0.48,0.65,1.0}
static double * _saturations [6]


Constructor & Destructor Documentation

ColorSeries::ColorSeries unsigned  levels = 2,
const DrawingColor endColor = DrawingColor("black","#000"),
const DrawingColor startColor = DrawingColor("white","#fff")
 


Member Function Documentation

DrawingColor ColorSeries::get unsigned  level  )  const
 

std::string ColorSeries::getColorAtLevel unsigned  level  )  const
 

std::string ColorSeries::reversedSeriesGetColorAtLevel unsigned  level  )  const
 

bool ColorSeries::reversedSeriesUseBlackInkAtLevel unsigned  level  )  const
 

bool ColorSeries::useBlackInkAtLevel unsigned  level  )  const
 


Member Data Documentation

std::vector<DrawingColor> ColorSeries::_colorSeries [private]
 

DrawingColor ColorSeries::_endColor [private]
 

double ColorSeries::_fiveSaturations = {0.12,0.24,0.48,0.65,1.0} [static, private]
 

double ColorSeries::_fourSaturations = {0.12,0.30,0.65,1.0} [static, private]
 

unsigned ColorSeries::_levels [private]
 

double * ColorSeries::_saturations [static, private]
 

Initial value:

DrawingColor ColorSeries::_startColor [private]
 

double ColorSeries::_threeSaturations = {0.12,0.48,1.0} [static, private]
 

double ColorSeries::_twoSaturations = {0.00,1.0} [static, private]
 

ColorSeries.cpp

The color series class creates both monochromatic and bichromatic color series


The documentation for this class was generated from the following files:
Generated on Fri Nov 18 16:24:39 2011 for MADELINE by  doxygen 1.4.4