Raytrix Light Field SDK  4.0
Logo
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
Rx::TPixel< TDataType, tuColorCnt, tuAlphaCnt, tiR, tiG, tiB, tiA, tiPT, tiDT > Struct Template Reference

Detailed Description

template<class TDataType, unsigned int tuColorCnt, unsigned int tuAlphaCnt, int tiR, int tiG, int tiB, int tiA, int tiPT, int tiDT>
struct Rx::TPixel< TDataType, tuColorCnt, tuAlphaCnt, tiR, tiG, tiB, tiA, tiPT, tiDT >

General pixel template structure.

This structure allows the definition of all possible pixel types in such a way, that template functions working on different image types can be written.

Public Types

typedef TDataType TType
 

Public Member Functions

RX_CUDA_EXP TPixel ()
 Default constructor. More...
 
RX_CUDA_EXP TDataType & a ()
 
RX_CUDA_EXP const TDataType & a () const
 
RX_CUDA_EXP TDataType & b ()
 
RX_CUDA_EXP const TDataType & b () const
 
RX_CUDA_EXP void Clear ()
 Clears this object to its blank/initial state. More...
 
RX_CUDA_EXP TDataType & g ()
 
RX_CUDA_EXP const TDataType & g () const
 
RX_CUDA_EXP TPixel< TDataType, tuColorCnt, tuAlphaCnt, tiR, tiG, tiB, tiA, tiPT, tiDT > & operator= (const TPixel< TDataType, tuColorCnt, tuAlphaCnt, tiR, tiG, tiB, tiA, tiPT, tiDT > &rPix)
 Assignment operator. More...
 
RX_CUDA_EXP TDataType & r ()
 
RX_CUDA_EXP const TDataType & r () const
 

Static Public Member Functions

static RX_CUDA_EXP bool IsOfType (int _iPixelType, int _iDataType)
 
static RX_CUDA_EXP bool IsOfType (Interop::Runtime28::EPixelType::ID _ePixelType, Interop::Runtime28::EDataType::ID _eDataType)
 

Public Attributes

TDataType value [uCompoCnt]
 

Static Public Attributes

static const int iAlphaIdx
 
static const int iBlueIdx
 
static const int iDataType
 
static const int iGreenIdx
 
static const int iPixelType
 
static const int iRedIdx
 
static const unsigned uAlphaCnt
 
static const unsigned uAlphaSize
 
static const unsigned uColorCnt
 
static const unsigned uColorSize
 
static const unsigned uCompoCnt
 
static const unsigned uSize
 

Member Typedef Documentation

template<class TDataType , unsigned int tuColorCnt, unsigned int tuAlphaCnt, int tiR, int tiG, int tiB, int tiA, int tiPT, int tiDT>
typedef TDataType Rx::TPixel< TDataType, tuColorCnt, tuAlphaCnt, tiR, tiG, tiB, tiA, tiPT, tiDT >::TType

Constructor & Destructor Documentation

template<class TDataType , unsigned int tuColorCnt, unsigned int tuAlphaCnt, int tiR, int tiG, int tiB, int tiA, int tiPT, int tiDT>
RX_CUDA_EXP Rx::TPixel< TDataType, tuColorCnt, tuAlphaCnt, tiR, tiG, tiB, tiA, tiPT, tiDT >::TPixel ( )
inline

Default constructor.

Member Function Documentation

template<class TDataType , unsigned int tuColorCnt, unsigned int tuAlphaCnt, int tiR, int tiG, int tiB, int tiA, int tiPT, int tiDT>
RX_CUDA_EXP TDataType& Rx::TPixel< TDataType, tuColorCnt, tuAlphaCnt, tiR, tiG, tiB, tiA, tiPT, tiDT >::a ( )
inline
template<class TDataType , unsigned int tuColorCnt, unsigned int tuAlphaCnt, int tiR, int tiG, int tiB, int tiA, int tiPT, int tiDT>
RX_CUDA_EXP const TDataType& Rx::TPixel< TDataType, tuColorCnt, tuAlphaCnt, tiR, tiG, tiB, tiA, tiPT, tiDT >::a ( ) const
inline
template<class TDataType , unsigned int tuColorCnt, unsigned int tuAlphaCnt, int tiR, int tiG, int tiB, int tiA, int tiPT, int tiDT>
RX_CUDA_EXP TDataType& Rx::TPixel< TDataType, tuColorCnt, tuAlphaCnt, tiR, tiG, tiB, tiA, tiPT, tiDT >::b ( )
inline
template<class TDataType , unsigned int tuColorCnt, unsigned int tuAlphaCnt, int tiR, int tiG, int tiB, int tiA, int tiPT, int tiDT>
RX_CUDA_EXP const TDataType& Rx::TPixel< TDataType, tuColorCnt, tuAlphaCnt, tiR, tiG, tiB, tiA, tiPT, tiDT >::b ( ) const
inline
template<class TDataType , unsigned int tuColorCnt, unsigned int tuAlphaCnt, int tiR, int tiG, int tiB, int tiA, int tiPT, int tiDT>
RX_CUDA_EXP void Rx::TPixel< TDataType, tuColorCnt, tuAlphaCnt, tiR, tiG, tiB, tiA, tiPT, tiDT >::Clear ( )
inline

