Slicer  4.10
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
List of all members | Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
vtkFSLookupTable Class Reference

A look up table for FreeSurfer colour scales. More...

#include <Libs/FreeSurfer/vtkFSLookupTable.h>

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

Public Types

enum  {
  FSLUTLABELS = 0, FSLUTHEAT = 1, FSLUTBLUERED = 2, FSLUTREDBLUE = 3,
  FSLUTREDGREEN = 4, FSLUTGREENRED = 5
}
 
Type constant, can have different types of colour scales More...
 
typedef vtkLookupTable Superclass
 

Public Member Functions

void DeepCopy (vtkScalarsToColors *lut) VTK_OVERRIDE
 
virtual float GetBlufact ()
 
virtual const char * GetClassName ()
 
void GetColor (double, double[3]) VTK_OVERRIDE
 
passes val to MapValue More...
 
virtual float GetFMid ()
 
virtual float GetHiThresh ()
 
virtual float GetLowThresh ()
 
virtual int GetLutType ()
 
const char * GetLutTypeString ()
 
Map from integer type to a string description More...
 
virtual vtkIdType GetNumberOfAvailableColors () VTK_OVERRIDE
 
virtual float GetOffset ()
 
double * GetRange () VTK_OVERRIDE
 
from vtkScalarsToColors More...
 
virtual int GetReverse ()
 
virtual float GetSlope ()
 
virtual int GetTruncate ()
 
virtual int IsA (const char *type)
 
void MapScalarsThroughTable2 (void *input, unsigned char *output, int inputDataType, int numberOfValues, int inputIncrement, int outputIncrement) VTK_OVERRIDE
 
const unsigned char * MapValue (double val) VTK_OVERRIDE
 
void PrintSelf (ostream &os, vtkIndent indent) VTK_OVERRIDE
 
virtual void ReverseOff ()
 
virtual void ReverseOn ()
 
virtual void SetBlufact (float)
 
virtual void SetFMid (float)
 
virtual void SetHiThresh (float)
 
virtual void SetLowThresh (float)
 
void SetLutTypeToBlueRed ()
 
void SetLutTypeToGreenRed ()
 
void SetLutTypeToHeat ()
 
void SetLutTypeToLabels ()
 
void SetLutTypeToRedBlue ()
 
void SetLutTypeToRedGreen ()
 
virtual void SetOffset (float)
 
void SetRange (double, double) VTK_OVERRIDE
 
virtual void SetReverse (int)
 
virtual void SetSlope (float)
 
virtual void SetTruncate (int)
 
virtual void TruncateOff ()
 
virtual void TruncateOn ()
 

Static Public Member Functions

static int IsTypeOf (const char *type)
 
static vtkFSLookupTableNew ()
 
static vtkFSLookupTableSafeDownCast (vtkObject *o)
 

Protected Member Functions

 vtkFSLookupTable ()
 
 ~vtkFSLookupTable ()
 

Protected Attributes

float Blufact
 
blue factor? More...
 
float FMid
 
float HiThresh
 
float LowThresh
 
int LutType
 
float Offset
 
offset value added to the input value - a brightening factor More...
 
int Reverse
 
unsigned char RGBA [4]
 
output of colour computation More...
 
float Slope
 
slope of the function that maps from input values to colours More...
 
int Truncate
 

Detailed Description

A look up table for FreeSurfer colour scales.

Reimplements vtkLookupTable to provide custom mapping of scalars to colours.

Definition at line 22 of file vtkFSLookupTable.h.

Member Typedef Documentation

◆ Superclass

typedef vtkLookupTable vtkFSLookupTable::Superclass

Definition at line 26 of file vtkFSLookupTable.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum


Type constant, can have different types of colour scales

Enumerator
FSLUTLABELS 
FSLUTHEAT 
FSLUTBLUERED 
FSLUTREDBLUE 
FSLUTREDGREEN 
FSLUTGREENRED 

Definition at line 95 of file vtkFSLookupTable.h.

Constructor & Destructor Documentation

◆ vtkFSLookupTable()

vtkFSLookupTable::vtkFSLookupTable ( )
protected

◆ ~vtkFSLookupTable()

vtkFSLookupTable::~vtkFSLookupTable ( )
protected

Member Function Documentation

◆ DeepCopy()

void vtkFSLookupTable::DeepCopy ( vtkScalarsToColors *  lut)

◆ GetBlufact()

virtual float vtkFSLookupTable::GetBlufact ( )
virtual

◆ GetClassName()

virtual const char* vtkFSLookupTable::GetClassName ( )
virtual

◆ GetColor()

void vtkFSLookupTable::GetColor ( double  ,
double  [3] 
)


passes val to MapValue

◆ GetFMid()

virtual float vtkFSLookupTable::GetFMid ( )
virtual

◆ GetHiThresh()

virtual float vtkFSLookupTable::GetHiThresh ( )
virtual

◆ GetLowThresh()

virtual float vtkFSLookupTable::GetLowThresh ( )
virtual

◆ GetLutType()

virtual int vtkFSLookupTable::GetLutType ( )
virtual

◆ GetLutTypeString()

const char* vtkFSLookupTable::GetLutTypeString ( )


Map from integer type to a string description

◆ GetNumberOfAvailableColors()

virtual vtkIdType vtkFSLookupTable::GetNumberOfAvailableColors ( )
virtual

◆ GetOffset()

virtual float vtkFSLookupTable::GetOffset ( )
virtual

