7 #ifndef __FWRENDERVTK_VTK_FWVTKWINDOWLEVELLOOKUPTABLE_HPP__ 8 #define __FWRENDERVTK_VTK_FWVTKWINDOWLEVELLOOKUPTABLE_HPP__ 10 #include "fwRenderVTK/config.hpp" 12 #include <vtkLookupTable.h> 20 void PrintSelf(ostream& os, vtkIndent indent)
override;
25 void SetWindow(
double window)
27 this->InverseVideo = window < 0;
28 if(this->InverseVideo)
36 this->Window = window;
37 this->SetTableRange(this->Level - this->Window/2.0,
38 this->Level + this->Window/2.0);
40 vtkGetMacro(Window,
double);
47 void SetLevel(
double level)
50 this->SetTableRange(this->Level - this->Window/2.0,
51 this->Level + this->Window/2.0);
53 vtkGetMacro(Level,
double);
58 vtkSetMacro(Clamping,
int);
59 vtkGetMacro(Clamping,
int);
60 vtkBooleanMacro(Clamping,
int);
66 vtkSetVector4Macro(LeftClampValue,
double);
67 vtkGetVector4Macro(LeftClampValue,
double);
73 vtkSetVector4Macro(RightClampValue,
double);
74 vtkGetVector4Macro(RightClampValue,
double);
76 unsigned char* GetCurrentPointer(
const vtkIdType
id);
80 void MapScalarsThroughTable2(
void* input,
unsigned char* output,
81 int inputDataType,
int numberOfValues,
82 int inputIncrement,
int outputIncrement)
override;
93 double RightClampValue[4];
94 double LeftClampValue[4];
96 vtkUnsignedCharArray* InvertTable;
97 vtkTimeStamp InvertTime;
104 #endif //__FWRENDERVTK_VTK_FWVTKWINDOWLEVELLOOKUPTABLE_HPP__ Reinplementation of vtkWindowLevelLookupTable : add specific out-of-bounds colors.