HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PXL_RasterWrapper< T, NCOMPONENTS, INTERLEAVED, READ_ONLY > Class Template Reference

#include <PXL_Raster.h>

Public Types

typedef SYS_ConstType
< PXL_Raster, READ_ONLY >
::type 
RasterType
 
typedef SYS_ConstType< T,
READ_ONLY >::type 
DataType
 

Public Member Functions

SYS_FORCE_INLINE PXL_RasterWrapper (RasterType *raster=nullptr)
 
SYS_FORCE_INLINE
PXL_RasterWrapper< T,
NCOMPONENTS, INTERLEAVED, true > 
makeConstant () const
 
SYS_FORCE_INLINE RasterTypegetRaster () const
 
SYS_FORCE_INLINE exint getXres () const
 
SYS_FORCE_INLINE exint getYres () const
 
SYS_FORCE_INLINE void setRaster (RasterType *raster)
 
DataTypegetPixel (exint x, exint y, exint comp=0) const
 
SYS_FORCE_INLINE DataTypegetPixelFast (void *pixels, exint x, exint y) const
 
SYS_FORCE_INLINE void getPixelValueFast (const void *pixels, exint x, exint y, float *vals) const
 
SYS_FORCE_INLINE void zeroPixelValueFast (void *pixels, exint x, exint y) const
 
SYS_FORCE_INLINE void setPixelValueFast (void *pixels, exint x, exint y, const T *vals) const
 

Static Public Member Functions

static SYS_FORCE_INLINE T convertFromFloat (const float val)
 

Detailed Description

template<typename T, int NCOMPONENTS, bool INTERLEAVED, bool READ_ONLY>
class PXL_RasterWrapper< T, NCOMPONENTS, INTERLEAVED, READ_ONLY >

This is a wrapper for when the PXL_DataFormat and PXL_Packing are known at compile-time, e.g. constructing this inside a branch of a switch statement over all types.

Definition at line 324 of file PXL_Raster.h.

Member Typedef Documentation

template<typename T, int NCOMPONENTS, bool INTERLEAVED, bool READ_ONLY>
typedef SYS_ConstType<T,READ_ONLY>::type PXL_RasterWrapper< T, NCOMPONENTS, INTERLEAVED, READ_ONLY >::DataType

Definition at line 328 of file PXL_Raster.h.

template<typename T, int NCOMPONENTS, bool INTERLEAVED, bool READ_ONLY>
typedef SYS_ConstType<PXL_Raster,READ_ONLY>::type PXL_RasterWrapper< T, NCOMPONENTS, INTERLEAVED, READ_ONLY >::RasterType

Definition at line 327 of file PXL_Raster.h.

Constructor & Destructor Documentation

template<typename T, int NCOMPONENTS, bool INTERLEAVED, bool READ_ONLY>
SYS_FORCE_INLINE PXL_RasterWrapper< T, NCOMPONENTS, INTERLEAVED, READ_ONLY >::PXL_RasterWrapper ( RasterType raster = nullptr)
inline

Definition at line 330 of file PXL_Raster.h.

Member Function Documentation

template<typename T, int NCOMPONENTS, bool INTERLEAVED, bool READ_ONLY>
static SYS_FORCE_INLINE T PXL_RasterWrapper< T, NCOMPONENTS, INTERLEAVED, READ_ONLY >::convertFromFloat ( const float  val)
inlinestatic

Definition at line 458 of file PXL_Raster.h.

template<typename T, int NCOMPONENTS, bool INTERLEAVED, bool READ_ONLY>
DataType* PXL_RasterWrapper< T, NCOMPONENTS, INTERLEAVED, READ_ONLY >::getPixel ( exint  x,
exint  y,
exint  comp = 0 
) const
inline

Definition at line 373 of file PXL_Raster.h.

template<typename T, int NCOMPONENTS, bool INTERLEAVED, bool READ_ONLY>
SYS_FORCE_INLINE DataType* PXL_RasterWrapper< T, NCOMPONENTS, INTERLEAVED, READ_ONLY >::getPixelFast ( void pixels,
exint  x,
exint  y 
) const
inline

Definition at line 395 of file PXL_Raster.h.

template<typename T, int NCOMPONENTS, bool INTERLEAVED, bool READ_ONLY>
SYS_FORCE_INLINE void PXL_RasterWrapper< T, NCOMPONENTS, INTERLEAVED, READ_ONLY >::getPixelValueFast ( const void pixels,
exint  x,
exint  y,
float vals 
) const
inline

Definition at line 409 of file PXL_Raster.h.

template<typename T, int NCOMPONENTS, bool INTERLEAVED, bool READ_ONLY>
SYS_FORCE_INLINE RasterType* PXL_RasterWrapper< T, NCOMPONENTS, INTERLEAVED, READ_ONLY >::getRaster ( ) const
inline

Definition at line 343 of file PXL_Raster.h.

template<typename T, int NCOMPONENTS, bool INTERLEAVED, bool READ_ONLY>
SYS_FORCE_INLINE exint PXL_RasterWrapper< T, NCOMPONENTS, INTERLEAVED, READ_ONLY >::getXres ( ) const
inline

Definition at line 348 of file PXL_Raster.h.

template<typename T, int NCOMPONENTS, bool INTERLEAVED, bool READ_ONLY>
SYS_FORCE_INLINE exint PXL_RasterWrapper< T, NCOMPONENTS, INTERLEAVED, READ_ONLY >::getYres ( ) const
inline

Definition at line 352 of file PXL_Raster.h.

template<typename T, int NCOMPONENTS, bool INTERLEAVED, bool READ_ONLY>
SYS_FORCE_INLINE PXL_RasterWrapper<T, NCOMPONENTS, INTERLEAVED, true> PXL_RasterWrapper< T, NCOMPONENTS, INTERLEAVED, READ_ONLY >::makeConstant ( ) const
inline

Definition at line 338 of file PXL_Raster.h.

template<typename T, int NCOMPONENTS, bool INTERLEAVED, bool READ_ONLY>
SYS_FORCE_INLINE void PXL_RasterWrapper< T, NCOMPONENTS, INTERLEAVED, READ_ONLY >::setPixelValueFast ( void pixels,
exint  x,
exint  y,
const T vals 
) const
inline

Definition at line 466 of file PXL_Raster.h.

template<typename T, int NCOMPONENTS, bool INTERLEAVED, bool READ_ONLY>
SYS_FORCE_INLINE void PXL_RasterWrapper< T, NCOMPONENTS, INTERLEAVED, READ_ONLY >::setRaster ( RasterType raster)
inline

Definition at line 357 of file PXL_Raster.h.

template<typename T, int NCOMPONENTS, bool INTERLEAVED, bool READ_ONLY>
SYS_FORCE_INLINE void PXL_RasterWrapper< T, NCOMPONENTS, INTERLEAVED, READ_ONLY >::zeroPixelValueFast ( void pixels,
exint  x,
exint  y 
) const
inline

Definition at line 437 of file PXL_Raster.h.


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