itom
Loading...
Searching...
No Matches
ito::PaletteOrganizer Class Reference
Inheritance diagram for ito::PaletteOrganizer:

Public Slots

ito::RetVal setColorBarThreaded (QString name, ito::ItomPaletteBase newPalette, ItomSharedSemaphore *waitCond=NULL)
 
ito::RetVal getColorBarThreaded (QString name, QSharedPointer< ito::ItomPaletteBase > palette, ItomSharedSemaphore *waitCond=NULL)
 
ito::RetVal getColorBarListThreaded (QSharedPointer< QStringList > palettes, ItomSharedSemaphore *waitCond=NULL)
 

Public Member Functions

 PaletteOrganizer ()
 shortdesc
 
ito::RetVal saveColorPaletteToSettings (const ItomPaletteBase &palette, QSettings &settings) const
 
ito::RetVal loadColorPaletteFromSettings (const QString &paletteName, ItomPaletteBase &palette, QSettings &settings) const
 
ItomPaletteBase getColorPalette (const int index) const
 shortdesc
 
ItomPaletteBase getColorPalette (const QString &name, bool *found=NULL) const
 shortdesc
 
int getColorBarIndex (const QString &name, bool *found=NULL) const
 shortdesc
 
QList< QString > getColorPaletteList (const int type=ito::tPaletteNoType) const
 shortdesc
 
QList< QString > getBuiltInPaletteNames () const
 
int numberOfColorPalettes () const
 
bool removeColorPalette (const int index)
 

Private Member Functions

void calcColorPaletteLut ()
 

Private Attributes

QList< QString > m_restrictedKeyWords
 
QList< ItomPaletteBasem_colorPalettes
 
QList< QString > m_builtInPalettes
 
QHash< QString, int > m_colorPaletteLUT
 
ItomPaletteBase noPalette
 

Constructor & Destructor Documentation

◆ PaletteOrganizer()

ito::PaletteOrganizer::PaletteOrganizer ( )

shortdesc

longdesc

Returns
PaletteOrganizer

Member Function Documentation

◆ getColorBarIndex()

int ito::PaletteOrganizer::getColorBarIndex ( const QString & name,
bool * found = NULL ) const

shortdesc

longdesc

Parameters
name
found
Returns
int

◆ getColorPalette() [1/2]

ItomPaletteBase ito::PaletteOrganizer::getColorPalette ( const int index) const

shortdesc

longdesc

Parameters
index
Returns
ItomPaletteBase

◆ getColorPalette() [2/2]

ItomPaletteBase ito::PaletteOrganizer::getColorPalette ( const QString & name,
bool * found = NULL ) const

shortdesc

longdesc

Parameters
name
found
Returns
ItomPaletteBase

◆ getColorPaletteList()

QList< QString > ito::PaletteOrganizer::getColorPaletteList ( const int type = ito::tPaletteNoType) const

shortdesc

longdesc

Parameters
type
Returns
QList<QString>

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