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 301 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 305 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 304 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 307 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 435 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 350 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 372 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 386 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 320 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 325 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 329 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 315 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 443 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 334 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 414 of file PXL_Raster.h.


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