15 #ifndef niftkVtkLookupTableUtils_h
16 #define niftkVtkLookupTableUtils_h
18 #include "niftkCoreExports.h"
43 NIFTKCORE_EXPORT vtkLookupTable*
ChangeColor(vtkLookupTable* lut,
int value,
const QColor& newColor);
48 NIFTKCORE_EXPORT vtkLookupTable*
SwapColors(vtkLookupTable* lut,
int value1,
int value2);
54 NIFTKCORE_EXPORT vtkLookupTable*
ResizeLookupTable(vtkLookupTable* lut,
double newMaximum);
56 NIFTKCORE_EXPORT vtkLookupTable*
CreateEmptyLookupTable(
const QColor& lowColor = QColor(0, 0, 0, 0),
const QColor& highColor = QColor(0, 0, 0, 0));
std::vector< LabelType > LabelsListType
Definition: niftkVtkLookupTableUtils.h:37
std::pair< int, std::string > LabelType
Definition: niftkVtkLookupTableUtils.h:36
vtkLookupTable * SwapColors(vtkLookupTable *lut, int value1, int value2)
Swap colors in the LookupTable at the given indices.
Definition: niftkVtkLookupTableUtils.cxx:38
vtkLookupTable * CreateEmptyLookupTable(const QColor &lowColor, const QColor &highColor)
Definition: niftkVtkLookupTableUtils.cxx:132
GLsizei const GLfloat * value
Definition: glew.h:1833
vtkLookupTable * ChangeColor(vtkLookupTable *lut, int value, const QColor &newColor)
Replace the color in the LookupTable at the given index.
Definition: niftkVtkLookupTableUtils.cxx:25
std::vector< QColor > ColorListType
Definition: niftkVtkLookupTableUtils.h:38
vtkLookupTable * ResizeLookupTable(vtkLookupTable *lut, double newMaximum)
Resize the LookupTable while retaining all of the previously set values. Newly added values are assig...
Definition: niftkVtkLookupTableUtils.cxx:92
Definition: niftkExceptionObject.h:21