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