Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 #ifndef MITKCOLORSEQUENCE_H_DEFG2390JKD
17 #define MITKCOLORSEQUENCE_H_DEFG2390JKD
18 
20 #include <mitkColorSequence.h>
21 
22 namespace mitk
23 {
38  {
39  public:
41 
42  virtual ~ColorSequenceCycleH();
43 
47  virtual Color GetNextColor() override;
48 
52  virtual void GoToBegin() override;
53 
63  virtual void ChangeHueValueByCycleSteps(int steps);
64  virtual void ChangeHueValueByAbsoluteNumber(float number);
65 
72  virtual void SetColorCycle(unsigned short cycle);
73 
74  protected:
75  float color_h; // current hue (0 .. 360)
76  float color_s; // current saturation (0 .. 1)
77  float color_v; // current value (0 .. 1)
78 
79  unsigned short color_cycle;
80  };
81 }
82 
83 #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.