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

#include <TIL_Tile.h>

+ Inheritance diagram for TIL_Tile:

Public Member Functions

void reset ()
 
void clear (float value=0.0F, int scanstep=1, int scanoff=0)
 
void lineDouble (bool odd)
 
int matches (const UT_TokenString *image_id, int tilex, int tiley) const
 
int compare (const UT_TokenString *image_id, int tilex, int tiley) const
 
void setVectorName (const char *name, int vector=0)
 
const char * getVectorName () const
 
void setCompName (const char *name)
 
const char * getCompName () const
 
int getVectorIndex () const
 
void setFormat (TIL_DataFormat f)
 
TIL_DataFormat getFormat () const
 
void setStorage (TIL_Storage storage)
 
TIL_Storage getStorage () const
 
void setImageNum (int n)
 
int getImageNum () const
 
void setBlackWhitePoints (int black, int white)
 
int usesBlackWhitePoints () const
 
void getBlackWhitePoints (unsigned int &black, unsigned int &white) const
 
void setOffset (int x, int y)
 
void getOffset (int &x, int &y) const
 
void setSize (int x, int y)
 
void getSize (int &x, int &y) const
 
int getNumPixels () const
 
void setParent (void *parent)
 
voidgetParent () const
 
void setNodePath (const char *path)
 
const char * getNodePath () const
 
void setImageIdentifier (UT_TokenString *token)
 
const UT_TokenStringgetImageIdentifier () const
 
void setCooked (bool done=true)
 
bool isCooked () const
 
bool isCheckpoint () const
 
int getCheckpointCount () const
 
void incrementCheckpointCount ()
 
void decrementCheckpointCount ()
 
bool determineIfConstant ()
 
bool isConstantTile () const
 
float getConstantColor () const
 
void setConstantTile (bool constant)
 
int lock (int access, int block=1)
 
void lockWriteToRead (int score)
 
void unlock (int access)
 
void setProxyHold (bool on)
 
int getMemSize () const
 
int64 getMemoryUsage (bool inclusive) const
 
void setImageData (til_AlignedBlock *data)
 
void getImageData (const unsigned char *&data) const
 
void getImageData (const unsigned short *&data) const
 
void getImageData (const unsigned int *&data) const
 
void getImageData (const float *&data) const
 
void getImageData (const fpreal16 *&data) const
 
const voidgetImageData () const
 
void getImageData (unsigned char *&data)
 
void getImageData (unsigned short *&data)
 
void getImageData (unsigned int *&data)
 
void getImageData (float *&data)
 
void getImageData (fpreal16 *&data)
 
voidgetImageData ()
 
til_AlignedBlockgetImageBlock ()
 
void setPriority (unsigned int p)
 
int getPriority () const
 
int isCacheLocked () const
 
bool isReadLocked () const
 
bool isWriteLocked () const
 
bool isBorrowedImage () const
 
void setBorrowedImage (bool b)
 
void print (std::ostream &os) const
 
- Public Member Functions inherited from TIL_HoldingNode
 TIL_HoldingNode ()
 
TIL_HoldingNode *& prev ()
 
TIL_HoldingNode *& next ()
 
TIL_HoldingNodeprev () const
 
TIL_HoldingNodenext () const
 
void setQueue (TIL_HoldingQueue *q, bool update_queues=true)
 
TIL_HoldingQueuequeue () const
 

Static Public Member Functions

static void setNewTileSize (int xsize, int ysize)
 
static int getTileSizeX ()
 
static int getTileSizeY ()
 
static int getTile8Mem ()
 
static int getTile16Mem ()
 
static int getTile32Mem ()
 
static void setTileCachePtr (TIL_TileCache *tc)
 
static void setCopPrintCallback (void(*callback)(void *, std::ostream &))
 

Friends

class TIL_TileCache
 

Detailed Description

Member Function Documentation

void TIL_Tile::clear ( float  value = 0.0F,
int  scanstep = 1,
int  scanoff = 0 
)
int TIL_Tile::compare ( const UT_TokenString image_id,
int  tilex,
int  tiley 
) const
void TIL_Tile::decrementCheckpointCount ( )
bool TIL_Tile::determineIfConstant ( )
void TIL_Tile::getBlackWhitePoints ( unsigned int black,
unsigned int white 
) const
inline

Definition at line 79 of file TIL_Tile.h.

int TIL_Tile::getCheckpointCount ( ) const
inline

Definition at line 115 of file TIL_Tile.h.

const char* TIL_Tile::getCompName ( ) const
inline

Definition at line 61 of file TIL_Tile.h.

float TIL_Tile::getConstantColor ( ) const
TIL_DataFormat TIL_Tile::getFormat ( ) const
inline

Definition at line 66 of file TIL_Tile.h.

til_AlignedBlock* TIL_Tile::getImageBlock ( )
inline

Definition at line 162 of file TIL_Tile.h.

void TIL_Tile::getImageData ( const unsigned char *&  data) const
void TIL_Tile::getImageData ( const unsigned short *&  data) const
void TIL_Tile::getImageData ( const unsigned int *&  data) const
void TIL_Tile::getImageData ( const float *&  data) const
void TIL_Tile::getImageData ( const fpreal16 *&  data) const
const void* TIL_Tile::getImageData ( ) const
inline

Definition at line 153 of file TIL_Tile.h.

void TIL_Tile::getImageData ( unsigned char *&  data)
void TIL_Tile::getImageData ( unsigned short *&  data)
void TIL_Tile::getImageData ( unsigned int *&  data)
void TIL_Tile::getImageData ( float *&  data)
void TIL_Tile::getImageData ( fpreal16 *&  data)
void* TIL_Tile::getImageData ( )
inline

