![]() |
Inviwo 0.9.12-pre
Inviwo documentation
|
Defines general useful formats and new data types Non-virtual, meaning no dynamic_cast as string comparison is as fast/faster. More...
#include <inviwo/core/util/formats.h>
Inheritance diagram for inviwo::DataFormatBase:Public Member Functions | |
| size_t | getComponents () const |
| DataFormatId | getId () const |
| double | getLowest () const |
| double | getMax () const |
| double | getMin () const |
| NumericType | getNumericType () const |
| size_t | getPrecision () const |
| size_t | getRank () const |
| size_t | getSize () const |
| size_t | getSizeInBytes () const |
| std::string_view | getString () const |
Static Public Member Functions | |
| static const DataFormatBase * | get () |
| static const DataFormatBase * | get (DataFormatId id) |
| static const DataFormatBase * | get (NumericType type, size_t components, size_t precision) |
| static const DataFormatBase * | get (NumericType type, size_t components, size_t precision, size_t rank) |
| static const DataFormatBase * | get (std::string_view name) |
| template<typename T > | |
| static constexpr DataFormatId | typeToId () noexcept |
Protected Member Functions | |
| DataFormatBase (const DataFormatBase &)=delete | |
| DataFormatBase (DataFormatBase &&)=delete | |
| DataFormatBase (DataFormatId type, size_t rank, size_t components, size_t size, double max, double min, double lowest, NumericType nt, std::string_view s) | |
| DataFormatBase & | operator= (const DataFormatBase &)=delete |
| DataFormatBase & | operator= (DataFormatBase &&)=delete |
Protected Attributes | |
| size_t | components_ |
| DataFormatId | formatId_ |
| std::string_view | formatStr_ |
| double | lowest_ |
| double | max_ |
| double | min_ |
| NumericType | numericType_ |
| size_t | rank_ |
| size_t | sizeInBytes_ |
Defines general useful formats and new data types Non-virtual, meaning no dynamic_cast as string comparison is as fast/faster.
| size_t inviwo::DataFormatBase::getComponents | ( | ) | const |
Returns the number of components in the format, 1 to 4.
| DataFormatId inviwo::DataFormatBase::getId | ( | ) | const |
Returns DataFormatId of the format
| NumericType inviwo::DataFormatBase::getNumericType | ( | ) | const |
Returns numeric type of the format
| size_t inviwo::DataFormatBase::getPrecision | ( | ) | const |
Returns number of bits in each component in the format. can be 8, 16, 32 or 64.
| size_t inviwo::DataFormatBase::getRank | ( | ) | const |
Returns the rank in the format, 0, 1 or 2.
| size_t inviwo::DataFormatBase::getSizeInBytes | ( | ) | const |
Returns the size of the format in bytes. For all components.
| std::string_view inviwo::DataFormatBase::getString | ( | ) | const |
Returns the name of the format