Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkLabeledImageLookupTable.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 
17 #ifndef MITKMITKLABELEDIMAGELOOKUPTABLE_H
18 #define MITKMITKLABELEDIMAGELOOKUPTABLE_H
19 
21 #include "mitkLevelWindow.h"
22 #include "mitkLookupTable.h"
23 #include <iostream>
24 #include <string>
25 
26 namespace mitk
27 {
38  {
39  public:
44 
48  itkFactorylessNewMacro(Self) itkCloneMacro(Self)
49 
50 
54  typedef unsigned char LabelType;
55 
56  LabeledImageLookupTable &operator=(const LookupTable &other) override;
57 
66  virtual void SetColorForLabel(
67  const LabelType &label, const double &r, const double &g, const double &b, const double a = 1.0);
68 
75  virtual double *GetColorForLabel(const LabelType &label);
76 
83  mitk::LevelWindow GetLevelWindow() { return m_LevelWindow; }
84  protected:
89 
91 
95  virtual ~LabeledImageLookupTable();
96 
101  virtual void GenerateRandomColor(double &r, double &g, double &b);
106  virtual double GenerateRandomNumber();
107 
109 
110  private:
111  itk::LightObject::Pointer InternalClone() const override;
112  };
113 }
114 
115 #endif
itk::SmartPointer< Self > Pointer
#define MITKDATATYPESEXT_EXPORT
DataCollection - Class to facilitate loading/accessing structured data.
The LevelWindow class Class to store level/window values.
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:44
The LookupTable class mitk wrapper for a vtkLookupTableThis class can be used to color images with a ...