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 ()
 
IMG_TextureFilteroperator= (const IMG_TextureFilter &rhs)
 
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...
 
bool setFilter (UT_FilterType ftype, float x, float y)
 
bool setXFilter (UT_FilterType ftype)
 
bool setYFilter (UT_FilterType ftype)
 
bool setFilterWidths (float x, float y)
 
bool setFilterBlurs (float x, float y)
 
bool setMipInterpolate (int onoff)
 
bool setWrap (UT_FilterWrap uwrap, UT_FilterWrap vwrap, const UT_Vector4 &border)
 
bool setDeepInterp (IMG_DeepInterp interp)
 
bool setSourceColorSpace (IMG_ColorSpace convert)
 
bool setZSkew (float zskew)
 
bool setZWidth (float z)
 
void swapBorder (UT_Vector4 &b, int ncomponents=4)
 
FilterMode filterMode () const
 
bool 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
 
bool 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 47 of file IMG_TextureFilter.h.

Member Enumeration Documentation

Enumerator
IMG_UTFILTER 
IMG_BILINEAR 
IMG_BIQUADRATIC 
IMG_BICUBIC 

Definition at line 50 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 112 of file IMG_TextureFilter.h.

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

Definition at line 91 of file IMG_TextureFilter.h.

const UT_Vector4& IMG_TextureFilter::getBorder ( ) const
inline

Definition at line 104 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 68 of file IMG_TextureFilter.h.

const char* IMG_TextureFilter::getChannelName ( ) const
inline

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

Definition at line 65 of file IMG_TextureFilter.h.

int IMG_TextureFilter::getMipInterpolate ( ) const
inline

Definition at line 96 of file IMG_TextureFilter.h.

float IMG_TextureFilter::getXBlur ( ) const
inline

Definition at line 99 of file IMG_TextureFilter.h.

const UT_Filter* IMG_TextureFilter::getXFilter ( ) const
inline

Definition at line 93 of file IMG_TextureFilter.h.

float IMG_TextureFilter::getXsupport ( ) const
inline

Definition at line 106 of file IMG_TextureFilter.h.

float IMG_TextureFilter::getXWidth ( ) const
inline

Definition at line 97 of file IMG_TextureFilter.h.

UT_FilterWrap IMG_TextureFilter::getXWrap ( ) const
inline

Definition at line 102 of file IMG_TextureFilter.h.

float IMG_TextureFilter::getYBlur ( ) const
inline

Definition at line 100 of file IMG_TextureFilter.h.

const UT_Filter* IMG_TextureFilter::getYFilter ( ) const
inline

Definition at line 94 of file IMG_TextureFilter.h.

float IMG_TextureFilter::getYsupport ( ) const
inline

Definition at line 107 of file IMG_TextureFilter.h.

float IMG_TextureFilter::getYWidth ( ) const
inline

Definition at line 98 of file IMG_TextureFilter.h.

UT_FilterWrap IMG_TextureFilter::getYWrap ( ) const
inline

Definition at line 103 of file IMG_TextureFilter.h.

IMG_TextureFilter& IMG_TextureFilter::operator= ( const IMG_TextureFilter rhs)
bool IMG_TextureFilter::setBeerLambert ( bool  b)
void IMG_TextureFilter::setChannelIndex ( int  i)
inline

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

Definition at line 73 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.

bool IMG_TextureFilter::setDeepInterp ( IMG_DeepInterp  interp)
bool IMG_TextureFilter::setFilter ( UT_FilterType  ftype,
float  x,
float  y 
)
bool IMG_TextureFilter::setFilterBlurs ( float  x,
float  y 
)
bool IMG_TextureFilter::setFilterMode ( FilterMode  m)
bool IMG_TextureFilter::setFilterWidths ( float  x,
float  y 
)
bool IMG_TextureFilter::setMipInterpolate ( int  onoff)
bool IMG_TextureFilter::setSourceColorSpace ( IMG_ColorSpace  convert)
bool IMG_TextureFilter::setWrap ( UT_FilterWrap  uwrap,
UT_FilterWrap  vwrap,
const UT_Vector4 border 
)
bool IMG_TextureFilter::setXFilter ( UT_FilterType  ftype)
bool IMG_TextureFilter::setYFilter ( UT_FilterType  ftype)
bool IMG_TextureFilter::setZSkew ( float  zskew)
bool IMG_TextureFilter::setZWidth ( float  z)
void IMG_TextureFilter::swapBorder ( UT_Vector4 b,
int  ncomponents = 4 
)
float IMG_TextureFilter::zskew ( ) const
inline

Definition at line 108 of file IMG_TextureFilter.h.

float IMG_TextureFilter::zwidth ( ) const
inline

Definition at line 109 of file IMG_TextureFilter.h.

Member Data Documentation

bool IMG_TextureFilter::myBeerLambert

Definition at line 131 of file IMG_TextureFilter.h.

UT_Vector4 IMG_TextureFilter::myBorder

Definition at line 121 of file IMG_TextureFilter.h.

int IMG_TextureFilter::myChannelIndex

Definition at line 126 of file IMG_TextureFilter.h.

UT_String IMG_TextureFilter::myChannelName

Definition at line 117 of file IMG_TextureFilter.h.

IMG_DeepInterp IMG_TextureFilter::myDeepInterp

Definition at line 123 of file IMG_TextureFilter.h.

FilterMode IMG_TextureFilter::myFilterMode

Definition at line 125 of file IMG_TextureFilter.h.

int IMG_TextureFilter::myInterp

Definition at line 122 of file IMG_TextureFilter.h.

bool IMG_TextureFilter::myOwnFilter

Definition at line 132 of file IMG_TextureFilter.h.

IMG_ColorSpace IMG_TextureFilter::mySourceColorSpace

Definition at line 124 of file IMG_TextureFilter.h.

float IMG_TextureFilter::myXBlur

Definition at line 127 of file IMG_TextureFilter.h.

UT_Filter* IMG_TextureFilter::myXFilter

Definition at line 118 of file IMG_TextureFilter.h.

float IMG_TextureFilter::myXWidth

Definition at line 119 of file IMG_TextureFilter.h.

UT_FilterWrap IMG_TextureFilter::myXWrap

Definition at line 120 of file IMG_TextureFilter.h.

float IMG_TextureFilter::myYBlur

Definition at line 127 of file IMG_TextureFilter.h.

UT_Filter * IMG_TextureFilter::myYFilter

Definition at line 118 of file IMG_TextureFilter.h.

float IMG_TextureFilter::myYWidth

Definition at line 119 of file IMG_TextureFilter.h.

UT_FilterWrap IMG_TextureFilter::myYWrap

Definition at line 120 of file IMG_TextureFilter.h.

UT_Vector3 IMG_TextureFilter::myZEqn

Definition at line 128 of file IMG_TextureFilter.h.

float IMG_TextureFilter::myZSkew

Definition at line 129 of file IMG_TextureFilter.h.

float IMG_TextureFilter::myZWidth

Definition at line 130 of file IMG_TextureFilter.h.


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