vtk-dicom  0.8.17
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Member Functions | List of all members
vtkDICOMLookupTable Class Reference

Lookup tables from DICOM data. More...

#include <vtkDICOMLookupTable.h>

Inheritance diagram for vtkDICOMLookupTable:
Inheritance graph
[legend]
Collaboration diagram for vtkDICOMLookupTable:
Collaboration graph
[legend]

Public Types

typedef vtkLookupTable Superclass
 
- Public Types inherited from vtkLookupTable
typedef vtkScalarsToColors Superclass
 

Public Member Functions

virtual vtkTypeBool IsA (const char *type)
 
vtkDICOMLookupTableNewInstance () const
 
void PrintSelf (ostream &os, vtkIndent indent) VTK_DICOM_OVERRIDE
 Print information about this object.
 
void BuildStandardPalette (const char *name)
 Build the a standard lookup table, given a code string. More...
 
void BuildImagePalette (vtkDICOMMetaData *meta, int idx=0)
 Build the lookup table from the supplied meta data. More...
 
- Public Member Functions inherited from vtkLookupTable
vtkLookupTableNewInstance () const
 
void PrintSelf (ostream &os, vtkIndent indent) VTK_OVERRIDE
 
int IsOpaque () VTK_OVERRIDE
 
int Allocate (int sz=256, int ext=256)
 
void Build () VTK_OVERRIDE
 
virtual void ForceBuild ()
 
void BuildSpecialColors ()
 
virtual void SetRamp (int)
 
void SetRampToLinear ()
 
void SetRampToSCurve ()
 
void SetRampToSQRT ()
 
virtual int GetRamp ()
 
void SetScale (int scale)
 
void SetScaleToLinear ()
 
void SetScaleToLog10 ()
 
virtual int GetScale ()
 
void SetTableRange (double r[2])
 
virtual void SetTableRange (double min, double max)
 
virtual double * GetTableRange ()
 
virtual void GetTableRange (double data[2])
 
virtual void SetHueRange (double, double)
 
void SetHueRange (double[2])
 
virtual double * GetHueRange ()
 
virtual void GetHueRange (double &, double &)
 
virtual void GetHueRange (double[2])
 
virtual void SetSaturationRange (double, double)
 
void SetSaturationRange (double[2])
 
virtual double * GetSaturationRange ()
 
virtual void GetSaturationRange (double &, double &)
 
virtual void GetSaturationRange (double[2])
 
virtual void SetValueRange (double, double)
 
void SetValueRange (double[2])
 
virtual double * GetValueRange ()
 
virtual void GetValueRange (double &, double &)
 
virtual void GetValueRange (double[2])
 
virtual void SetAlphaRange (double, double)
 
void SetAlphaRange (double[2])
 
virtual double * GetAlphaRange ()
 
virtual void GetAlphaRange (double &, double &)
 
virtual void GetAlphaRange (double[2])
 
virtual void SetNanColor (double, double, double, double)
 
virtual void SetNanColor (double[4])
 
virtual double * GetNanColor ()
 
virtual void GetNanColor (double &, double &, double &, double &)
 
virtual void GetNanColor (double[4])
 
unsigned char * GetNanColorAsUnsignedChars ()
 
virtual void SetBelowRangeColor (double, double, double, double)
 
virtual void SetBelowRangeColor (double[4])
 
virtual double * GetBelowRangeColor ()
 
virtual void GetBelowRangeColor (double &, double &, double &, double &)
 
virtual void GetBelowRangeColor (double[4])
 
virtual void SetUseBelowRangeColor (int)
 
virtual int GetUseBelowRangeColor ()
 
virtual void UseBelowRangeColorOn ()
 
virtual void UseBelowRangeColorOff ()
 
virtual void SetAboveRangeColor (double, double, double, double)
 
virtual void SetAboveRangeColor (double[4])
 
virtual double * GetAboveRangeColor ()
 
virtual void GetAboveRangeColor (double &, double &, double &, double &)
 
virtual void GetAboveRangeColor (double[4])
 
virtual void SetUseAboveRangeColor (int)
 
virtual int GetUseAboveRangeColor ()
 
virtual void UseAboveRangeColorOn ()
 
virtual void UseAboveRangeColorOff ()
 
unsigned char * MapValue (double v) VTK_OVERRIDE
 
void GetColor (double x, double rgb[3]) VTK_OVERRIDE
 
double GetOpacity (double v) VTK_OVERRIDE
 
virtual vtkIdType GetIndex (double v)
 
void SetNumberOfTableValues (vtkIdType number)
 
vtkIdType GetNumberOfTableValues ()
 
virtual void SetTableValue (vtkIdType indx, double rgba[4])
 
virtual void SetTableValue (vtkIdType indx, double r, double g, double b, double a=1.0)
 
