33 #ifndef vtkWindowLevelLookupTable_h
34 #define vtkWindowLevelLookupTable_h
37 #include "vtkRenderingCoreModule.h"
39 VTK_ABI_NAMESPACE_BEGIN
64 this->Window = window;
65 this->
SetTableRange(this->Level - this->Window / 2.0, this->Level + this->Window / 2.0);
67 vtkGetMacro(Window,
double);
78 this->
SetTableRange(this->Level - this->Window / 2.0, this->Level + this->Window / 2.0);
80 vtkGetMacro(Level,
double);
99 vtkSetVector4Macro(MinimumTableValue,
double);
100 vtkGetVector4Macro(MinimumTableValue,
double);
109 vtkSetVector4Macro(MaximumTableValue,
double);
110 vtkGetVector4Macro(MaximumTableValue,
double);
120 double MaximumTableValue[4];
121 double MinimumTableValue[4];
128 VTK_ABI_NAMESPACE_END
a simple class to control print indentation
map scalar values into colors via a lookup table
virtual void SetTableRange(const double r[2])
Set/Get the minimum/maximum scalar values for scalar mapping.
map scalar values into colors or colors to scalars; generate color table
~vtkWindowLevelLookupTable() override=default
void SetInverseVideo(vtkTypeBool iv)
Set inverse video on or off.
static vtkWindowLevelLookupTable * New()
vtkWindowLevelLookupTable(int sze=256, int ext=256)
void SetLevel(double level)
Set the Level for the lookup table.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void SetWindow(double window)
Set the window for the lookup table.
void ForceBuild() override
Generate lookup table as a linear ramp between MinimumTableValue and MaximumTableValue.