ALBA
Public Member Functions | List of all members
albaLUTLibrary Class Reference

#include <albaLUTLibrary.h>

Public Member Functions

 albaLUTLibrary ()
 
 ~albaLUTLibrary ()
 
void SetDir (const char *dir)
 
const char * GetDir ()
 
void Load ()
 
void Save ()
 
void Add (vtkLookupTable *inLUT, const char *lutName)
 
int Remove (const char *lutName)
 
int GetNumberOfLuts ()
 
void GetLutNames (std::vector< std::string > &names)
 
vtkLookupTable * GetLutByName (const char *name)
 
bool HasLut (const char *name)
 
void Clear (bool removeLibraryFromDisk=false)
 
void PrintLut (std::ostringstream &stringStream, vtkLookupTable *lut)
 

Detailed Description

A component to handle lookup table libraries.

Definition at line 28 of file albaLUTLibrary.h.

Constructor & Destructor Documentation

◆ albaLUTLibrary()

albaLUTLibrary::albaLUTLibrary ( )

◆ ~albaLUTLibrary()

albaLUTLibrary::~albaLUTLibrary ( )

Member Function Documentation

◆ SetDir()

void albaLUTLibrary::SetDir ( const char *  dir)

set get the library directory

◆ GetDir()

const char * albaLUTLibrary::GetDir ( )

◆ Load()

void albaLUTLibrary::Load ( )

load lut library

◆ Save()

void albaLUTLibrary::Save ( )

save lut library

◆ Add()

void albaLUTLibrary::Add ( vtkLookupTable *  inLUT,
const char *  lutName 
)

beware! if a lut with the same name exists it will be replaced

◆ Remove()

int albaLUTLibrary::Remove ( const char *  lutName)

remove a lut from the library: return ALBA_ERROR if lutName does not exist, ALBA_OK otherwise

◆ GetNumberOfLuts()

int albaLUTLibrary::GetNumberOfLuts ( )

return the number of luts

◆ GetLutNames()

void albaLUTLibrary::GetLutNames ( std::vector< std::string > &  names)

return the lut names vector

◆ GetLutByName()

vtkLookupTable * albaLUTLibrary::GetLutByName ( const char *  name)

get a lut by name

◆ HasLut()

bool albaLUTLibrary::HasLut ( const char *  name)

return if the named lut is present or not

◆ Clear()

void albaLUTLibrary::Clear ( bool  removeLibraryFromDisk = false)

Clear the library; do not remove it from disk unless removeLibraryFromDisk is true.

◆ PrintLut()

void albaLUTLibrary::PrintLut ( std::ostringstream &  stringStream,
vtkLookupTable *  lut 
)

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