: 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
|
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.
|
: 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