HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
BRAY_Raster.h File Reference
#include "BRAY_API.h"
#include <PXL/PXL_Common.h>
#include <UT/UT_Assert.h>
#include <UT/UT_UniquePtr.h>
#include <UT/UT_Vector2.h>
#include <UT/UT_Vector3.h>
#include <UT/UT_Vector4.h>
#include <algorithm>
+ Include dependency graph for BRAY_Raster.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  BRAY_Raster
 Simple raster container. More...
 

Macros

#define CLEAR_TO_FLOAT(FORMAT_T)
 
#define VECTOR_ACCESS(VEC, NAME)
 

Macro Definition Documentation

#define CLEAR_TO_FLOAT (   FORMAT_T)
Value:
{ \
T* buffer = writeRasterAs<T>(); \
T tval = (T)val; \
buffer, \
buffer + (myXres * myYres * myNChannels), \
tval); \
} \
/* end macro */
GLuint buffer
Definition: glcorearb.h:659
GLuint GLfloat * val
Definition: glcorearb.h:1607
FMT_NOINLINE OutputIt fill(OutputIt it, size_t n, const fill_t< Char > &fill)
Definition: format.h:1483
#define VECTOR_ACCESS (   VEC,
  NAME 
)
Value:
const VEC *rasterAs##NAME() const { \
UT_ASSERT_P(VEC::tuple_size == nchannels()); \
return reinterpret_cast<const VEC *>(myRaster); \
} \
VEC *writeRasterAs##NAME() const { \
UT_ASSERT_P(VEC::tuple_size == nchannels()); \
UT_ASSERT(myBuffer.get()); \
return reinterpret_cast<VEC *>(myBuffer.get()); \
} \
const VEC *pixelAs##NAME(exint x, exint y) const { \
UT_ASSERT_P(VEC::tuple_size == nchannels()); \
return reinterpret_cast<const VEC *>(pixel(x, y)); \
} \
VEC *writePixelAs##NAME(exint x, exint y) const { \
UT_ASSERT_P(VEC::tuple_size == nchannels()); \
UT_ASSERT(myBuffer.get()); \
return reinterpret_cast<VEC *>(writePixel(x, y)); \
} \
/* end macro */
int64 exint
Definition: SYS_Types.h:125
GLint GLenum GLint x
Definition: glcorearb.h:408
#define UT_ASSERT_P(ZZ)
Definition: UT_Assert.h:170
#define UT_ASSERT(ZZ)
Definition: UT_Assert.h:171
#define const
Definition: zconf.h:214
GLint y
Definition: glcorearb.h:102

Definition at line 188 of file BRAY_Raster.h.