HDK
|
#include <IMG_FileTTMap.h>
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 ®ion, 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_StringHolder & | ocioColorSpace (int channel) const |
const UT_StringHolder & | swrapMode () const |
const UT_StringHolder & | twrapMode () const |
virtual int | getDefaultChannelIndex () const |
int | findChannelIndex (const char *name) const |
virtual int | isReflMap () const |
const IMG_TTChannel * | getChannel (exint i) 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_TTChannel * | getTTChannel (exint i) |
Protected Attributes | |
int | myMipRead |
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 75 of file IMG_FileTTMap.h.
IMG_FileTTMap::IMG_FileTTMap | ( | ) |
|
override |
|
inlineoverride |
Definition at line 83 of file IMG_FileTTMap.h.
|
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 |
|
inline |
Definition at line 186 of file IMG_FileTTMap.h.
|
inlinevirtual |
Definition at line 178 of file IMG_FileTTMap.h.
|
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.
|
inlinevirtual |
Definition at line 170 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 |
||
) |
|
inlinevirtual |
Definition at line 168 of file IMG_FileTTMap.h.
|
inlineprotected |
Definition at line 198 of file IMG_FileTTMap.h.
|
inline |
Definition at line 164 of file IMG_FileTTMap.h.
|
inline |
Definition at line 165 of file IMG_FileTTMap.h.
|
protected |
|
inlinevirtual |
Definition at line 184 of file IMG_FileTTMap.h.
|
inlineprotected |
Definition at line 196 of file IMG_FileTTMap.h.
const UT_StringHolder& IMG_FileTTMap::ocioColorSpace | ( | int | channel | ) | const |
|
inline |
Definition at line 114 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 | ||
) |
|
inline |
Definition at line 140 of file IMG_FileTTMap.h.
|
inline |
Definition at line 173 of file IMG_FileTTMap.h.
|
virtual |
Return true if texture evaluation of this format is enabled.
|
inline |
Definition at line 174 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 | ||
) |
|
protected |
Definition at line 202 of file IMG_FileTTMap.h.