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

#include <TIL_Region.h>

+ Inheritance diagram for TIL_Region:

Public Member Functions

void init (const TIL_Plane *parent, int input_index, int array_index, float time, int xres, int yres, int x1, int y1, int x2, int y2, int bx1, int by1, int bx2, int by2, TIL_RegionExtend hold=TIL_BLACK, int share_count=1, int nid=0, bool output=false, int xpad=0)
 
void reset ()
 
void clear ()
 
int getID () const
 
int getNodeID () const
 
int open (void *regionlist[PLANE_MAX_VECTOR_SIZE]=0)
 
int close ()
 
const TIL_PlanegetParent () const
 
int getInputRef () const
 
int getArrayIndex () const
 
float getTime () const
 
void getRegionRes (int &x, int &y) const
 
void getRegionBounds (int &x1, int &y1, int &x2, int &y2) const
 
void markFilled (bool filled=true)
 
int isFilled () const
 
int remainingTiles () const
 
bool isInitialized () const
 
bool workOnRegion ()
 
int getNextNeededTile (int &xoff, int &yoff, int &xshift, int &yshift)
 
void finishedTile (int xoff, int yoff)
 
void checkConstant (const TIL_Tile *tile, int component)
 
bool isConstantChecked () const
 
bool isConstant (bool force_check=false)
 
bool isConstantValue () const
 
void getConstantColor (float color[4]) const
 
void setConstantColor (float color[4])
 
void rejectTile (int xoff, int yoff)
 
voidgetImageData (int index)
 
const voidgetImageData (int index) const
 
voidgetImageData (const char *compname)
 
const voidgetImageData (const char *compname) const
 
void setImageData (void *data, int index, bool reference=true)
 
exint getImageDataSizePerComponent () const
 
exint getMemSize ()
 
bool isSharedRegion () const
 
bool isSharedRegionDone () const
 
int getCurrentRefCount () const
 
int getCurrentShareCount () const
 
void unshareRegion ()
 
unsigned getHash () const
 
TIL_TileListgetTilesFromRegion ()
 
void cleanupTiles (TIL_TileList *&tiles)
 
void setWorkTime (float cooktime)
 
float getWorkTime () const
 

Static Public Member Functions

static TIL_RegionallocRegion ()
 
static void freeRegion (TIL_Region *&freeme)
 
static unsigned getHash (const TIL_Plane *plane, int aindex, int inref, float t, int x1, int y1, int x2, int y2, int xres, int yres, int nid, bool output)
 
- Static Public Member Functions inherited from UT_SmallObject< TIL_Region, UT_SMALLOBJECT_CLEANPAGES_OFF, 32, UT_SMALLOBJECT_THREADSAFE_ON, 1024 >
static voidoperator new (size_t size)
 Regular new/delete operators. More...
 
static void operator delete (void *p, size_t size)
 Regular new/delete operators. More...
 
static voidoperator new (size_t, void *p)
 
static void operator delete (void *, void *)
 

Detailed Description

Member Function Documentation

static TIL_Region* TIL_Region::allocRegion ( )
static
void TIL_Region::checkConstant ( const TIL_Tile tile,
int  component 
)
void TIL_Region::cleanupTiles ( TIL_TileList *&  tiles)
void TIL_Region::clear ( )
int TIL_Region::close ( )
void TIL_Region::finishedTile ( int  xoff,
int  yoff 
)
static void TIL_Region::freeRegion ( TIL_Region *&  freeme)
static
int TIL_Region::getArrayIndex ( ) const
inline

Definition at line 74 of file TIL_Region.h.

void TIL_Region::getConstantColor ( float  color[4]) const
int TIL_Region::getCurrentRefCount ( ) const
inline

Definition at line 133 of file TIL_Region.h.

int TIL_Region::getCurrentShareCount ( ) const
inline

Definition at line 134 of file TIL_Region.h.

