Open Inventor Release 2023.2.3
 
Loading...
Searching...
No Matches
SbImageDataType Class Reference

ImageViz 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
 Return number of channels.
 
const SbDataTypegetDataType () const
 Return type of channels.
 
bool operator== (const SbImageDataType &c1) const
 Operator == and operator !=.
 
bool operator!= (const SbImageDataType &c1) const
 
size_t getSize () const
 Return size in byte: nbChannel * sizeof(channel type)
 

Detailed Description

ImageViz Basic class representing multi channel DataType.

Basic class representing multi channel DataType. Encapsulate SbDataType and number of channels. All channels are concidered to have the same type.

Definition at line 40 of file SbImageDataType.h.

Constructor & Destructor Documentation

◆ SbImageDataType()

SbImageDataType::SbImageDataType ( uint32_t  nbChannel,
const SbDataType dataType 
)
inline
Parameters
nbChannelnumber of channels
dataTypetype of channel (all the channel have the same type)

Definition at line 46 of file SbImageDataType.h.

Member Function Documentation

◆ getDataType()

const SbDataType & SbImageDataType::getDataType ( ) const
inline

Return type of channels.

Definition at line 57 of file SbImageDataType.h.

◆ getNumChannel()

uint32_t SbImageDataType::getNumChannel ( ) const
inline

Return number of channels.

Definition at line 52 of file SbImageDataType.h.

◆ getSize()

size_t SbImageDataType::getSize ( ) const
inline

Return size in byte: nbChannel * sizeof(channel type)

Definition at line 66 of file SbImageDataType.h.

◆ operator!=()

bool SbImageDataType::operator!= ( const SbImageDataType c1) const
inline

Definition at line 61 of file SbImageDataType.h.

◆ operator==()

bool SbImageDataType::operator== ( const SbImageDataType c1) const
inline

Operator == and operator !=.

Definition at line 60 of file SbImageDataType.h.


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