OpenCurves  0.9
ocurves Namespace Reference

A namespace containing various utility functions and definitions. More...

Enumerations

enum  ColourName {
  Gainsboro, LightGrey, Silver, DarkGrey,
  Grey, DimGrey, LightSlateGrey, SlateGrey,
  DarkSlateGrey, Black, White, Snow,
  Honeydew, MintCream, Azure, AliceBlue,
  GhostWhite, WhiteSmoke, Seashell, Beige,
  OldLace, FloralWhite, Ivory, AntiqueWhite,
  Linen, LavenderBlush, MistyRose, Pink,
  LightPink, HotPink, DeepPink, PaleVioletRed,
  MediumVioletRed, LightSalmon, Salmon, DarkSalmon,
  LightCoral, IndianRed, Crimson, FireBrick,
  DarkRed, Red, OrangeRed, Tomato,
  Coral, DarkOrange, Orange, Yellow,
  LightYellow, LemonChiffon, LightGoldenrodYellow, PapayaWhip,
  Moccasin, PeachPuff, PaleGoldenrod, Khaki,
  DarkKhaki, Gold, Cornsilk, BlanchedAlmond,
  Bisque, NavajoWhite, Wheat, BurlyWood,
  Tan, RosyBrown, SandyBrown, Goldenrod,
  DarkGoldenrod, Peru, Chocolate, SaddleBrown,
  Sienna, Brown, Maroon, DarkOliveGreen,
  Olive, OliveDrab, YellowGreen, LimeGreen,
  Lime, LawnGreen, Chartreuse, GreenYellow,
  SpringGreen, MediumSpringGreen, LightGreen, PaleGreen,
  DarkSeaGreen, MediumSeaGreen, SeaGreen, ForestGreen,
  Green, DarkGreen, MediumAquamarine, Aqua,
  Cyan, LightCyan, PaleTurquoise, Aquamarine,
  Turquoise, MediumTurquoise, DarkTurquoise, LightSeaGreen,
  CadetBlue, DarkCyan, Teal, LightSteelBlue,
  PowderBlue, LightBlue, SkyBlue, LightSkyBlue,
  DeepSkyBlue, DodgerBlue, CornflowerBlue, SteelBlue,
  RoyalBlue, Blue, MediumBlue, DarkBlue,
  Navy, MidnightBlue, Lavender, Thistle,
  Plum, Violet, Orchid, Fuchsia,
  Magenta, MediumOrchid, MediumPurple, BlueViolet,
  DarkViolet, DarkOrchid, DarkMagenta, Purple,
  Indigo, DarkSlateBlue, SlateBlue, MediumSlateBlue,
  ColourCount
}
 An enumeration of the web safe colour set. The colour set is fully defined in WebSafeColours.
 
enum  DefaultColourSet {
  StandardColours, DeuteranomalyColours, ProtanomalyBlindColours, TritanomalyBlindColours,
  GreyScaleColours, ColourSetCount
}
 An enumeration of the various default colour sets used for plotting. More...
 

Variables

QRgb WebSafeColours [ColourCount]
 A set of predefined colours implementing the web safe colour set. More...
 
const char * DefaultColourSetNames [ColourSetCount]
 Colour set names for the default colour sets. More...
 
const ColourNameDefaultColourSets [ColourSetCount]
 Defines various colour combinations to use as the default plotting colours. More...
 
const unsigned DefaultColourSetCounts [ColourSetCount]
 The number of elements in each DefaultColourSets set.
 

Detailed Description

A namespace containing various utility functions and definitions.

Enumeration Type Documentation

An enumeration of the various default colour sets used for plotting.

The primary set is the StandardColours set, while other sets attempt to mitigate colour-blindness issues. The colour blind sets are coarsely and simplistically defined and cannot cater for all levels of colour-blindness and may require further modification.

These are used to index DefaultColourSets and DefaultColourSets.

Enumerator
StandardColours 

Standard colours, cycling through various hues in the web safe colours.

DeuteranomalyColours 

Colours addressing deuteranomaly colour blindness.

ProtanomalyBlindColours 

Colours addressing protanomaly colour blindness.

TritanomalyBlindColours 

Colours addressing tritanomaly colour blindness.

Variable Documentation

const char* ocurves::DefaultColourSetNames[ColourSetCount]

Colour set names for the default colour sets.

English names only, to be used with Qt's tr() macro.

const ColourName* ocurves::DefaultColourSets[ColourSetCount]

Defines various colour combinations to use as the default plotting colours.

There is one set for each DefaultColourSet (excluding ColourSetCount). The number of items in each set is defined in DefaultColourCounts using the same DefaultColourSetCounts value as an index.

Each set contains ColourName values which can be used to index into WebSafeColours.

QRgb ocurves::WebSafeColours[ColourCount]

A set of predefined colours implementing the web safe colour set.

Index with values from ColourName.

See en.wikipedia.org/wiki/Web_colors or websafecolors.info