Basic class representing multi channel DataType. More...
#include <ImageViz/SbImageDataType.h>
Public Member Functions | |
SbImageDataType (uint32_t nbChannel, const SbDataType &dataType) | |
uint32_t | getNumChannel () const |
bool | operator== (const SbImageDataType &c1) const |
bool | operator!= (const SbImageDataType &c1) const |
size_t | getSize () const |
Basic class representing multi channel DataType. Encapsulate SbDataType and number of channels. All channels are concidered to have the same type.
SbImageDataType::SbImageDataType | ( | uint32_t | nbChannel, | |
const SbDataType & | dataType | |||
) | [inline] |
nbChannel | number of channels | |
dataType | type of channel (all the channel have the same type) |
uint32_t SbImageDataType::getNumChannel | ( | ) | const [inline] |
Return number of channels.
size_t SbImageDataType::getSize | ( | ) | const [inline] |
Return size in byte: nbChannel * sizeof(channel type).
bool SbImageDataType::operator!= | ( | const SbImageDataType & | c1 | ) | const [inline] |
bool SbImageDataType::operator== | ( | const SbImageDataType & | c1 | ) | const [inline] |
Return type of channels.
inline const SbDataType& getDataType() const { return m_dataType; }
/** Operator == and operator !=