Inviwo  0.9.10.1
Inviwo documentation
inviwo::DataFormatBase Class Reference
+ Inheritance diagram for inviwo::DataFormatBase:

Public Member Functions

 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
 
virtual double valueToDouble (void *) const
 
virtual dvec2 valueToVec2Double (void *) const
 
virtual dvec3 valueToVec3Double (void *) const
 
virtual dvec4 valueToVec4Double (void *) const
 
virtual double valueToNormalizedDouble (void *) const
 
virtual dvec2 valueToNormalizedVec2Double (void *) const
 
virtual dvec3 valueToNormalizedVec3Double (void *) const
 
virtual dvec4 valueToNormalizedVec4Double (void *) const
 
virtual void doubleToValue (double, void *) const
 
virtual void vec2DoubleToValue (dvec2, void *) const
 
virtual void vec3DoubleToValue (dvec3, void *) const
 
virtual void vec4DoubleToValue (dvec4, void *) const
 
template<typename T , typename... Args>
auto dispatch (T &obj, Args &&... args) const -> typename T::type
 

Static Public Member Functions

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 Protected Member Functions

static const DataFormatBasegetPointer (DataFormatId id)
 

Protected Attributes

DataFormatId formatId_
 
size_t components_
 
size_t size_
 
NumericType numericType_
 
double max_
 
double min_
 
double lowest_
 
std::string formatStr_
 

Member Function Documentation

◆ getComponents()

size_t inviwo::DataFormatBase::getComponents ( ) const

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

◆ getPrecision()

size_t inviwo::DataFormatBase::getPrecision ( ) const

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

◆ getSize()

size_t inviwo::DataFormatBase::getSize ( ) const

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


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