17#ifndef __albaLUTLibrary_H__
18#define __albaLUTLibrary_H__
22#include "vtkLookupTable.h"
45 void Add(vtkLookupTable *inLUT,
const char *lutName);
64 void Clear(
bool removeLibraryFromDisk =
false);
66 void PrintLut( std::ostringstream &stringStream, vtkLookupTable *lut );
69 std::map<std::string, vtkLookupTable *> m_LutMap;
72 void RemoveLUTFromDisk(
const char *lutName);
73 void LoadLUT(
const char *inLutFileName, vtkLookupTable *targetLut);
74 void SaveLUT( vtkLookupTable *inLut,
const char *outFileName);
A component to handle lookup table libraries.
void PrintLut(std::ostringstream &stringStream, vtkLookupTable *lut)
void Clear(bool removeLibraryFromDisk=false)
Clear the library; do not remove it from disk unless removeLibraryFromDisk is true.
bool HasLut(const char *name)
return if the named lut is present or not
void Add(vtkLookupTable *inLUT, const char *lutName)
beware! if a lut with the same name exists it will be replaced
int GetNumberOfLuts()
return the number of luts
vtkLookupTable * GetLutByName(const char *name)
get a lut by name
void Save()
save lut library
void SetDir(const char *dir)
set get the library directory
int Remove(const char *lutName)
remove a lut from the library: return ALBA_ERROR if lutName does not exist, ALBA_OK otherwise
void Load()
load lut library
void GetLutNames(std::vector< std::string > &names)
return the lut names vector
albaString - performs common string operations on c-strings.