Medical Imaging Interaction Toolkit  2025.12.02
Medical Imaging Interaction Toolkit
mitkColorSequenceCycleH.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 mitkColorSequenceCycleH_h
13 #define mitkColorSequenceCycleH_h
14 
16 #include <mitkColorSequence.h>
17 
18 namespace mitk
19 {
34  {
35  public:
37 
39 
43  Color GetNextColor() override;
44 
48  void GoToBegin() override;
49 
59  virtual void ChangeHueValueByCycleSteps(int steps);
60  virtual void ChangeHueValueByAbsoluteNumber(float number);
61 
68  virtual void SetColorCycle(unsigned short cycle);
69 
70  protected:
71  float color_h; // current hue (0 .. 360)
72  float color_s; // current saturation (0 .. 1)
73  float color_v; // current value (0 .. 1)
74 
75  unsigned short color_cycle;
76  };
77 }
78 
79 #endif
#define MITKDATATYPESEXT_EXPORT
Creates a list of around 36 different colors, where one is easily distinguished from the preceding on...
virtual void ChangeHueValueByCycleSteps(int steps)
Increase the used Hue value. This can be done by steps ( = steps * 60 increase of Hue ) or absolute (...
Color GetNextColor() override
Return another color.
virtual void ChangeHueValueByAbsoluteNumber(float number)
virtual void SetColorCycle(unsigned short cycle)
Set the color cycle. The color cycle has to be an integer value between 0 and 5 (see class descriptio...
void GoToBegin() override
Rewind to first color.
Interface for creating a sequence of nice/matching/appropriate/... colors.
Find image slices visible on a given plane.
itk::RGBPixel< float > Color
Color Standard RGB color typedef (float)