19 #include <vtkLookupTable.h>
29 "LookupTable is NULL, it should have been initialized by the default constructor of mitk::LookupTable");
45 for (vtkIdType index = 1; index < 256; ++index)
59 :
LookupTable(other), m_LevelWindow(other.m_LevelWindow)
75 this->m_LevelWindow = lut->m_LevelWindow;
94 if (m_LookupTable ==
nullptr)
96 itkWarningMacro(
"LookupTable is NULL, but it should have been initialized by the constructor");
99 m_LookupTable->SetTableValue(label, r, g, b, a);
110 if (m_LookupTable ==
nullptr)
112 itkWarningMacro(
"LookupTable is NULL, but it should have been initialized by the constructor");
115 return m_LookupTable->GetTableValue(label);
124 r = GenerateRandomNumber();
125 g = GenerateRandomNumber();
126 b = GenerateRandomNumber();
135 return (((
double)(std::rand())) / ((
double)(RAND_MAX)));
141 result->UnRegister();
void SetWindowBounds(ScalarType lowerBound, ScalarType upperBound, bool expandRangesIfNecessary=true)
itk::SmartPointer< Self > Pointer
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)
void SetRangeMinMax(ScalarType min, ScalarType max)
virtual ~LabeledImageLookupTable()
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 ...
static itkEventMacro(BoundingShapeInteractionEvent, itk::AnyEvent) class MITKBOUNDINGSHAPE_EXPORT BoundingShapeInteractor Pointer New()
Basic interaction methods for mitk::GeometryData.