IMG_FileTTMap Class Reference

#include <IMG_FileTTMap.h>

Inheritance diagram for IMG_FileTTMap:

IMG_File

List of all members.

Public Member Functions

 IMG_FileTTMap ()
virtual ~IMG_FileTTMap ()
virtual const char * className () const
int getOGLRaster (void *data, int xres, int yres, IMG_ColorModel cm, IMG_DataType dt, int raster_number=0)
void sample (float *result, int tuple_size, float u, float v, const IMG_TTFilterInfo &info, int channel, int raster, int validate)
void bilerp (float *result, int tuple_size, float u, float v, const IMG_TTFilterInfo &info, int channel, int raster, int validate)
void sample (float *result, int tuple_size, float u[4], float v[4], int nsamples, float quality, const IMG_TTFilterInfo &info, const UT_Vector3 &zeqn, int channel, int raster, int validate)
void sample (float *result, int tuple_size, float u[4], float v[4], int nsamples, float quality, const IMG_TTFilterInfo &info, int channel, int raster, int validate)
void envLookup (float *result, int tuple_size, const UT_Vector3 &r, int channel, int validate)
void envLookup (float *result, int tuple_size, const UT_Vector3 &r00, const UT_Vector3 &r01, const UT_Vector3 &r11, const UT_Vector3 &r10, const IMG_TTFilterInfo &info, int channel, int validate)
fpreal getUPixelSize () const
fpreal getVPixelSize () const
virtual UT_OptionsgetTextureOptions ()
virtual int getRasterCount () const
int getChannelTupleSize (int ch) const
virtual int getNumChannels () const
virtual int findChannelIndex (const char *name, int raster_index) const
virtual int isReflMap () const
virtual int isDSM () const
virtual void dsmResolution (int &xres, int &yres)
virtual int dsmGetChannels (UT_PtrArray< TBF_Channel * > &channels)
virtual img_DSMPixelHandle * dsmGetReadHandle ()
virtual bool dsmOpenRawPixel (img_DSMPixelHandle &h, int x, int y)
virtual void dsmDeleteReadHandle (img_DSMPixelHandle *h)
virtual int dsmDepthComplexity (const img_DSMPixelHandle &h)
virtual bool dsmPixelData (const img_DSMPixelHandle &h, int channel, fpreal *data, int data_size)

Protected Member Functions

void initialize (int xres, int yres, const fpreal *cscale, const int *csize, int mipcount, IMG_TTChannel **channels)
virtual int closeFile ()

Protected Attributes

int myMipRead


Detailed Description

A IMG_TTMap represents a tiled texture format that can be sampled for texture mapping or for environment mapping. This class supports methods for sampling and filtering the texture data. This class is pure virtual and so derived classes must override the image file and format operations.

Definition at line 122 of file IMG_FileTTMap.h.


Constructor & Destructor Documentation

IMG_FileTTMap::IMG_FileTTMap (  ) 

virtual IMG_FileTTMap::~IMG_FileTTMap (  )  [virtual]


Member Function Documentation

void IMG_FileTTMap::bilerp ( float *  result,
int  tuple_size,
float  u,
float  v,
const IMG_TTFilterInfo info,
int  channel,
int  raster,
int  validate 
)

virtual const char* IMG_FileTTMap::className ( void   )  const [inline, virtual]

Reimplemented from IMG_File.

Definition at line 127 of file IMG_FileTTMap.h.

virtual int IMG_FileTTMap::closeFile (  )  [protected, virtual]

Implements IMG_File.

virtual void IMG_FileTTMap::dsmDeleteReadHandle ( img_DSMPixelHandle *  h  )  [virtual]

virtual int IMG_FileTTMap::dsmDepthComplexity ( const img_DSMPixelHandle &  h  )  [virtual]

virtual int IMG_FileTTMap::dsmGetChannels ( UT_PtrArray< TBF_Channel * > &  channels  )  [virtual]

virtual img_DSMPixelHandle* IMG_FileTTMap::dsmGetReadHandle (  )  [virtual]

virtual bool IMG_FileTTMap::dsmOpenRawPixel ( img_DSMPixelHandle &  h,
int  x,
int  y 
) [virtual]

virtual bool IMG_FileTTMap::dsmPixelData ( const img_DSMPixelHandle &  h,
int  channel,
fpreal data,
int  data_size 
) [virtual]

virtual void IMG_FileTTMap::dsmResolution ( int &  xres,
int &  yres 
) [virtual]

void IMG_FileTTMap::envLookup ( float *  result,
int  tuple_size,
const UT_Vector3 r00,
const UT_Vector3 r01,
const UT_Vector3 r11,
const UT_Vector3 r10,
const IMG_TTFilterInfo info,
int  channel,
int  validate 
)

void IMG_FileTTMap::envLookup ( float *  result,
int  tuple_size,
const UT_Vector3 r,
int  channel,
int  validate 
)

virtual int IMG_FileTTMap::findChannelIndex ( const char *  name,
int  raster_index 
) const [inline, virtual]

Definition at line 186 of file IMG_FileTTMap.h.

int IMG_FileTTMap::getChannelTupleSize ( int  ch  )  const

virtual int IMG_FileTTMap::getNumChannels (  )  const [inline, virtual]

Definition at line 185 of file IMG_FileTTMap.h.

int IMG_FileTTMap::getOGLRaster ( void *  data,
int  xres,
int  yres,
IMG_ColorModel  cm,
IMG_DataType  dt,
int  raster_number = 0 
)

virtual int IMG_FileTTMap::getRasterCount (  )  const [inline, virtual]

Definition at line 183 of file IMG_FileTTMap.h.

virtual UT_Options* IMG_FileTTMap::getTextureOptions (  )  [virtual]

fpreal IMG_FileTTMap::getUPixelSize (  )  const [inline]

Definition at line 176 of file IMG_FileTTMap.h.

fpreal IMG_FileTTMap::getVPixelSize (  )  const [inline]

Definition at line 177 of file IMG_FileTTMap.h.

void IMG_FileTTMap::initialize ( int  xres,
int  yres,
const fpreal cscale,
const int *  csize,
int  mipcount,
IMG_TTChannel **  channels 
) [protected]

virtual int IMG_FileTTMap::isDSM (  )  const [inline, virtual]

Definition at line 194 of file IMG_FileTTMap.h.

virtual int IMG_FileTTMap::isReflMap (  )  const [inline, virtual]

Definition at line 193 of file IMG_FileTTMap.h.

void IMG_FileTTMap::sample ( float *  result,
int  tuple_size,
float  u[4],
float  v[4],
int  nsamples,
float  quality,
const IMG_TTFilterInfo info,
int  channel,
int  raster,
int  validate 
) [inline]

Definition at line 156 of file IMG_FileTTMap.h.

void IMG_FileTTMap::sample ( float *  result,
int  tuple_size,
float  u[4],
float  v[4],
int  nsamples,
float  quality,
const IMG_TTFilterInfo info,
const UT_Vector3 zeqn,
int  channel,
int  raster,
int  validate 
)

void IMG_FileTTMap::sample ( float *  result,
int  tuple_size,
float  u,
float  v,
const IMG_TTFilterInfo info,
int  channel,
int  raster,
int  validate 
)


Member Data Documentation

int IMG_FileTTMap::myMipRead [protected]

Definition at line 218 of file IMG_FileTTMap.h.


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

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