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

Modes for filtering. More...

#include <IMG_TextureFilter.h>

Public Types

enum  FilterMode { IMG_UTFILTER, IMG_BILINEAR, IMG_BIQUADRATIC, IMG_BICUBIC }
 

Public Member Functions

 IMG_TextureFilter ()
 
 IMG_TextureFilter (const IMG_TextureFilter &rhs)
 
 ~IMG_TextureFilter ()
 
const char * getChannelName () const
 Get the channel name (i.e. the plane name) More...
 
int getChannelIndex () const
 
void setChannelName (const char *channel)
 
void setChannelIndex (int i)
 Once the channel index has be resolved, stash the value here. More...
 
void setFilter (UT_FilterType ftype, float x, float y)
 
void setXFilter (UT_FilterType ftype)
 
void setYFilter (UT_FilterType ftype)
 
void setFilterWidths (float x, float y)
 
void setFilterBlurs (float x, float y)
 
void setMipInterpolate (int onoff)
 
void setWrap (UT_FilterWrap uwrap, UT_FilterWrap vwrap, const UT_Vector4 &border)
 
void setDeepInterp (IMG_DeepInterp interp)
 
void setSourceColorSpace (IMG_ColorSpace convert)
 
void setZSkew (float zskew)
 
void setZWidth (float z)
 
void swapBorder (UT_Vector4 &b, int ncomponents=4)
 
FilterMode filterMode () const
 
void setFilterMode (FilterMode m)
 
const UT_FiltergetXFilter () const
 
const UT_FiltergetYFilter () const
 
int getMipInterpolate () const
 
float getXWidth () const
 
float getYWidth () const
 
float getXBlur () const
 
float getYBlur () const
 
UT_FilterWrap getXWrap () const
 
UT_FilterWrap getYWrap () const
 
const UT_Vector4getBorder () const
 
float getXsupport () const
 
float getYsupport () const
 
float zskew () const
 
float zwidth () const
 
void setBeerLambert (bool b)
 
bool beerLambert () const
 
void dump () const
 

Public Attributes

UT_String myChannelName
 
UT_FiltermyXFilter
 
UT_FiltermyYFilter
 
float myXWidth
 
float myYWidth
 
UT_FilterWrap myXWrap
 
UT_FilterWrap myYWrap
 
UT_Vector4 myBorder
 
int myInterp
 
IMG_DeepInterp myDeepInterp
 
IMG_ColorSpace mySourceColorSpace
 
FilterMode myFilterMode
 
int myChannelIndex
 
float myXBlur
 
float myYBlur
 
UT_Vector3 myZEqn
 
float myZSkew
 
float myZWidth
 
bool myBeerLambert
 
bool myOwnFilter
 

Detailed Description

Modes for filtering.

Definition at line 38 of file IMG_TextureFilter.h.

Member Enumeration Documentation

Enumerator
IMG_UTFILTER 
IMG_BILINEAR 
IMG_BIQUADRATIC 
IMG_BICUBIC 

Definition at line 41 of file IMG_TextureFilter.h.

Constructor & Destructor Documentation

IMG_TextureFilter::IMG_TextureFilter ( )
IMG_TextureFilter::IMG_TextureFilter ( const IMG_TextureFilter rhs)
IMG_TextureFilter::~IMG_TextureFilter ( )

Member Function Documentation

bool IMG_TextureFilter::beerLambert ( ) const
inline

Definition at line 103 of file IMG_TextureFilter.h.

void IMG_TextureFilter::dump ( ) const
FilterMode IMG_TextureFilter::filterMode ( ) const
inline

Definition at line 82 of file IMG_TextureFilter.h.

const UT_Vector4& IMG_TextureFilter::getBorder ( ) const
inline

Definition at line 95 of file IMG_TextureFilter.h.

int IMG_TextureFilter::getChannelIndex ( ) const
inline

Get the channel index (i.e. the plane index). The index is considered uninitialized if its value is < 0.

Definition at line 58 of file IMG_TextureFilter.h.

const char* IMG_TextureFilter::getChannelName ( ) const
inline

Get the channel name (i.e. the plane name)

Definition at line 55 of file IMG_TextureFilter.h.

int IMG_TextureFilter::getMipInterpolate ( ) const
inline

Definition at line 87 of file IMG_TextureFilter.h.

float IMG_TextureFilter::getXBlur ( ) const
inline

Definition at line 90 of file IMG_TextureFilter.h.

const UT_Filter* IMG_TextureFilter::getXFilter ( ) const
inline

Definition at line 84 of file IMG_TextureFilter.h.

float IMG_TextureFilter::getXsupport ( ) const
inline

Definition at line 97 of file IMG_TextureFilter.h.

float IMG_TextureFilter::getXWidth ( ) const
inline

Definition at line 88 of file IMG_TextureFilter.h.

UT_FilterWrap IMG_TextureFilter::getXWrap ( ) const
inline

Definition at line 93 of file IMG_TextureFilter.h.

float IMG_TextureFilter::getYBlur ( ) const
inline

Definition at line 91 of file IMG_TextureFilter.h.

