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
 

Macros

#define VECTOR_ACCESS(VEC, NAME)
 

Macro Definition Documentation

#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 GLint GLint GLint GLint x
Definition: glew.h:1252
GLint GLint GLint GLint GLint GLint y
Definition: glew.h:1252
#define UT_ASSERT_P(ZZ)
Definition: UT_Assert.h:134
#define UT_ASSERT(ZZ)
Definition: UT_Assert.h:135
#define const
Definition: zconf.h:214

Definition at line 158 of file BRAY_Raster.h.