Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
mitkColorSequenceRainbow.h
Go to the documentation of this file.
1 /*============================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 #ifndef mitkColorSequenceRainbow_h
13 #define mitkColorSequenceRainbow_h
14 
16 #include <mitkColorSequence.h>
17 
18 namespace mitk
19 {
29  {
30  public:
33 
36 
44  Color GetNextColor() override;
45 
49  void GoToBegin() override;
50 
51  private:
55  void InitColorList();
56 
60  mitk::Color m_Color;
61 
65  unsigned int m_ColorIndex;
66 
70  std::vector<Color> m_ColorList;
71  };
72 }
73 
74 #endif
#define MITKDATATYPESEXT_EXPORT
Predefined rainbow color sequence with eight distinguishable colors.
ColorSequenceRainbow()
Construct and initialize the predefined color list.
Color GetNextColor() override
Return the next color in the rainbow sequence.
void GoToBegin() override
Reset the color index to the beginning.
~ColorSequenceRainbow() override
Destructor.
Abstract interface for generating a sequence of distinguishable colors.
Find image slices visible on a given plane.
itk::RGBPixel< float > Color
Standard RGB color typedef using float components.