Go to the documentation of this file.
45 { predefinedType::COOL_WARM,
"coolToWarm" },
46 { predefinedType::COLD_HOT,
"coldAndHot" },
47 { predefinedType::FIRE,
"fire" },
48 { predefinedType::RAINBOW,
"rainbow" },
49 { predefinedType::GREYSCALE,
"greyscale" },
50 { predefinedType::XRAY,
"xray" },
56 void Foam::colourTable::constructTables()
61 <<
"attempt to re-construct colourTables when they already exist"
67 HashPtrTable<colourTable> newEntries(is);
68 tables_.swap(newEntries);
70 Info<<
"loaded " << tables_.sortedToc()
71 <<
" from etc/colourTable" <<
endl;
73 Info<<
"== " << tables_ <<
nl;
95 const auto iter = tables_.cfind(tableName);
109 return ptr(predefinedNames[tbl]);
120 <<
"No such colourTable: " << tableName
130 return ref(predefinedNames[tbl]);
static const Enum< predefinedType > predefinedNames
Enumeration names for predefinedType.
Enum is a wrapper around a list of names/values that represent particular enumeration (or int) values...
static const colourTable * ptr(const word &tableName)
Look up pointer to colourTable by name, or nullptr on failure.
A class for handling words, derived from Foam::string.
predefinedType
Enumeration of commonly used colour tables.
Ostream & endl(Ostream &os)
Add newline and flush stream.
fileName findEtcFile(const fileName &name, const bool mandatory=false, unsigned short location=0777)
Search for a single FILE within the etc directories.
messageStream Info
Information stream (stdout output on master, null elsewhere)
errorManipArg< error, int > exit(error &err, const int errNo=1)
Functions to search 'etc' directories for configuration files etc.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
static const HashPtrTable< colourTable > & tables()
Predefined tables.
Base class for generating a colour table from node points.
static const colourTable & ref(const word &tableName)
Look up pointer to colourTable by name. Fatal on failure.