Sourceforge.net - The VCF's Project Host
   The VCF Website Home   |   Online Discussion Forums   |   Sourceforge.net Project Page   

VCF::ColorNames Class Reference

struct with all color names not included by VCF: they are essentially grays we need to instantiate it somewhere: unfortunately non-integer constant have no external linkage otherwise ColorName would be replaced by a namespace with the same String constants and put in the VCF library More...

#include <vcf/GraphicsKit/Color.h>

List of all members.

Public Types

enum  ColorID {
  black = 0, dimgray, gray, darkgray,
  silver, lightgray, gainsboro, whitesmoke,
  white, snow, rosybrown, lightcoral,
  indianred, brown, firebrick, maroon,
  darkred, red, mistyrose, salmon,
  tomato, darksalmon, coral, orangered,
  lightsalmon, sienna, seashell, saddlebrown,
  chocolate, sandybrown, peachpuff, linen,
  peru, bisque, burlywood, darkorange,
  antiquewhite, tan, blanchedalmond, navajowhite,
  papayawhip, moccasin, oldlace, wheat,
  floralwhite, orange, darkgoldenrod, goldenrod,
  cornsilk, gold, lemonchiffon, khaki,
  palegoldenrod, darkkhaki, ivory, beige,
  lightyellow, lightgoldenrodyellow, olive, yellow,
  olivedrab, yellowgreen, darkolivegreen, greenyellow,
  chartreuse, lawngreen, honeydew, darkseagreen,
  lightgreen, palegreen, forestgreen, limegreen,
  darkgreen, green, lime, seagreen,
  mediumseagreen, mintcream, springgreen, mediumspringgreen,
  mediumaquamarine, aquamarine, darkturquoise, turquoise,
  lightseagreen, mediumturquoise, azure, lightcyan,
  paleturquoise, darkslategray, teal, darkcyan,
  cyan, cadetblue, powderblue, lightblue,
  deepskyblue, skyblue, lightskyblue, aliceblue,
  steelblue, slategray, lightslategray, dodgerblue,
  lightsteelblue, cornflowerblue, royalblue, ghostwhite,
  lavender, midnightblue, navy, darkblue,
  mediumblue, blue, slateblue, darkslateblue,
  mediumslateblue, mediumpurple, blueviolet, indigo,
  darkorchid, darkviolet, mediumorchid, thistle,
  plum, violet, purple, darkmagenta,
  magenta, orchid, mediumvioletred, deeppink,
  hotpink, lavenderblush, palevioletred, pink,
  crimson, lightpink, aqua, fuchsia,
  transparent, defaultcolor, unknown
}
enum  { uniqueColorFirst = black, uniqueColorLast = lightpink, numUniqueColorNames = uniqueColorLast +1, numColorNames = unknown +1 }

Static Public Member Functions

static String at (ColorID colorID)
static Enumerator< String > * getColorIDs ()
static String unknownColorName ()

Protected Member Functions

 ColorNames ()
 protected because we don't want people to create instances of this The constructor will initialize the nameMap with all the correct color strings
 ~ColorNames ()
 made non virtual because we don't want people to derive from this either

Static Protected Attributes

static String unknownColorName_
static std::map< ColorID,
String
nameMap
static EnumeratorMapContainer<
std::map< ColorID, String >,
String
nameMapContainer

Friends

class GraphicsToolkit
 GraphicsToolkit will have this as a member variable, which will construct an instance of this, and in turn initialize all the colors.


Detailed Description

struct with all color names not included by VCF: they are essentially grays we need to instantiate it somewhere: unfortunately non-integer constant have no external linkage otherwise ColorName would be replaced by a namespace with the same String constants and put in the VCF library


Member Enumeration Documentation

anonymous enum
 

Enumerator:
uniqueColorFirst  take the last item from the ColorID enumeration and add 1 to indicate the number of unique color names
uniqueColorLast 
numUniqueColorNames 
numColorNames 

enum VCF::ColorNames::ColorID
 

Enumerator:
black 
dimgray 
gray 
darkgray 
silver 
lightgray 
gainsboro 
whitesmoke 
white 
snow 
rosybrown 
lightcoral 
indianred 
brown 
firebrick 
maroon 
darkred 
red 
mistyrose 
salmon 
tomato 
darksalmon 
coral 
orangered 
lightsalmon 
sienna 
seashell 
saddlebrown 
chocolate 
sandybrown 
peachpuff 
linen 
peru 
bisque 
burlywood 
darkorange 
antiquewhite 
tan 
blanchedalmond 
navajowhite 
papayawhip 
moccasin 
oldlace 
wheat 
floralwhite 
orange 
darkgoldenrod 
goldenrod 
cornsilk 
gold 
lemonchiffon 
khaki 
palegoldenrod 
darkkhaki 
ivory 
beige 
lightyellow 
lightgoldenrodyellow 
olive 
yellow 
olivedrab 
yellowgreen 
darkolivegreen 
greenyellow 
chartreuse 
lawngreen 
honeydew 
darkseagreen 
lightgreen 
palegreen 
forestgreen 
limegreen 
darkgreen 
green 
lime 
seagreen 
mediumseagreen 
mintcream 
springgreen 
mediumspringgreen 
mediumaquamarine 
aquamarine 
darkturquoise 
turquoise 
lightseagreen 
mediumturquoise 
azure 
lightcyan 
paleturquoise 
darkslategray 
teal 
darkcyan 
cyan 
cadetblue 
powderblue 
lightblue 
deepskyblue 
skyblue 
lightskyblue 
aliceblue 
steelblue 
slategray 
lightslategray 
dodgerblue 
lightsteelblue 
cornflowerblue 
royalblue 
ghostwhite 
lavender 
midnightblue 
navy 
darkblue 
mediumblue 
blue 
slateblue 
darkslateblue 
mediumslateblue 
mediumpurple 
blueviolet 
indigo 
darkorchid 
darkviolet 
mediumorchid 
thistle 
plum 
violet 
purple 
darkmagenta 
magenta 
orchid 
mediumvioletred 
deeppink 
hotpink 
lavenderblush 
palevioletred 
pink 
crimson 
lightpink 
aqua  double colornames
fuchsia 
transparent  useful tags
defaultcolor 
unknown 


Constructor & Destructor Documentation

VCF::ColorNames::ColorNames  )  [protected]
 

protected because we don't want people to create instances of this The constructor will initialize the nameMap with all the correct color strings

VCF::ColorNames::~ColorNames  )  [inline, protected]
 

made non virtual because we don't want people to derive from this either


Member Function Documentation

static String VCF::ColorNames::at ColorID  colorID  )  [static]
 

static Enumerator<String>* VCF::ColorNames::getColorIDs  )  [static]
 

static String VCF::ColorNames::unknownColorName  )  [static]
 


Friends And Related Function Documentation

friend class GraphicsToolkit [friend]
 

GraphicsToolkit will have this as a member variable, which will construct an instance of this, and in turn initialize all the colors.


Member Data Documentation

std::map<ColorID, String> VCF::ColorNames::nameMap [static, protected]
 

EnumeratorMapContainer<std::map<ColorID, String>, String > VCF::ColorNames::nameMapContainer [static, protected]
 

String VCF::ColorNames::unknownColorName_ [static, protected]
 


The documentation for this class was generated from the following file:
   Comments or Suggestions?    License Information