28 #ifndef TRIALDISPLAY_COLORMAPDEFINITION_H
29 #define TRIALDISPLAY_COLORMAPDEFINITION_H
182 friend std::ostream &
operator << (std::ostream & os,
ColormapDefinition()
Construct a single color (white) Colormap.
casacore::Bool loadBuiltinColormap(const casacore::String &name)
Main interface class to a read/write table.
static std::shared_ptr< casacore::Table > ourDefaultColormapTable
std::map< casacore::String, bool > colormapnamemap
Return the names of the built-in colormaps.
ABSTRACT CLASSES Abstract class for colors Any implementation of color should be able to provide a hexadecimal form of the if a human readable name(i.e."black").In many places throughout the plotter
casacore::Vector< casacore::Float > itsReds
The Color component vectors for this ColormapDefinition.
void setValues(const casacore::Vector< casacore::Float > &reds, const casacore::Vector< casacore::Float > &greens, const casacore::Vector< casacore::Float > &blues)
Change the Colormap values with the provided component vectors.
friend std::ostream & operator<<(std::ostream &os, const ColormapDefinition &pcreh)
Write a ColormapDefinition to an ostream in a simple text form.
static void loadColormapTable()
load ColormapDefinitions from default location aips++/data/colormaps/default.tbl and/or location spec...
static std::shared_ptr< casacore::Table > ourUserColormapTable
static colormapnamemap builtinColormapNames(casacore::Bool uniqueonly=true)
static casacore::String ourDefaultColormap
The loaded colormaps (a replacement for the builtins)
casacore::Bool queryColormapTable(const casacore::Table &table, const casacore::String &name)
Utility function to look if a colormap name is in a Table.
static casacore::String ourTableVersion
bool Bool
Define the standard types used by Casacore.
casacore::Bool loadColormap(const casacore::String &name)
Load Colormap definitions for a specified colormapname
void getValue(const casacore::Float t, casacore::Float &red, casacore::Float &green, casacore::Float &blue) const
Obtain the Colormap value for the "index" value 0 <= t <= 1
casacore::String itsName
The name of this ColormapDefinition.
casacore::Vector< casacore::Float > itsBlues
String: the storage and methods of handling collections of characters.
casacore::Bool save(const casacore::String &fullPathName, const casacore::Vector< casacore::String > &synonyms, const casacore::Bool &overwrite=true) const
Write this ColormapDefinition to the named casacore::Table in the named directory (default values are...
casacore::Vector< casacore::Float > itsGreens
#define casacore
<X11/Intrinsic.h> #defines true, false, casacore::Bool, and String.