Clears this object to its blank/initial state.

template<class TDataType , unsigned int tuColorCnt, unsigned int tuAlphaCnt, int tiR, int tiG, int tiB, int tiA, int tiPT, int tiDT>
RX_CUDA_EXP TDataType& Rx::TPixel< TDataType, tuColorCnt, tuAlphaCnt, tiR, tiG, tiB, tiA, tiPT, tiDT >::g ( )
inline
template<class TDataType , unsigned int tuColorCnt, unsigned int tuAlphaCnt, int tiR, int tiG, int tiB, int tiA, int tiPT, int tiDT>
RX_CUDA_EXP const TDataType& Rx::TPixel< TDataType, tuColorCnt, tuAlphaCnt, tiR, tiG, tiB, tiA, tiPT, tiDT >::g ( ) const
inline
template<class TDataType , unsigned int tuColorCnt, unsigned int tuAlphaCnt, int tiR, int tiG, int tiB, int tiA, int tiPT, int tiDT>
static RX_CUDA_EXP bool Rx::TPixel< TDataType, tuColorCnt, tuAlphaCnt, tiR, tiG, tiB, tiA, tiPT, tiDT >::IsOfType ( int  _iPixelType,
int  _iDataType 
)
inlinestatic
template<class TDataType , unsigned int tuColorCnt, unsigned int tuAlphaCnt, int tiR, int tiG, int tiB, int tiA, int tiPT, int tiDT>
static RX_CUDA_EXP bool Rx::TPixel< TDataType, tuColorCnt, tuAlphaCnt, tiR, tiG, tiB, tiA, tiPT, tiDT >::IsOfType ( Interop::Runtime28::EPixelType::ID  _ePixelType,
Interop::Runtime28::EDataType::ID  _eDataType 
)
inlinestatic
template<class TDataType , unsigned int tuColorCnt, unsigned int tuAlphaCnt, int tiR, int tiG, int tiB, int tiA, int tiPT, int tiDT>
RX_CUDA_EXP TPixel<TDataType, tuColorCnt, tuAlphaCnt, tiR, tiG, tiB, tiA, tiPT, tiDT>& Rx::TPixel< TDataType, tuColorCnt, tuAlphaCnt, tiR, tiG, tiB, tiA, tiPT, tiDT >::operator= ( const TPixel< TDataType, tuColorCnt, tuAlphaCnt, tiR, tiG, tiB, tiA, tiPT, tiDT > &  rPix)
inline

Assignment operator.

Parameters
rPixThe pix.
Returns
A shallow copy of this object.
template<class TDataType , unsigned int tuColorCnt, unsigned int tuAlphaCnt, int tiR, int tiG, int tiB, int tiA, int tiPT, int tiDT>
RX_CUDA_EXP TDataType& Rx::TPixel< TDataType, tuColorCnt, tuAlphaCnt, tiR, tiG, tiB, tiA, tiPT, tiDT >::r ( )
inline
template<class TDataType , unsigned int tuColorCnt, unsigned int tuAlphaCnt, int tiR, int tiG, int tiB, int tiA, int tiPT, int tiDT>
RX_CUDA_EXP const TDataType& Rx::TPixel< TDataType, tuColorCnt, tuAlphaCnt, tiR, tiG, tiB, tiA, tiPT, tiDT >::r ( ) const
inline

Member Data Documentation