Definition at line 160 of file TIL_Tile.h.

const UT_TokenString* TIL_Tile::getImageIdentifier ( ) const
inline

Definition at line 107 of file TIL_Tile.h.

int TIL_Tile::getImageNum ( ) const
inline

Definition at line 74 of file TIL_Tile.h.

int64 TIL_Tile::getMemoryUsage ( bool  inclusive) const
int TIL_Tile::getMemSize ( ) const
inline

Definition at line 138 of file TIL_Tile.h.

const char* TIL_Tile::getNodePath ( ) const
inline

Definition at line 102 of file TIL_Tile.h.

int TIL_Tile::getNumPixels ( ) const
void TIL_Tile::getOffset ( int x,
int y 
) const
inline

Definition at line 85 of file TIL_Tile.h.

void* TIL_Tile::getParent ( ) const
inline

Definition at line 97 of file TIL_Tile.h.

int TIL_Tile::getPriority ( ) const
inline

Definition at line 168 of file TIL_Tile.h.

void TIL_Tile::getSize ( int x,
int y 
) const
inline

Definition at line 90 of file TIL_Tile.h.

TIL_Storage TIL_Tile::getStorage ( ) const
inline

Definition at line 70 of file TIL_Tile.h.

static int TIL_Tile::getTile16Mem ( )
static
static int TIL_Tile::getTile32Mem ( )
static
static int TIL_Tile::getTile8Mem ( )
static
static int TIL_Tile::getTileSizeX ( )
static
static int TIL_Tile::getTileSizeY ( )
static
int TIL_Tile::getVectorIndex ( ) const
inline

Definition at line 62 of file TIL_Tile.h.

const char* TIL_Tile::getVectorName ( ) const
inline

Definition at line 59 of file TIL_Tile.h.

void TIL_Tile::incrementCheckpointCount ( )
bool TIL_Tile::isBorrowedImage ( ) const
inline

Definition at line 175 of file TIL_Tile.h.

int TIL_Tile::isCacheLocked ( ) const
bool TIL_Tile::isCheckpoint ( ) const
inline

Definition at line 114 of file TIL_Tile.h.

bool TIL_Tile::isConstantTile ( ) const
inline

Definition at line 120 of file TIL_Tile.h.

bool TIL_Tile::isCooked ( ) const
inline

Definition at line 112 of file TIL_Tile.h.

bool TIL_Tile::isReadLocked ( ) const
bool TIL_Tile::isWriteLocked ( ) const
void TIL_Tile::lineDouble ( bool  odd)
int TIL_Tile::lock ( int  access,
int  block = 1 
)
void TIL_Tile::lockWriteToRead ( int  score)
int TIL_Tile::matches ( const UT_TokenString image_id,
int  tilex,
int  tiley 
) const
void TIL_Tile::print ( std::ostream &  os) const
void TIL_Tile::reset ( )
void TIL_Tile::setBlackWhitePoints ( int  black,
int  white 
)
void TIL_Tile::setBorrowedImage ( bool  b)
inline

Definition at line 176 of file TIL_Tile.h.

void TIL_Tile::setCompName ( const char *  name)
void TIL_Tile::setConstantTile ( bool  constant)
void TIL_Tile::setCooked ( bool  done = true)
inline

Definition at line 111 of file TIL_Tile.h.

static void TIL_Tile::setCopPrintCallback ( void(*)(void *, std::ostream &)  callback)
static
void TIL_Tile::setFormat ( TIL_DataFormat  f)
void TIL_Tile::setImageData ( til_AlignedBlock data)
inline

Definition at line 145 of file TIL_Tile.h.

void TIL_Tile::setImageIdentifier ( UT_TokenString token)
inline

Definition at line 105 of file TIL_Tile.h.

void TIL_Tile::setImageNum ( int  n)
inline

Definition at line 73 of file TIL_Tile.h.

static void TIL_Tile::setNewTileSize ( int  xsize,
int  ysize 
)
static
void TIL_Tile::setNodePath ( const char *  path)
void TIL_Tile::setOffset ( int  x,
int  y 
)
inline

Definition at line 84 of file TIL_Tile.h.

void TIL_Tile::setParent ( void parent)
inline

Definition at line 96 of file TIL_Tile.h.

void TIL_Tile::setPriority ( unsigned int  p)
inline

Definition at line 167 of file TIL_Tile.h.

void TIL_Tile::setProxyHold ( bool  on)
inline

Definition at line 135 of file TIL_Tile.h.

void TIL_Tile::setSize ( int  x,
int  y 
)
void TIL_Tile::setStorage ( TIL_Storage  storage)
inline

Definition at line 69 of file TIL_Tile.h.

static void TIL_Tile::setTileCachePtr ( TIL_TileCache tc)
static
void TIL_Tile::setVectorName ( const char *  name,
int  vector = 0 
)
void TIL_Tile::unlock ( int  access)
int TIL_Tile::usesBlackWhitePoints ( ) const

Friends And Related Function Documentation

friend class TIL_TileCache
friend

Definition at line 253 of file TIL_Tile.h.

Member Data Documentation

unsigned short TIL_Tile::myConstantVal16

Definition at line 239 of file TIL_Tile.h.

unsigned int TIL_Tile::myConstantVal32

Definition at line 240 of file TIL_Tile.h.

unsigned char TIL_Tile::myConstantVal8

Definition at line 238 of file TIL_Tile.h.

float TIL_Tile::myConstantValFP

Definition at line 241 of file TIL_Tile.h.


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