28 #ifndef TRIALDISPLAY_COLORMAPMANAGER_H
29 #define TRIALDISPLAY_COLORMAPMANAGER_H
40 class PixelCanvasColorTable;
Class to manage registration of colormaps on PixelCanvasColorTables.
Abstract interface to underlying graphics library's colortable.
void reinstallColormaps()
Reinstall the colorcell values.
PixelCanvasColorTable * itsPCColorTable
Pointer to managed PixelCanvasColorTable.
friend std::ostream & operator<<(std::ostream &os, const ColormapManager &cm)
Stream output operator.
std::map< const Colormap *, ColormapInfo * > itsInfoMap
casacore::Map which associates Colormap pointers with ColormapInfo.
casacore::Bool member(const Colormap *map) const
Is the given Colormap registered on this ColormapManager/PixelCanvasColorTable combination?
void registerColormap(Colormap *dcmap, casacore::Float weight=1.0)
Register a Colormap with this ColormapManager, and optionally pass a weight - colormaps are distribut...
casacore::uInt nMaps() const
Return the number of registered Colormaps.
casacore::Bool unregisterColormap(Colormap *dcmap)
Unregister a Colormap with this ColormapManager.
ColormapManager(PixelCanvasColorTable *pcctbl)
Constructor requires pointer to the PixelCanvasColorTable which it will manage.
virtual ~ColormapManager()
Destructor.
bool Bool
Define the standard types used by Casacore.
const Colormap * getMap(const casacore::uInt mapnum) const
Return a pointer to a Colormap by number.
void redistributeColormaps()
Redistribute the available colorcells to the registered colormaps.
casacore::uInt getColormapSize(const Colormap *map) const
Return the current size of the colormap.
Describes a method of generating a table of colors.
casacore::uInt getColormapOffset(const Colormap *map) const
Return the current offset of the colormap.