template<class TDataType , unsigned int tuColorCnt, unsigned int tuAlphaCnt, int tiR, int tiG, int tiB, int tiA, int tiPT, int tiDT>
const int Rx::TPixel< TDataType, tuColorCnt, tuAlphaCnt, tiR, tiG, tiB, tiA, tiPT, tiDT >::iAlphaIdx
static
template<class TDataType , unsigned int tuColorCnt, unsigned int tuAlphaCnt, int tiR, int tiG, int tiB, int tiA, int tiPT, int tiDT>
const int Rx::TPixel< TDataType, tuColorCnt, tuAlphaCnt, tiR, tiG, tiB, tiA, tiPT, tiDT >::iBlueIdx
static
template<class TDataType , unsigned int tuColorCnt, unsigned int tuAlphaCnt, int tiR, int tiG, int tiB, int tiA, int tiPT, int tiDT>
const int Rx::TPixel< TDataType, tuColorCnt, tuAlphaCnt, tiR, tiG, tiB, tiA, tiPT, tiDT >::iDataType
static
template<class TDataType , unsigned int tuColorCnt, unsigned int tuAlphaCnt, int tiR, int tiG, int tiB, int tiA, int tiPT, int tiDT>
const int Rx::TPixel< TDataType, tuColorCnt, tuAlphaCnt, tiR, tiG, tiB, tiA, tiPT, tiDT >::iGreenIdx
static
template<class TDataType , unsigned int tuColorCnt, unsigned int tuAlphaCnt, int tiR, int tiG, int tiB, int tiA, int tiPT, int tiDT>
const int Rx::TPixel< TDataType, tuColorCnt, tuAlphaCnt, tiR, tiG, tiB, tiA, tiPT, tiDT >::iPixelType
static
template<class TDataType , unsigned int tuColorCnt, unsigned int tuAlphaCnt, int tiR, int tiG, int tiB, int tiA, int tiPT, int tiDT>
const int Rx::TPixel< TDataType, tuColorCnt, tuAlphaCnt, tiR, tiG, tiB, tiA, tiPT, tiDT >::iRedIdx
static
template<class TDataType , unsigned int tuColorCnt, unsigned int tuAlphaCnt, int tiR, int tiG, int tiB, int tiA, int tiPT, int tiDT>
const unsigned Rx::TPixel< TDataType, tuColorCnt, tuAlphaCnt, tiR, tiG, tiB, tiA, tiPT, tiDT >::uAlphaCnt
static
template<class TDataType , unsigned int tuColorCnt, unsigned int tuAlphaCnt, int tiR, int tiG, int tiB, int tiA, int tiPT, int tiDT>
const unsigned Rx::TPixel< TDataType, tuColorCnt, tuAlphaCnt, tiR, tiG, tiB, tiA, tiPT, tiDT >::uAlphaSize
static
template<class TDataType , unsigned int tuColorCnt, unsigned int tuAlphaCnt, int tiR, int tiG, int tiB, int tiA, int tiPT, int tiDT>
const unsigned Rx::TPixel< TDataType, tuColorCnt, tuAlphaCnt, tiR, tiG, tiB, tiA, tiPT, tiDT >::uColorCnt
static
template<class TDataType , unsigned int tuColorCnt, unsigned int tuAlphaCnt, int tiR, int tiG, int tiB, int tiA, int tiPT, int tiDT>
const unsigned Rx::TPixel< TDataType, tuColorCnt, tuAlphaCnt, tiR, tiG, tiB, tiA, tiPT, tiDT >::uColorSize
static
template<class TDataType , unsigned int tuColorCnt, unsigned int tuAlphaCnt, int tiR, int tiG, int tiB, int tiA, int tiPT, int tiDT>
const unsigned Rx::TPixel< TDataType, tuColorCnt, tuAlphaCnt, tiR, tiG, tiB, tiA, tiPT, tiDT >::uCompoCnt
static
template<class TDataType , unsigned int tuColorCnt, unsigned int tuAlphaCnt, int tiR, int tiG, int tiB, int tiA, int tiPT, int tiDT>
const unsigned Rx::TPixel< TDataType, tuColorCnt, tuAlphaCnt, tiR, tiG, tiB, tiA, tiPT, tiDT >::uSize
static
template<class TDataType , unsigned int tuColorCnt, unsigned int tuAlphaCnt, int tiR, int tiG, int tiB, int tiA, int tiPT, int tiDT>
TDataType Rx::TPixel< TDataType, tuColorCnt, tuAlphaCnt, tiR, tiG, tiB, tiA, tiPT, tiDT >::value[uCompoCnt]