SMILX  1.01
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
milx::ColourMap Class Reference

Represents a the various colour maps available for VTK scalars etc. Default: NIH. More...

#include <milxColourMap.h>

Public Types

enum  ColourMapFlags {
  JET, RAINBOW, VTK, GRAY,
  SEISMIC, LOG_GRAY, NIH, NIH_FIRE,
  AAL, FS, HOT, COOL,
  COOLWARM, KNEE, BONE, SPECTRAL,
  GNUPLOT, CUBEHELIX, HSV
}
 

Public Member Functions

void reset ()
 
void toJet ()
 
void SetJet ()
 
void toRainbow ()
 
void SetRainbow ()
 
void toVTK ()
 
void SetVTK ()
 
void toGray ()
 
void SetGray ()
 
void toSeismic ()
 
void SetSeismic ()
 
void toLogGray ()
 
void SetLogGray ()
 
void toNIH ()
 
void SetNIH ()
 
void toNIH_FIRE ()
 
void SetNIH_FIRE ()
 
void toAAL ()
 
void SetAAL ()
 
void toFS ()
 
void SetFS ()
 
void toHOT ()
 
void SetHOT ()
 
void toCOOL ()
 
void SetCOOL ()
 
void toCOOLWARM ()
 
void SetCOOLWARM ()
 
void toKnee ()
 
void SetKnee ()
 
void toBone ()
 
void SetBone ()
 
void toSpectral ()
 
void SetSpectral ()
 
void toGNUPlot ()
 
void SetGNUPlot ()
 
void toCubeHelix ()
 
void SetCubeHelix ()
 
void toHSV ()
 
void SetHSV ()
 
void SetRange (double range[2])
 
double * GetRange ()
 
vtkSmartPointer< vtkLookupTable > GetOutput ()
 Get the colourmap set.
 

Protected Member Functions

void GenerateData ()
 

Protected Attributes

ColourMapFlags mapFlag
 
bool generated
 
coordinateType mapRange [2]
 
vtkSmartPointer< vtkLookupTable > lookupTable
 

Detailed Description

Represents a the various colour maps available for VTK scalars etc. Default: NIH.

Returns the set colour map as a vtkLookupTable. Usage:

milxColourMap colourMap = new milxColourMap;
colourMap->toNIH();
vtkLookupTable *olut = colourMap->GetOutput();
vtkImageMapToColors *filterColorsOverlay = vtkImageMapToColors::New();
filterColorsOverlay->SetLookupTable(olut);
filterColorsOverlay->SetInput(filterExportVTKOverlay->GetOutput());
filterColorsOverlay->PassAlphaToOutputOn ();

Definition at line 49 of file milxColourMap.h.


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