double * GetTableValue (vtkIdType id)
 
void GetTableValue (vtkIdType id, double rgba[4])
 
unsigned char * GetPointer (const vtkIdType id)
 
unsigned char * WritePointer (const vtkIdType id, const int number)
 
double * GetRange () VTK_OVERRIDE
 
void SetRange (double min, double max) VTK_OVERRIDE
 
void SetRange (double rng[2])
 
virtual void SetNumberOfColors (vtkIdType)
 
virtual vtkIdType GetNumberOfColors ()
 
void SetTable (vtkUnsignedCharArray *)
 
virtual vtkUnsignedCharArray * GetTable ()
 
void MapScalarsThroughTable2 (void *input, unsigned char *output, int inputDataType, int numberOfValues, int inputIncrement, int outputIncrement) VTK_OVERRIDE
 
void DeepCopy (vtkScalarsToColors *lut) VTK_OVERRIDE
 
int UsingLogScale () VTK_OVERRIDE
 
vtkIdType GetNumberOfAvailableColors () VTK_OVERRIDE
 
void GetIndexedColor (vtkIdType idx, double rgba[4]) VTK_OVERRIDE
 

Static Public Member Functions

static vtkDICOMLookupTableNew ()
 Static method for construction.
 
static vtkTypeBool IsTypeOf (const char *type)
 
static vtkDICOMLookupTableSafeDownCast (vtkObjectBase *o)
 
- Static Public Member Functions inherited from vtkLookupTable
static vtkLookupTableNew ()
 
static vtkTypeBool IsTypeOf (const char *type)
 
static vtkLookupTableSafeDownCast (vtkObjectBase *o)
 
static void GetColorAsUnsignedChars (const double colorIn[4], unsigned char colorOut[4])
 
static void GetLogRange (const double range[2], double log_range[2])
 
static double ApplyLogScale (double v, const double range[2], const double log_range[2])
 

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 
- Protected Member Functions inherited from vtkLookupTable
 vtkLookupTable (int sze=256, int ext=256)
 
void ResizeTableForSpecialColors ()
 

Static Protected Member Functions

static bool BuildSegmentedLUT (const unsigned short *input, unsigned int n, double divisor, unsigned char *lut, unsigned int stride, unsigned int count)
 Build a lookup table from compressed data. More...
 

Additional Inherited Members

- Static Public Attributes inherited from vtkLookupTable
static const vtkIdType BELOW_RANGE_COLOR_INDEX
 
static const vtkIdType ABOVE_RANGE_COLOR_INDEX
 
static const vtkIdType NAN_COLOR_INDEX
 
static const vtkIdType NUMBER_OF_SPECIAL_COLORS
 
- Protected Attributes inherited from vtkLookupTable
vtkIdType NumberOfColors
 
vtkUnsignedCharArray * Table
 
double TableRange [2]
 
double HueRange [2]
 
double SaturationRange [2]
 
double ValueRange [2]
 
double AlphaRange [2]
 
double NanColor [4]
 
double BelowRangeColor [4]
 
int UseBelowRangeColor
 
double AboveRangeColor [4]
 
int UseAboveRangeColor
 
int Scale
 
int Ramp
 
vtkTimeStamp InsertTime
 
vtkTimeStamp BuildTime
 
double RGBA [4]
 
unsigned char NanColorChar [4]
 
int OpaqueFlag
 
vtkTimeStamp OpaqueFlagBuildTime
 

Detailed Description

Lookup tables from DICOM data.

This class can create VTK lookup tables from the information in a DICOM data set. Lookup tables can be created from a palette LUT, or from standard DICOM LUTs such as HOT_IRON.

Member Function Documentation

◆ BuildImagePalette()

void vtkDICOMLookupTable::BuildImagePalette ( vtkDICOMMetaData meta,
int  idx = 0 
)

Build the lookup table from the supplied meta data.

An index may be given to specify which data set instance in the meta data will be used. The range of the table will be set to the smallest and largest pixel values to be mapped.

◆ BuildSegmentedLUT()

static bool vtkDICOMLookupTable::BuildSegmentedLUT ( const unsigned short *  input,
unsigned int  n,
double  divisor,
unsigned char *  lut,
unsigned int  stride,
unsigned int  count 
)
staticprotected

Build a lookup table from compressed data.

This will decompress a segmented lookup table.

◆ BuildStandardPalette()

void vtkDICOMLookupTable::BuildStandardPalette ( const char *  name)

Build the a standard lookup table, given a code string.

The supported code strings are HOT_IRON, HOT_METAL_BLUE, PET, PET_20_STEP, SPRING, SUMMER, FALL, and WINTER. This does not set the range of the table.


The documentation for this class was generated from the following file: