Medical Imaging Interaction Toolkit  2024.06.99-60d9b802
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 
38  ~ColorSequenceCycleH() override;
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
MitkDataTypesExtExports.h
mitk::ColorSequenceCycleH::color_s
float color_s
Definition: mitkColorSequenceCycleH.h:72
MITKDATATYPESEXT_EXPORT
#define MITKDATATYPESEXT_EXPORT
Definition: MitkDataTypesExtExports.h:15
mitk::Color
itk::RGBPixel< float > Color
Color Standard RGB color typedef (float)
Definition: mitkColorProperty.h:38
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
mitk::ColorSequenceCycleH::color_v
float color_v
Definition: mitkColorSequenceCycleH.h:73
mitk::ColorSequenceCycleH::color_cycle
unsigned short color_cycle
Definition: mitkColorSequenceCycleH.h:75
mitk::ColorSequenceCycleH
Creates a list of around 36 different colors, where one is easily distinguished from the preceding on...
Definition: mitkColorSequenceCycleH.h:33
mitk::ColorSequence
Interface for creating a sequence of nice/matching/appropriate/... colors.
Definition: mitkColorSequence.h:25
mitkColorSequence.h
mitk::ColorSequenceCycleH::color_h
float color_h
Definition: mitkColorSequenceCycleH.h:71