Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
mitk::ColorSequence Class Referenceabstract

Abstract interface for generating a sequence of distinguishable colors. More...

#include <mitkColorSequence.h>

Inheritance diagram for mitk::ColorSequence:

Public Member Functions

 ColorSequence ()
 Default constructor. More...
 
virtual ~ColorSequence ()
 Virtual destructor. More...
 
virtual Color GetNextColor ()=0
 Return the next color in the sequence. More...
 
virtual void GoToBegin ()=0
 Reset the sequence to the beginning. More...
 

Detailed Description

Abstract interface for generating a sequence of distinguishable colors.

Subclasses implement specific color sequences (e.g., cycling through hue values or using a predefined rainbow palette).

See also
ColorSequenceCycleH, ColorSequenceRainbow

Definition at line 28 of file mitkColorSequence.h.

Constructor & Destructor Documentation

◆ ColorSequence()

mitk::ColorSequence::ColorSequence ( )

Default constructor.

◆ ~ColorSequence()

virtual mitk::ColorSequence::~ColorSequence ( )
virtual

Virtual destructor.

Member Function Documentation

◆ GetNextColor()

virtual Color mitk::ColorSequence::GetNextColor ( )
pure virtual

Return the next color in the sequence.

Returns
The next mitk::Color value.

Implemented in mitk::ColorSequenceRainbow, and mitk::ColorSequenceCycleH.

◆ GoToBegin()

virtual void mitk::ColorSequence::GoToBegin ( )
pure virtual

Reset the sequence to the beginning.

Implemented in mitk::ColorSequenceRainbow, and mitk::ColorSequenceCycleH.


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