◆ GetRange()

double* vtkFSLookupTable::GetRange ( )


from vtkScalarsToColors

◆ GetReverse()

virtual int vtkFSLookupTable::GetReverse ( )
virtual

◆ GetSlope()

virtual float vtkFSLookupTable::GetSlope ( )
virtual

◆ GetTruncate()

virtual int vtkFSLookupTable::GetTruncate ( )
virtual

◆ IsA()

virtual int vtkFSLookupTable::IsA ( const char *  type)
virtual

◆ IsTypeOf()

static int vtkFSLookupTable::IsTypeOf ( const char *  type)
static

◆ MapScalarsThroughTable2()

void vtkFSLookupTable::MapScalarsThroughTable2 ( void *  input,
unsigned char *  output,
int  inputDataType,
int  numberOfValues,
int  inputIncrement,
int  outputIncrement 
)

take input scalars and push them through the calculation to get colours to put int the output array

◆ MapValue()

const unsigned char* vtkFSLookupTable::MapValue ( double  val)

Given a scalar value val, return an rgba color value returns array of length 3, 0-255

◆ New()

static vtkFSLookupTable* vtkFSLookupTable::New ( )
static

◆ PrintSelf()

void vtkFSLookupTable::PrintSelf ( ostream &  os,
vtkIndent  indent 
)

◆ ReverseOff()

virtual void vtkFSLookupTable::ReverseOff ( )
virtual

◆ ReverseOn()

virtual void vtkFSLookupTable::ReverseOn ( )
virtual

◆ SafeDownCast()

static vtkFSLookupTable* vtkFSLookupTable::SafeDownCast ( vtkObject *  o)
static

◆ SetBlufact()

virtual void vtkFSLookupTable::SetBlufact ( float  )
virtual

◆ SetFMid()

virtual void vtkFSLookupTable::SetFMid ( float  )
virtual

◆ SetHiThresh()

virtual void vtkFSLookupTable::SetHiThresh ( float  )
virtual

◆ SetLowThresh()

virtual void vtkFSLookupTable::SetLowThresh ( float  )
virtual

◆ SetLutTypeToBlueRed()

void vtkFSLookupTable::SetLutTypeToBlueRed ( )

◆ SetLutTypeToGreenRed()

void vtkFSLookupTable::SetLutTypeToGreenRed ( )

◆ SetLutTypeToHeat()

void vtkFSLookupTable::SetLutTypeToHeat ( )

◆ SetLutTypeToLabels()

void vtkFSLookupTable::SetLutTypeToLabels ( )

reset all the values in case one was changed, so the next map of scalars to colours will use the new values

◆ SetLutTypeToRedBlue()

void vtkFSLookupTable::SetLutTypeToRedBlue ( )

◆ SetLutTypeToRedGreen()

void vtkFSLookupTable::SetLutTypeToRedGreen ( )

◆ SetOffset()

virtual void vtkFSLookupTable::SetOffset ( float  )
virtual

◆ SetRange()

void vtkFSLookupTable::SetRange ( double  ,
double   
)

◆ SetReverse()

virtual void vtkFSLookupTable::SetReverse ( int  )
virtual

◆ SetSlope()

virtual void vtkFSLookupTable::SetSlope ( float  )
virtual

◆ SetTruncate()

virtual void vtkFSLookupTable::SetTruncate ( int  )
virtual

◆ TruncateOff()

virtual void vtkFSLookupTable::TruncateOff ( )
virtual

◆ TruncateOn()

virtual void vtkFSLookupTable::TruncateOn ( )
virtual

Member Data Documentation

◆ Blufact

float vtkFSLookupTable::Blufact
protected


blue factor?

Definition at line 148 of file vtkFSLookupTable.h.

◆ FMid

float vtkFSLookupTable::FMid
protected

Midpoint of the function that maps from input values to colours FS fmid and cmid

Definition at line 153 of file vtkFSLookupTable.h.

◆ HiThresh

float vtkFSLookupTable::HiThresh
protected

High cut off, values passed in that are above this value are mapped to high cut off colour FS cmax

Definition at line 121 of file vtkFSLookupTable.h.

◆ LowThresh

float vtkFSLookupTable::LowThresh
protected

Low cut off, values passed in that are below this level are mapped to low cut off colour FS cmin and fthresh

Definition at line 116 of file vtkFSLookupTable.h.

◆ LutType

int vtkFSLookupTable::LutType
protected

which type of colour scale this is supposed to model, from defined constants above

Definition at line 126 of file vtkFSLookupTable.h.

◆ Offset

float vtkFSLookupTable::Offset
protected


offset value added to the input value - a brightening factor

Definition at line 140 of file vtkFSLookupTable.h.

◆ Reverse

int vtkFSLookupTable::Reverse
protected

is the colour scale reversed? from FS invphaseflag

Definition at line 131 of file vtkFSLookupTable.h.

◆ RGBA

unsigned char vtkFSLookupTable::RGBA[4]
protected


output of colour computation

Definition at line 157 of file vtkFSLookupTable.h.

◆ Slope

float vtkFSLookupTable::Slope
protected


slope of the function that maps from input values to colours

Definition at line 144 of file vtkFSLookupTable.h.

◆ Truncate

int vtkFSLookupTable::Truncate
protected

truncate the values below zero? from FS truncphaseflag

Definition at line 136 of file vtkFSLookupTable.h.


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