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

#include <IMG_FileTTMap.h>

+ Inheritance diagram for IMG_FileTTMap:

Public Member Functions

 IMG_FileTTMap ()
 
 ~IMG_FileTTMap () override
 
const char * className () const override
 
virtual bool textureEnabled () const
 Return true if texture evaluation of this format is enabled. More...
 
int getOGLRaster (void *data, int xres, int yres, IMG_ColorModel cm, IMG_DataType dt, int raster_number=0)
 
bool getMipInfo (int aov_channel, UT_Array< UT_Vector2i > &res, IMG_DataType &data_type, int &nchannels) const
 
bool getMipData (int aov_channel, int mip_level, const UT_DimRect &region, void *data) const
 Read pixels for a given MIP level. More...
 
void unfilteredSample (float *result, int tuple_size, float u, float v, const IMG_TextureFilter &info, int channel, int raster)
 
void sample (float *result, int tuple_size, float u, float v, const IMG_TextureFilter &info, int channel, int raster)
 
void sample (float *result, float &visible, int tuple_size, const float u[4], const float v[4], float quality, const IMG_TextureFilter &info, int channel, int raster)
 
void sample (float *result, int tuple_size, const float u[4], const float v[4], float quality, const IMG_TextureFilter &info, int channel, int raster)
 
void envLookup (float *result, int tuple_size, const UT_Vector3 &r, float angle, const IMG_TextureFilter &info, int channel)
 
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_TextureFilter &info, int channel)
 
fpreal getUPixelSize () const
 
fpreal getVPixelSize () const
 
int64 getMemoryUsage (bool inclusive) const override
 
virtual int getRasterCount () const
 
int getChannelTupleSize (int ch) const
 
virtual int getNumChannels () const
 
const UT_StringHolderocioColorSpace (int channel) const
 
const UT_StringHolderswrapMode () const
 
const UT_StringHoldertwrapMode () const
 
virtual int getDefaultChannelIndex () const
 
int findChannelIndex (const char *name) const
 
virtual int isReflMap () const
 

Protected Member Functions

void initialize (int mipcount, UT_Array< UT_UniquePtr< IMG_TTChannel >> &channels)
 
int closeFile () override
 
SYS_FORCE_INLINE exint numTTChannels () const
 
SYS_FORCE_INLINE IMG_TTChannelgetTTChannel (exint i)
 

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 77 of file IMG_FileTTMap.h.

Constructor & Destructor Documentation

IMG_FileTTMap::IMG_FileTTMap ( )
IMG_FileTTMap::~IMG_FileTTMap ( )
override

Member Function Documentation

const char* IMG_FileTTMap::className ( ) const
inlineoverride

Definition at line 85 of file IMG_FileTTMap.h.

int IMG_FileTTMap::closeFile ( )
overrideprotected
void IMG_FileTTMap::envLookup ( float result,
int  tuple_size,
const UT_Vector3 r,
float  angle,
const IMG_TextureFilter info,
int  channel 
)
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_TextureFilter info,
int  channel 
)
int IMG_FileTTMap::findChannelIndex ( const char *  name) const
int IMG_FileTTMap::getChannelTupleSize ( int  ch) const
virtual int IMG_FileTTMap::getDefaultChannelIndex ( ) const
inlinevirtual

Definition at line 180 of file IMG_FileTTMap.h.

int64 IMG_FileTTMap::getMemoryUsage ( bool  inclusive) const
override
bool IMG_FileTTMap::getMipData ( int  aov_channel,
int  mip_level,
const UT_DimRect region,
void data 
) const

Read pixels for a given MIP level.

bool IMG_FileTTMap::getMipInfo ( int  aov_channel,
UT_Array< UT_Vector2i > &  res,
IMG_DataType data_type,
int nchannels 
) const

Lookup information about the raster specified by the IMG_TextureFilter This returns the resolution for each MIP map as well as the data format and the number of image channels.

virtual int IMG_FileTTMap::getNumChannels ( ) const
inlinevirtual

Definition at line 172 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
inlinevirtual

Definition at line 170 of file IMG_FileTTMap.h.

SYS_FORCE_INLINE IMG_TTChannel* IMG_FileTTMap::getTTChannel ( exint  i)
inlineprotected

Definition at line 197 of file IMG_FileTTMap.h.

fpreal IMG_FileTTMap::getUPixelSize ( ) const
inline

Definition at line 166 of file IMG_FileTTMap.h.

fpreal IMG_FileTTMap::getVPixelSize ( ) const
inline

Definition at line 167 of file IMG_FileTTMap.h.

void IMG_FileTTMap::initialize ( int  mipcount,
UT_Array< UT_UniquePtr< IMG_TTChannel >> &  channels 
)
protected
virtual int IMG_FileTTMap::isReflMap ( ) const
inlinevirtual

Definition at line 186 of file IMG_FileTTMap.h.

SYS_FORCE_INLINE exint IMG_FileTTMap::numTTChannels ( ) const
inlineprotected

Definition at line 195 of file IMG_FileTTMap.h.

const UT_StringHolder& IMG_FileTTMap::ocioColorSpace ( int  channel) const
void IMG_FileTTMap::sample ( float result,
int  tuple_size,
float  u,
float  v,
const IMG_TextureFilter info,
int  channel,
int  raster 
)
inline

Definition at line 116 of file IMG_FileTTMap.h.

void IMG_FileTTMap::sample ( float result,
float visible,
int  tuple_size,
const float  u[4],
const float  v[4],
float  quality,
const IMG_TextureFilter info,
int  channel,
int  raster 
)
void IMG_FileTTMap::sample ( float result,
int  tuple_size,
const float  u[4],
const float  v[4],
float  quality,
const IMG_TextureFilter info,
int  channel,
int  raster 
)
inline

Definition at line 142 of file IMG_FileTTMap.h.

const UT_StringHolder& IMG_FileTTMap::swrapMode ( ) const
inline

Definition at line 175 of file IMG_FileTTMap.h.

virtual bool IMG_FileTTMap::textureEnabled ( ) const
virtual

Return true if texture evaluation of this format is enabled.

const UT_StringHolder& IMG_FileTTMap::twrapMode ( ) const
inline

Definition at line 176 of file IMG_FileTTMap.h.

void IMG_FileTTMap::unfilteredSample ( float result,
int  tuple_size,
float  u,
float  v,
const IMG_TextureFilter info,
int  channel,
int  raster 
)

Member Data Documentation

int IMG_FileTTMap::myMipRead
protected

Definition at line 201 of file IMG_FileTTMap.h.


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