Public Types | Public Member Functions | Static Public Member Functions | List of all members
LineColors Class Reference

#include <LineColors.h>

Public Types

using ColorType = int
 
using Index = unsigned int
 

Public Member Functions

ColorType operator[] (Index icolin) const
 

Static Public Member Functions

static ColorType white ()
 
static ColorType black ()
 
static ColorType blue ()
 
static ColorType red ()
 
static ColorType green ()
 
static ColorType brown ()
 
static ColorType violet ()
 
static ColorType orange ()
 
static ColorType cyan ()
 
static ColorType yellow ()
 
static ColorType gray ()
 
static ColorType purple ()
 
static ColorType lightGray ()
 
static Index size ()
 
static ColorType color (Index icolin, Index ncol=size())
 

Detailed Description

Definition at line 16 of file LineColors.h.

Member Typedef Documentation

using LineColors::ColorType = int

Definition at line 20 of file LineColors.h.

using LineColors::Index = unsigned int

Definition at line 21 of file LineColors.h.

Member Function Documentation

static ColorType LineColors::black ( )
inlinestatic

Definition at line 25 of file LineColors.h.

25 { return kBlack; };
static ColorType LineColors::blue ( )
inlinestatic

Definition at line 26 of file LineColors.h.

26 { return kBlue + 2; }
static ColorType LineColors::brown ( )
inlinestatic

Definition at line 29 of file LineColors.h.

29 { return kOrange + 3; }
static ColorType LineColors::color ( Index  icolin,
Index  ncol = size() 
)
inlinestatic

Definition at line 43 of file LineColors.h.

43  {
44  Index icol = icolin;
45  if ( ncol > 0 ) icol = icolin%ncol;
46  if ( icol == 0 ) return blue();
47  if ( icol == 1 ) return red();
48  if ( icol == 2 ) return green();
49  if ( icol == 3 ) return brown();
50  if ( icol == 4 ) return violet();
51  if ( icol == 5 ) return orange();
52  if ( icol == 6 ) return cyan();
53  if ( icol == 7 ) return gray();
54  if ( icol == 8 ) return purple();
55  if ( icol == 9 ) return black();
56  if ( icol == 10 ) return yellow();
57  if ( icol == 11 ) return lightGray();
58  return white();
59  }
static ColorType lightGray()
Definition: LineColors.h:36
static ColorType blue()
Definition: LineColors.h:26
static ColorType orange()
Definition: LineColors.h:31
static ColorType red()
Definition: LineColors.h:27
static ColorType cyan()
Definition: LineColors.h:32
static ColorType black()
Definition: LineColors.h:25
static ColorType purple()
Definition: LineColors.h:35
unsigned int Index
static ColorType green()
Definition: LineColors.h:28
static ColorType violet()
Definition: LineColors.h:30
static ColorType yellow()
Definition: LineColors.h:33
static ColorType white()
Definition: LineColors.h:24
static ColorType gray()
Definition: LineColors.h:34
static ColorType brown()
Definition: LineColors.h:29
static ColorType LineColors::cyan ( )
inlinestatic

Definition at line 32 of file LineColors.h.

32 { return kCyan + 1; }
static ColorType LineColors::gray ( )
inlinestatic

Definition at line 34 of file LineColors.h.

34 { return kGray + 2; }
static ColorType LineColors::green ( )
inlinestatic

Definition at line 28 of file LineColors.h.

28 { return kGreen + 2; }
static ColorType LineColors::lightGray ( )
inlinestatic

Definition at line 36 of file LineColors.h.

36 { return kGray + 0; }
ColorType LineColors::operator[] ( Index  icolin) const
inline

Definition at line 62 of file LineColors.h.

62 { return color(icolin); }
static ColorType color(Index icolin, Index ncol=size())
Definition: LineColors.h:43
static ColorType LineColors::orange ( )
inlinestatic

Definition at line 31 of file LineColors.h.

31 { return kOrange - 3; }
static ColorType LineColors::purple ( )
inlinestatic

Definition at line 35 of file LineColors.h.

35 { return kViolet + 2; }
static ColorType LineColors::red ( )
inlinestatic

Definition at line 27 of file LineColors.h.

27 { return kRed + 1; }
static Index LineColors::size ( )
inlinestatic

Definition at line 39 of file LineColors.h.

39 { return 8; }
static ColorType LineColors::violet ( )
inlinestatic

Definition at line 30 of file LineColors.h.

30 { return kMagenta + 1; }
static ColorType LineColors::white ( )
inlinestatic

Definition at line 24 of file LineColors.h.

24 { return kWhite; };
static ColorType LineColors::yellow ( )
inlinestatic

Definition at line 33 of file LineColors.h.

33 { return kYellow - 7; }

The documentation for this class was generated from the following file: