Medical Imaging Interaction Toolkit  2018.4.99-c0f884b2
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 MITKCOLORSEQUENCE_H_DEFG2390JKD
13 #define MITKCOLORSEQUENCE_H_DEFG2390JKD
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
#define MITKDATATYPESEXT_EXPORT
DataCollection - Class to facilitate loading/accessing structured data.
itk::RGBPixel< float > Color
Color Standard RGB color typedef (float)
Creates a list of around 36 different colors, where one is easily distinguished from the preceding on...
Inferface for creating a sequence of nice/matching/appropriate/... colors.