36#ifndef vtkWindowLevelLookupTable_h
37#define vtkWindowLevelLookupTable_h
39#include "vtkRenderingCoreModule.h"
61 if (window < 1e-5) { window = 1e-5; }
62 this->Window = window;
64 this->Level + this->Window/2.0); };
65 vtkGetMacro(Window,
double);
76 this->Level + this->Window/2.0); };
77 vtkGetMacro(Level,
double);
86 vtkGetMacro(InverseVideo,
int);
96 vtkSetVector4Macro(MinimumTableValue,
double);
97 vtkGetVector4Macro(MinimumTableValue,
double);
106 vtkSetVector4Macro(MaximumTableValue,
double);
107 vtkGetVector4Macro(MaximumTableValue,
double);
117 double MaximumTableValue[4];
118 double MinimumTableValue[4];
a simple class to control print indentation
map scalar values into colors via a lookup table
void SetTableRange(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()
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
void Build()
Generate lookup table as a linear ramp between MinimumTableValue and MaximumTableValue.
vtkWindowLevelLookupTable(int sze=256, int ext=256)
void SetLevel(double level)
Set the Level for the lookup table.
static vtkWindowLevelLookupTable * New()
void SetInverseVideo(int iv)
Set inverse video on or off.
void SetWindow(double window)
Set the window for the lookup table.
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.