24 m_Color.SetGreen(0.67);
32 if (m_ColorIndex < (m_ColorList.size() - 1))
40 m_Color = m_ColorList[m_ColorIndex];
44 void ColorSequenceRainbow::InitColorList()
46 mitk::Color defaultColor, red, green, blue, yellow, magenta, cyan, orange;
47 defaultColor.Set(1.0, 0.67, 0.0);
48 red.Set(1.0, 0.0, 0.0);
49 green.Set(0.0, 1.0, 0.0);
50 blue.Set(0.0, 0.0, 1.0);
51 yellow.Set(1.0, 1.0, 0.0);
52 magenta.Set(1.0, 0.0, 1.0);
53 cyan.Set(0.0, 1.0, 1.0);
54 orange.Set(1.0, 0.6, 0.0);
55 m_ColorList.push_back(defaultColor);
56 m_ColorList.push_back(red);
57 m_ColorList.push_back(yellow);
58 m_ColorList.push_back(blue);
59 m_ColorList.push_back(green);
60 m_ColorList.push_back(magenta);
61 m_ColorList.push_back(cyan);
62 m_ColorList.push_back(orange);
virtual Color GetNextColor() override
method to return another color
DataCollection - Class to facilitate loading/accessing structured data.
virtual void GoToBegin() override
method to set the color-index to begin again
itk::RGBPixel< float > Color
Color Standard RGB color typedef (float)
virtual ~ColorSequenceRainbow()