const UT_Filter* IMG_TextureFilter::getYFilter ( ) const
inline

Definition at line 85 of file IMG_TextureFilter.h.

float IMG_TextureFilter::getYsupport ( ) const
inline

Definition at line 98 of file IMG_TextureFilter.h.

float IMG_TextureFilter::getYWidth ( ) const
inline

Definition at line 89 of file IMG_TextureFilter.h.

UT_FilterWrap IMG_TextureFilter::getYWrap ( ) const
inline

Definition at line 94 of file IMG_TextureFilter.h.

void IMG_TextureFilter::setBeerLambert ( bool  b)
inline

Definition at line 102 of file IMG_TextureFilter.h.

void IMG_TextureFilter::setChannelIndex ( int  i)
inline

Once the channel index has be resolved, stash the value here.

Definition at line 63 of file IMG_TextureFilter.h.

void IMG_TextureFilter::setChannelName ( const char *  channel)

Set the channel name. If this is different than the previous value, the channel index will be reset to -1.

void IMG_TextureFilter::setDeepInterp ( IMG_DeepInterp  interp)
inline

Definition at line 74 of file IMG_TextureFilter.h.

void IMG_TextureFilter::setFilter ( UT_FilterType  ftype,
float  x,
float  y 
)
void IMG_TextureFilter::setFilterBlurs ( float  x,
float  y 
)
void IMG_TextureFilter::setFilterMode ( FilterMode  m)
inline

Definition at line 83 of file IMG_TextureFilter.h.

void IMG_TextureFilter::setFilterWidths ( float  x,
float  y 
)
void IMG_TextureFilter::setMipInterpolate ( int  onoff)
void IMG_TextureFilter::setSourceColorSpace ( IMG_ColorSpace  convert)
inline

Definition at line 76 of file IMG_TextureFilter.h.

void IMG_TextureFilter::setWrap ( UT_FilterWrap  uwrap,
UT_FilterWrap  vwrap,
const UT_Vector4 border 
)
void IMG_TextureFilter::setXFilter ( UT_FilterType  ftype)
void IMG_TextureFilter::setYFilter ( UT_FilterType  ftype)
void IMG_TextureFilter::setZSkew ( float  zskew)
inline

Definition at line 78 of file IMG_TextureFilter.h.

void IMG_TextureFilter::setZWidth ( float  z)
inline

Definition at line 79 of file IMG_TextureFilter.h.

void IMG_TextureFilter::swapBorder ( UT_Vector4 b,
int  ncomponents = 4 
)
float IMG_TextureFilter::zskew ( ) const
inline

Definition at line 99 of file IMG_TextureFilter.h.

float IMG_TextureFilter::zwidth ( ) const
inline

Definition at line 100 of file IMG_TextureFilter.h.

Member Data Documentation

bool IMG_TextureFilter::myBeerLambert

Definition at line 122 of file IMG_TextureFilter.h.

UT_Vector4 IMG_TextureFilter::myBorder

Definition at line 112 of file IMG_TextureFilter.h.

int IMG_TextureFilter::myChannelIndex

Definition at line 117 of file IMG_TextureFilter.h.

UT_String IMG_TextureFilter::myChannelName

Definition at line 108 of file IMG_TextureFilter.h.

IMG_DeepInterp IMG_TextureFilter::myDeepInterp

Definition at line 114 of file IMG_TextureFilter.h.

FilterMode IMG_TextureFilter::myFilterMode

Definition at line 116 of file IMG_TextureFilter.h.

int IMG_TextureFilter::myInterp

Definition at line 113 of file IMG_TextureFilter.h.

bool IMG_TextureFilter::myOwnFilter

Definition at line 123 of file IMG_TextureFilter.h.

IMG_ColorSpace IMG_TextureFilter::mySourceColorSpace

Definition at line 115 of file IMG_TextureFilter.h.

float IMG_TextureFilter::myXBlur

Definition at line 118 of file IMG_TextureFilter.h.

UT_Filter* IMG_TextureFilter::myXFilter

Definition at line 109 of file IMG_TextureFilter.h.

float IMG_TextureFilter::myXWidth

Definition at line 110 of file IMG_TextureFilter.h.

UT_FilterWrap IMG_TextureFilter::myXWrap

Definition at line 111 of file IMG_TextureFilter.h.

float IMG_TextureFilter::myYBlur

Definition at line 118 of file IMG_TextureFilter.h.

UT_Filter * IMG_TextureFilter::myYFilter

Definition at line 109 of file IMG_TextureFilter.h.

float IMG_TextureFilter::myYWidth

Definition at line 110 of file IMG_TextureFilter.h.

UT_FilterWrap IMG_TextureFilter::myYWrap

Definition at line 111 of file IMG_TextureFilter.h.

UT_Vector3 IMG_TextureFilter::myZEqn

Definition at line 119 of file IMG_TextureFilter.h.

float IMG_TextureFilter::myZSkew

Definition at line 120 of file IMG_TextureFilter.h.

float IMG_TextureFilter::myZWidth

Definition at line 121 of file IMG_TextureFilter.h.


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