18 #ifndef __MILXCOLOURMAP_H 19 #define __MILXCOLOURMAP_H 21 #include <vtkSmartPointer.h> 22 #include <vtkLookupTable.h> 24 #include "milxGlobal.h" 57 enum ColourMapFlags {JET, RAINBOW, VTK, GRAY, SEISMIC, LOG_GRAY, NIH, NIH_FIRE, AAL, FS, HOT, COOL, COOLWARM, KNEE, BONE, SPECTRAL, GNUPLOT, CUBEHELIX, HSV};
61 { reset(); mapFlag = JET; }
65 inline void toRainbow()
66 { reset(); mapFlag = RAINBOW; }
67 inline void SetRainbow()
71 { reset(); mapFlag = VTK; }
76 { reset(); mapFlag = GRAY; }
80 inline void toSeismic()
81 { reset(); mapFlag = SEISMIC; }
82 inline void SetSeismic()
85 inline void toLogGray()
86 { reset(); mapFlag = LOG_GRAY; }
87 inline void SetLogGray()
91 { reset(); mapFlag = NIH; }
95 inline void toNIH_FIRE()
96 { reset(); mapFlag = NIH_FIRE; }
97 inline void SetNIH_FIRE()
101 { reset(); mapFlag = AAL; }
106 { reset(); mapFlag = FS; }
111 { reset(); mapFlag = HOT; }
116 { reset(); mapFlag = COOL; }
117 inline void SetCOOL()
120 inline void toCOOLWARM()
121 { reset(); mapFlag = COOLWARM; }
122 inline void SetCOOLWARM()
126 { reset(); mapFlag = KNEE; }
127 inline void SetKnee()
131 { reset(); mapFlag = BONE; }
132 inline void SetBone()
135 inline void toSpectral()
136 { reset(); mapFlag = SPECTRAL; }
137 inline void SetSpectral()
140 inline void toGNUPlot()
141 { reset(); mapFlag = GNUPLOT; }
142 inline void SetGNUPlot()
145 inline void toCubeHelix()
146 { reset(); mapFlag = CUBEHELIX; }
147 inline void SetCubeHelix()
151 { reset(); mapFlag = HSV; }
155 inline void SetRange(
double range[2])
157 mapRange[0] = range[0];
158 mapRange[1] = range[1];
160 inline double* GetRange()
161 {
return &mapRange[0]; }
166 vtkSmartPointer<vtkLookupTable> GetOutput();
170 ColourMapFlags mapFlag;
175 coordinateType mapRange[2];
178 vtkSmartPointer<vtkLookupTable> lookupTable;
183 #endif //__MILXCOLOURMAP_H #define SMILI_EXPORT
DLL Function Symbol for Windows. It is empty for other OSes.
Represents a the various colour maps available for VTK scalars etc. Default: NIH. ...