unsigned TIL_Region::getHash ( ) const
inline

Definition at line 138 of file TIL_Region.h.

static unsigned TIL_Region::getHash ( const TIL_Plane plane,
int  aindex,
int  inref,
float  t,
int  x1,
int  y1,
int  x2,
int  y2,
int  xres,
int  yres,
int  nid,
bool  output 
)
static
int TIL_Region::getID ( ) const
inline

Definition at line 60 of file TIL_Region.h.

void* TIL_Region::getImageData ( int  index)
const void* TIL_Region::getImageData ( int  index) const
void* TIL_Region::getImageData ( const char *  compname)
const void* TIL_Region::getImageData ( const char *  compname) const
exint TIL_Region::getImageDataSizePerComponent ( ) const
int TIL_Region::getInputRef ( ) const
inline

Definition at line 73 of file TIL_Region.h.

exint TIL_Region::getMemSize ( )
int TIL_Region::getNextNeededTile ( int xoff,
int yoff,
int xshift,
int yshift 
)
int TIL_Region::getNodeID ( ) const
inline

Definition at line 61 of file TIL_Region.h.

const TIL_Plane* TIL_Region::getParent ( ) const
inline

Definition at line 72 of file TIL_Region.h.

void TIL_Region::getRegionBounds ( int x1,
int y1,
int x2,
int y2 
) const
inline

Definition at line 79 of file TIL_Region.h.

void TIL_Region::getRegionRes ( int x,
int y 
) const
inline

Definition at line 76 of file TIL_Region.h.

TIL_TileList* TIL_Region::getTilesFromRegion ( )
float TIL_Region::getTime ( ) const
inline

Definition at line 75 of file TIL_Region.h.

float TIL_Region::getWorkTime ( ) const
inline

Definition at line 158 of file TIL_Region.h.

void TIL_Region::init ( const TIL_Plane parent,
int  input_index,
int  array_index,
float  time,
int  xres,
int  yres,
int  x1,
int  y1,
int  x2,
int  y2,
int  bx1,
int  by1,
int  bx2,
int  by2,
TIL_RegionExtend  hold = TIL_BLACK,
int  share_count = 1,
int  nid = 0,
bool  output = false,
int  xpad = 0 
)
bool TIL_Region::isConstant ( bool  force_check = false)
bool TIL_Region::isConstantChecked ( ) const
inline

Definition at line 104 of file TIL_Region.h.

bool TIL_Region::isConstantValue ( ) const
int TIL_Region::isFilled ( ) const
inline

Definition at line 87 of file TIL_Region.h.

bool TIL_Region::isInitialized ( ) const
inline

Definition at line 89 of file TIL_Region.h.

bool TIL_Region::isSharedRegion ( ) const
inline

Definition at line 131 of file TIL_Region.h.

bool TIL_Region::isSharedRegionDone ( ) const
inline

Definition at line 132 of file TIL_Region.h.

void TIL_Region::markFilled ( bool  filled = true)
inline

Definition at line 84 of file TIL_Region.h.

int TIL_Region::open ( void regionlist[PLANE_MAX_VECTOR_SIZE] = 0)
void TIL_Region::rejectTile ( int  xoff,
int  yoff 
)
int TIL_Region::remainingTiles ( ) const
inline

Definition at line 88 of file TIL_Region.h.

void TIL_Region::reset ( )
void TIL_Region::setConstantColor ( float  color[4])
void TIL_Region::setImageData ( void data,
int  index,
bool  reference = true 
)
void TIL_Region::setWorkTime ( float  cooktime)
inline

Definition at line 157 of file TIL_Region.h.

void TIL_Region::unshareRegion ( )
bool TIL_Region::workOnRegion ( )

Member Data Documentation

TIL_Region* TIL_Region::myNext

Definition at line 173 of file TIL_Region.h.

const TIL_Plane* TIL_Region::myParent

Definition at line 172 of file TIL_Region.h.


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