static const Enum< predefinedType > predefinedNames
Enumeration names for predefinedType.
static const colourTable * ptr(const word &tableName)
Look up pointer to colourTable by name, or nullptr on failure.
colourTable(const List< Tuple2< scalar, vector >> &values, const interpolationType interp=interpolationType::RGB)
Copy construct from table values.
A class for handling words, derived from Foam::string.
List< T > values(const HashTable< T, Key, Hash > &tbl, const bool doSort=false)
List of values from HashTable, optionally sorted.
predefinedType
Enumeration of commonly used colour tables.
static autoPtr< colourTable > New(Istream &is)
Read as dictionary content.
Tuple2< scalar, vector > pair_type
The data lookup type.
"xray" - ParaView "X Ray"
static const Enum< interpolationType > interpolationTypeNames
Enumeration names for interpolationType.
greyscale - ParaView "Grayscale"
vector value(const scalar x) const
Return the colour at x (within 0-1 range)
virtual ~colourTable()=default
Destructor.
interpolationType
Internal interpolation type.
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
List< Tuple2< scalar, vector > > table(const label nColours) const
Return a discrete lookup table of colours.
"fire" - ParaView "Black-Body Radiation"
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
OBJstream os(runTime.globalPath()/outputName)
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
Ostream & writeDict(Ostream &os) const
Write as dictionary format.
A HashTable of pointers to objects of type <T>, with deallocation management of the pointers.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
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.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A 2-tuple for storing two objects of dissimilar types. The container is similar in purpose to std::pa...