Inviwo  0.9.10.1
Inviwo documentation
inviwo::DataFormat< T > Class Template Reference
+ Inheritance diagram for inviwo::DataFormat< T >:

Public Types

using type = T
 
using primitive = typename util::value_type< T >::type
 

Public Member Functions

virtual double valueToDouble (void *val) const override
 
virtual dvec2 valueToVec2Double (void *val) const override
 
virtual dvec3 valueToVec3Double (void *val) const override
 
virtual dvec4 valueToVec4Double (void *val) const override
 
virtual double valueToNormalizedDouble (void *val) const override
 
virtual dvec2 valueToNormalizedVec2Double (void *val) const override
 
virtual dvec3 valueToNormalizedVec3Double (void *val) const override
 
virtual dvec4 valueToNormalizedVec4Double (void *val) const override
 
virtual void doubleToValue (double in, void *out) const override
 
virtual void vec2DoubleToValue (dvec2 in, void *out) const override
 
virtual void vec3DoubleToValue (dvec3 in, void *out) const override
 
virtual void vec4DoubleToValue (dvec4 in, void *out) const override
 
- Public Member Functions inherited from inviwo::DataFormatBase
 DataFormatBase (DataFormatId type, size_t components, size_t size, double max, double min, double lowest, NumericType nt, const std::string &s)
 
size_t getSize () const
 
size_t getComponents () const
 
size_t getPrecision () const
 
NumericType getNumericType () const
 
double getMax () const
 
double getMin () const
 
double getLowest () const
 
const char * getString () const
 
DataFormatId getId () const
 
template<typename T , typename... Args>
auto dispatch (T &obj, Args &&... args) const -> typename T::type
 

Static Public Member Functions

static constexpr DataFormatId id ()
 
static const DataFormat< T > * get ()
 
static constexpr size_t size ()
 
static constexpr size_t components ()
 
static constexpr size_t precision ()
 
static constexpr NumericType numericType ()
 
static constexpr T max ()
 
static constexpr T min ()
 
static constexpr T lowest ()
 
static constexpr double maxToDouble ()
 
static constexpr double minToDouble ()
 
static constexpr double lowestToDouble ()
 
static std::string str ()
 
- Static Public Member Functions inherited from inviwo::DataFormatBase
static const DataFormatBaseget ()
 
static const DataFormatBaseget (DataFormatId id)
 
static const DataFormatBaseget (const std::string &name)
 
static const DataFormatBaseget (NumericType type, size_t components, size_t precision)
 

Static Public Attributes

static const size_t comp = util::extent<T>::value
 
static const size_t typesize = sizeof(type)
 
static const size_t compsize = sizeof(primitive)
 
static const NumericType numtype = util::getNumericType<primitive>()
 

Additional Inherited Members

- Static Protected Member Functions inherited from inviwo::DataFormatBase
static const DataFormatBasegetPointer (DataFormatId id)
 
- Protected Attributes inherited from inviwo::DataFormatBase
DataFormatId formatId_
 
size_t components_
 
size_t size_
 
NumericType numericType_
 
double max_
 
double min_
 
double lowest_
 
std::string formatStr_
 

Member Function Documentation

◆ components()

template<typename T >
constexpr size_t inviwo::DataFormat< T >::components ( )
static

Returns the number of components in the format, 1 to 4.

◆ precision()

template<typename T >
constexpr size_t inviwo::DataFormat< T >::precision ( )
static

Returns number of bits in each component in the format. can be 8, 16, 32 or 64.

◆ size()

template<typename T >
constexpr size_t inviwo::DataFormat< T >::size ( )
static

Returns the size of the format in bytes. For all components.


The documentation for this class was generated from the following file: