DD::Image::DataInfo Class Reference

Class that provides information about component types. More...

List of all members.

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

Detailed Description

Class that provides information about component types.


Constructor & Destructor Documentation

DD::Image::DataInfo::DataInfo ( DataTypeEnum  dataType) [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.