HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UT_Raster Class Reference

#include <UT_Raster.h>

+ Inheritance diagram for UT_Raster:

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 () const
 
void setRasterDepth (UT_RasterDepth depth)
 
UT_ColorModel getColorModel () const
 
void setColorModel (UT_ColorModel model)
 
void byteSwapRaster ()
 
UT_RGBAgetRaster () const
 
UT_BIG_RGBAgetDeepRaster () const
 
voidgetVoidRaster () const
 
int getBytesPerPixel ()
 
void setNewRaster (UT_RGBA *r)
 
void setNewRaster (UT_BIG_RGBA *r)
 
void setPhantom (short b, short t)
 
short getPbot ()
 
short getPtop ()
 

Static Public Attributes

static UT_RGBA zeroPixel
 
static UT_RGBA onePixel
 

Protected Member Functions

void setBaseSize (short width, short height, void *newRaster=0)
 
voidallocateMemory (int size)
 
voidreAllocateMemory (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 22 of file UT_Raster.h.

Member Enumeration Documentation

Enumerator
UT_MODEL_RGBA 
UT_MODEL_ABGR 

Definition at line 26 of file UT_Raster.h.

Enumerator
UT_RASTER_8 
UT_RASTER_16 

Definition at line 25 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 ( const UT_RGBA pixel)
void UT_Raster::clear ( const UT_BIG_RGBA pixel)
void UT_Raster::clear ( const UT_Color color,
fpreal  alpha = 1.0f 
)
void UT_Raster::clear ( int  x1,
int  y1,
int  x2,
int  y2,
const UT_RGBA color 
)
void UT_Raster::clear ( int  x1,
int  y1,
int  x2,
int  y2,
const UT_BIG_RGBA color 
)
void UT_Raster::freeMemory ( void mem)
protected
int UT_Raster::getBytesPerPixel ( )
UT_ColorModel UT_Raster::getColorModel ( ) const
inline

Definition at line 48 of file UT_Raster.h.

UT_BIG_RGBA* UT_Raster::getDeepRaster ( ) const
short UT_Raster::getPbot ( )
inline

Definition at line 65 of file UT_Raster.h.

short UT_Raster::getPtop ( )
inline

Definition at line 66 of file UT_Raster.h.

UT_RGBA* UT_Raster::getRaster ( ) const
Examples:
SOP/SOP_CopRaster.C.
UT_RasterDepth UT_Raster::getRasterDepth ( ) const
inline

Definition at line 45 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_RGBA r)
void UT_Raster::setNewRaster ( UT_BIG_RGBA r)
void UT_Raster::setPhantom ( short  b,
short  t 
)
inline

Definition at line 64 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 33 of file UT_Raster.h.

short UT_Raster::Yres ( ) const
inline
Examples:
SOP/SOP_CopRaster.C.

Definition at line 34 of file UT_Raster.h.

Member Data Documentation

UT_ColorModel UT_Raster::myModel
protected

Definition at line 76 of file UT_Raster.h.

UT_RGBA UT_Raster::onePixel
static

Definition at line 69 of file UT_Raster.h.

short UT_Raster::pBot
protected

Definition at line 87 of file UT_Raster.h.

UT_RasterDepth UT_Raster::pixelDepth
protected

Definition at line 75 of file UT_Raster.h.

short UT_Raster::pTop
protected

Definition at line 88 of file UT_Raster.h.

UT_RGBA* UT_Raster::raster
protected

Definition at line 73 of file UT_Raster.h.

UT_BIG_RGBA* UT_Raster::raster16
protected

Definition at line 72 of file UT_Raster.h.

UT_RGBA** UT_Raster::scanlines
protected

Definition at line 74 of file UT_Raster.h.

short UT_Raster::xres
protected

Definition at line 85 of file UT_Raster.h.

short UT_Raster::yres
protected

Definition at line 86 of file UT_Raster.h.

UT_RGBA UT_Raster::zeroPixel
static

Definition at line 68 of file UT_Raster.h.


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