Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
Creates a list of around 36 different colors, where one is easily distinguished from the preceding one. More...
#include <mitkColorSequenceCycleH.h>
Public Member Functions | |
ColorSequenceCycleH () | |
virtual | ~ColorSequenceCycleH () |
virtual Color | GetNextColor () override |
Return another color. More... | |
virtual void | GoToBegin () override |
Rewind to first color. More... | |
virtual void | ChangeHueValueByCycleSteps (int steps) |
Increase the used Hue value. This can be done by steps ( = steps * 60 increase of Hue ) or absolute ( 0.0 < Hue < 360.0). Can also be used to decrease the Hue; Values < 0 are cropped to 0. Note: This does not change the other values, i.e. the color cycle. Therefor, the method can just be used to skip steps (i.e. colors) in a cycle. Use SetColorCycle if you want to change other values. More... | |
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 description for an explanation). Use this in combination with the hue value cahnge to generate your dream colors... More... | |
Public Member Functions inherited from mitk::ColorSequence | |
ColorSequence () | |
virtual | ~ColorSequence () |
Protected Attributes | |
float | color_h |
float | color_s |
float | color_v |
unsigned short | color_cycle |
Creates a list of around 36 different colors, where one is easily distinguished from the preceding one.
The list of colors starts with a fully saturated, full valued red (Hue = 0 = 360). After that the sequence is generated like this:
Finally repeat colors.
Definition at line 37 of file mitkColorSequenceCycleH.h.
mitk::ColorSequenceCycleH::ColorSequenceCycleH | ( | ) |
Definition at line 21 of file mitkColorSequenceCycleH.cpp.
References color_cycle, color_h, color_s, and color_v.
|
virtual |
Definition at line 29 of file mitkColorSequenceCycleH.cpp.
|
virtual |
Definition at line 105 of file mitkColorSequenceCycleH.cpp.
References color_h.
|
virtual |
Increase the used Hue value. This can be done by steps ( = steps * 60 increase of Hue ) or absolute ( 0.0 < Hue < 360.0). Can also be used to decrease the Hue; Values < 0 are cropped to 0. Note: This does not change the other values, i.e. the color cycle. Therefor, the method can just be used to skip steps (i.e. colors) in a cycle. Use SetColorCycle if you want to change other values.
Definition at line 104 of file mitkColorSequenceCycleH.cpp.
References color_h.
|
overridevirtual |
Return another color.
Implements mitk::ColorSequence.
Definition at line 34 of file mitkColorSequenceCycleH.cpp.
References color_cycle, color_h, color_s, color_v, and mitk::ColorConversions::Hsv2Rgb().
Referenced by SetColorCycle().
|
overridevirtual |
Rewind to first color.
Implements mitk::ColorSequence.
Definition at line 96 of file mitkColorSequenceCycleH.cpp.
References color_cycle, color_h, color_s, and color_v.
|
virtual |
Set the color cycle. The color cycle has to be an integer value between 0 and 5 (see class description for an explanation). Use this in combination with the hue value cahnge to generate your dream colors...
Definition at line 106 of file mitkColorSequenceCycleH.cpp.
References color_cycle, color_h, and GetNextColor().
|
protected |
Definition at line 79 of file mitkColorSequenceCycleH.h.
Referenced by ColorSequenceCycleH(), GetNextColor(), GoToBegin(), and SetColorCycle().
|
protected |
Definition at line 75 of file mitkColorSequenceCycleH.h.
Referenced by ChangeHueValueByAbsoluteNumber(), ChangeHueValueByCycleSteps(), ColorSequenceCycleH(), GetNextColor(), GoToBegin(), and SetColorCycle().
|
protected |
Definition at line 76 of file mitkColorSequenceCycleH.h.
Referenced by ColorSequenceCycleH(), GetNextColor(), and GoToBegin().
|
protected |
Definition at line 77 of file mitkColorSequenceCycleH.h.
Referenced by ColorSequenceCycleH(), GetNextColor(), and GoToBegin().