Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
mitk::ColorSequenceRainbow Class Reference

Predefined rainbow color sequence with eight distinguishable colors. More...

#include <mitkColorSequenceRainbow.h>

Inheritance diagram for mitk::ColorSequenceRainbow:
Collaboration diagram for mitk::ColorSequenceRainbow:

Public Member Functions

 ColorSequenceRainbow ()
 Construct and initialize the predefined color list. More...
 
 ~ColorSequenceRainbow () override
 Destructor. More...
 
Color GetNextColor () override
 Return the next color in the rainbow sequence. More...
 
void GoToBegin () override
 Reset the color index to the beginning. More...
 
- Public Member Functions inherited from mitk::ColorSequence
 ColorSequence ()
 Default constructor. More...
 
virtual ~ColorSequence ()
 Virtual destructor. More...
 

Detailed Description

Predefined rainbow color sequence with eight distinguishable colors.

Cycles through: default orange, red, yellow, blue, green, magenta, cyan, and orange. After reaching the end the sequence wraps around.

See also
ColorSequence, ColorSequenceCycleH

Definition at line 28 of file mitkColorSequenceRainbow.h.

Constructor & Destructor Documentation

◆ ColorSequenceRainbow()

mitk::ColorSequenceRainbow::ColorSequenceRainbow ( )

Construct and initialize the predefined color list.

◆ ~ColorSequenceRainbow()

mitk::ColorSequenceRainbow::~ColorSequenceRainbow ( )
override

Destructor.

Member Function Documentation

◆ GetNextColor()

Color mitk::ColorSequenceRainbow::GetNextColor ( )
overridevirtual

Return the next color in the rainbow sequence.

Advances the internal index and wraps around at the end of the list.

Returns
The next mitk::Color.

Implements mitk::ColorSequence.

◆ GoToBegin()

void mitk::ColorSequenceRainbow::GoToBegin ( )
overridevirtual

Reset the color index to the beginning.

Implements mitk::ColorSequence.


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