UT_Raster Class Reference

#include <UT_Raster.h>

Inheritance diagram for UT_Raster:

IMG_Raster

List of all members.

Public Types

enum  UT_RasterDepth { UT_RASTER_8, UT_RASTER_16 }
enum  UT_ColorModel { UT_MODEL_RGBA, UT_MODEL_ABGR }

Public Member Functions

 UT_Raster ()
virtual ~UT_Raster ()
short Xres () const
short Yres () const
void clear (const UT_RGBA &pixel)
void clear (const UT_BIG_RGBA &pixel)
void clear (const UT_Color &color, fpreal alpha=1.0f)
void clear (int x1, int y1, int x2, int y2, const UT_RGBA &color)
void clear (int x1, int y1, int x2, int y2, const UT_BIG_RGBA &color)
UT_RasterDepth getRasterDepth (void) const
void setRasterDepth (UT_RasterDepth depth)
UT_ColorModel getColorModel (void) const
void setColorModel (UT_ColorModel model)
void byteSwapRaster ()
UT_RGBAgetRaster () const
UT_BIG_RGBAgetDeepRaster () const
void * getVoidRaster () const
int getBytesPerPixel (void)
void setNewRaster (UT_RGBA *r)
void setNewRaster (UT_BIG_RGBA *r)
void setPhantom (short b, short t)
short getPbot (void)
short getPtop (void)

Static Public Attributes

static UT_RGBA zeroPixel
static UT_RGBA onePixel

Protected Member Functions

void setBaseSize (short width, short height, void *newRaster=0)
void * allocateMemory (int size)
void * reAllocateMemory (void *mem, int size)
void freeMemory (void *mem)
void init ()

Protected Attributes

UT_BIG_RGBAraster16
UT_RGBAraster
UT_RGBA ** scanlines
UT_RasterDepth pixelDepth
UT_ColorModel myModel
short xres
short yres
short pBot
short pTop


Detailed Description

Definition at line 29 of file UT_Raster.h.


Member Enumeration Documentation

Enumerator:
UT_MODEL_RGBA 
UT_MODEL_ABGR 

Definition at line 33 of file UT_Raster.h.

Enumerator:
UT_RASTER_8 
UT_RASTER_16 

Definition at line 32 of file UT_Raster.h.


Constructor & Destructor Documentation

UT_Raster::UT_Raster (  ) 

virtual UT_Raster::~UT_Raster (  )  [virtual]


Member Function Documentation

void* UT_Raster::allocateMemory ( int  size  )  [protected]

void UT_Raster::byteSwapRaster (  ) 

void UT_Raster::clear ( int  x1,
int  y1,
int  x2,
int  y2,
const UT_BIG_RGBA color 
)

void UT_Raster::clear ( int  x1,
int  y1,
int  x2,
int  y2,
const UT_RGBA color 
)

void UT_Raster::clear ( const UT_Color color,
fpreal  alpha = 1.0f 
)

void UT_Raster::clear ( const UT_BIG_RGBA pixel  ) 

void UT_Raster::clear ( const UT_RGBA pixel  ) 

void UT_Raster::freeMemory ( void *  mem  )  [protected]

int UT_Raster::getBytesPerPixel ( void   ) 

UT_ColorModel UT_Raster::getColorModel ( void   )  const [inline]

Definition at line 53 of file UT_Raster.h.

UT_BIG_RGBA* UT_Raster::getDeepRaster (  )  const

short UT_Raster::getPbot ( void   )  [inline]

Definition at line 70 of file UT_Raster.h.

short UT_Raster::getPtop ( void   )  [inline]

Definition at line 71 of file UT_Raster.h.

UT_RGBA* UT_Raster::getRaster (  )  const

Examples:
SOP/SOP_CopRaster.C.

UT_RasterDepth UT_Raster::getRasterDepth ( void   )  const [inline]

Definition at line 50 of file UT_Raster.h.

void* UT_Raster::getVoidRaster (  )  const

void UT_Raster::init (  )  [protected]

void* UT_Raster::reAllocateMemory ( void *  mem,
int  size 
) [protected]

void UT_Raster::setBaseSize ( short  width,
short  height,
void *  newRaster = 0 
) [protected]

void UT_Raster::setColorModel ( UT_ColorModel  model  ) 

void UT_Raster::setNewRaster ( UT_BIG_RGBA r  ) 

void UT_Raster::setNewRaster ( UT_RGBA r  ) 

void UT_Raster::setPhantom ( short  b,
short  t 
) [inline]

Definition at line 69 of file UT_Raster.h.

void UT_Raster::setRasterDepth ( UT_RasterDepth  depth  ) 

Examples:
SOP/SOP_CopRaster.C.

short UT_Raster::Xres (  )  const [inline]

Examples:
SOP/SOP_CopRaster.C.

Definition at line 38 of file UT_Raster.h.

short UT_Raster::Yres (  )  const [inline]

Examples:
SOP/SOP_CopRaster.C.

Definition at line 39 of file UT_Raster.h.


Member Data Documentation

Definition at line 81 of file UT_Raster.h.

Definition at line 74 of file UT_Raster.h.

short UT_Raster::pBot [protected]

Definition at line 92 of file UT_Raster.h.

Definition at line 80 of file UT_Raster.h.

short UT_Raster::pTop [protected]

Definition at line 93 of file UT_Raster.h.

UT_RGBA* UT_Raster::raster [protected]

Definition at line 78 of file UT_Raster.h.

Definition at line 77 of file UT_Raster.h.

Definition at line 79 of file UT_Raster.h.

short UT_Raster::xres [protected]

Definition at line 90 of file UT_Raster.h.

short UT_Raster::yres [protected]

Definition at line 91 of file UT_Raster.h.

Definition at line 73 of file UT_Raster.h.


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

Generated on Fri May 25 00:10:52 2012 for HDK by  doxygen 1.5.9