35 #ifndef __vtkWindowLevelLookupTable_h
36 #define __vtkWindowLevelLookupTable_h
55 if (window < 1e-5) { window = 1e-5; }
56 this->Window = window;
58 this->Level + this->Window/2.0); };
59 vtkGetMacro(Window,
double);
68 this->Level + this->Window/2.0); };
69 vtkGetMacro(Level,
double);
75 void SetInverseVideo(
int iv);
76 vtkGetMacro(InverseVideo,
int);
77 vtkBooleanMacro(InverseVideo,
int);
84 vtkSetVector4Macro(MinimumTableValue,
double);
85 vtkGetVector4Macro(MinimumTableValue,
double);
92 vtkSetVector4Macro(MaximumTableValue,
double);
93 vtkGetVector4Macro(MaximumTableValue,
double);
99 VTK_LEGACY(
void SetMinimumColor(
int r,
int g,
int b,
int a));
100 VTK_LEGACY(
void SetMinimumColor(
const unsigned char rgba[4]));
101 VTK_LEGACY(
void GetMinimumColor(
unsigned char rgba[4]));
102 VTK_LEGACY(
unsigned char *GetMinimumColor());
108 VTK_LEGACY(
void SetMaximumColor(
int r,
int g,
int b,
int a));
109 VTK_LEGACY(
void SetMaximumColor(
const unsigned char rgba[4]));
110 VTK_LEGACY(
void GetMaximumColor(
unsigned char rgba[4]));
111 VTK_LEGACY(
unsigned char *GetMaximumColor());
121 double MaximumTableValue[4];
122 double MinimumTableValue[4];
void SetWindow(double window)
void SetTableRange(double r[2])
map scalar values into colors via a lookup table
a simple class to control print indentation
void PrintSelf(ostream &os, vtkIndent indent)
~vtkWindowLevelLookupTable()
static vtkLookupTable * New()
void SetLevel(double level)
map scalar values into colors or colors to scalars; generate color table