Class that provides information about component types. More...
Public Member Functions | |
DataInfo (DataTypeEnum dataType, bool clamps, int min, int max, int whitePoint) | |
Constructor requiring full specification on the data info. | |
DataInfo (DataTypeEnum dataType) | |
DataTypeEnum | dataType () const |
bool | clamps () const |
int | min () const |
int | max () const |
int | whitePoint () const |
bool | operator== (const DataInfo &rhs) const |
Protected Attributes | |
DataTypeEnum | _dataType |
the data type we are | |
bool | _clamps |
are min and max to be used or ignored, float formats should generally ignore them | |
int | _min |
the minimum legal value that can be stored, generally ignored by floats | |
int | _max |
the maximum legal value that can be store, generally ignored by floats | |
int | _whitePoint |
the nominal white point, generally 1 for floats | |
Class that provides information about component types.
|
inline |
Constructor requuring only the data type, setting the other info to defaults typical for the specified type.
References _clamps, _dataType, _max, _min, and _whitePoint.
©2020 The Foundry Visionmongers, Ltd. All Rights Reserved. |