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_Rect.h>
#include <UT/UT_Vector2.h>
#include <UT/UT_Vector3.h>
#include <UT/UT_Vector4.h>
#include <SYS/SYS_TypeDecorate.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 */
FMT_NOINLINE FMT_CONSTEXPR auto fill(OutputIt it, size_t n, const fill_t< Char > &fill) -> OutputIt
Definition: format.h:1262
Definition: core.h:760
GLuint GLfloat * val
Definition: glcorearb.h:1608
#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 y
Definition: glcorearb.h:103
#define UT_ASSERT_P(ZZ)
Definition: UT_Assert.h:155
GLint GLenum GLint x
Definition: glcorearb.h:409
#define UT_ASSERT(ZZ)
Definition: UT_Assert.h:156

Definition at line 193 of file BRAY_Raster.h.