15 #include <vtkLookupTable.h> 25 "LookupTable is nullptr, it should have been initialized by the default constructor of mitk::LookupTable");
41 for (vtkIdType index = 1; index < 256; ++index)
69 if (
const auto *lut = dynamic_cast<const LabeledImageLookupTable *>(&other))
92 itkWarningMacro(
"LookupTable is nullptr, but it should have been initialized by the constructor");
108 itkWarningMacro(
"LookupTable is nullptr, but it should have been initialized by the constructor");
131 return (((
double)(std::rand())) / ((
double)(RAND_MAX)));
134 itk::LightObject::Pointer mitk::LabeledImageLookupTable::InternalClone()
const 136 itk::LightObject::Pointer result(
new Self(*
this));
137 result->UnRegister();
void SetWindowBounds(ScalarType lowerBound, ScalarType upperBound, bool expandRangesIfNecessary=true)
void SetFixed(bool fixed)
virtual void SetColorForLabel(const LabelType &label, const double &r, const double &g, const double &b, const double a=1.0)
virtual double * GetColorForLabel(const LabelType &label)
~LabeledImageLookupTable() override
void SetRangeMinMax(ScalarType min, ScalarType max)
virtual void GenerateRandomColor(double &r, double &g, double &b)
mitk::LevelWindow m_LevelWindow
virtual LookupTable & operator=(const LookupTable &LookupTable)
implementation necessary because operator made private in itk::Object
virtual double GenerateRandomNumber()
vtkSmartPointer< vtkLookupTable > m_LookupTable
LabeledImageLookupTable()
LabeledImageLookupTable & operator=(const LookupTable &other) override
implementation necessary because operator made private in itk::Object
The LookupTable class mitk wrapper for a vtkLookupTableThis class can be used to color images with a ...