HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
UT_Filter Class Referenceabstract

#include <UT_Filter.h>

Public Member Functions

void access ()
 
virtual void fillWeights (float umin, float radius, float *weights, int size) const
 
virtual float getWeight (float l, float r) const =0
 
virtual float getArea (float l) const =0
 
UT_FilterType getType () const
 
float getSupport () const
 
virtual ~UT_Filter ()
 

Static Public Member Functions

static UT_FilterType lookupFilter (const char *name)
 
static const char * getFilterName (UT_FilterType type)
 
static const char * getFilterLabel (UT_FilterType type)
 
static UT_FiltergetFilter (UT_FilterType type)
 
static UT_FilterWrap lookupWrap (const char *keyword, UT_FilterWrap def)
 
static UT_FiltergetFilter (float(*evalfunc)(float, void *), int size, int support=2, void *data=0)
 
static void releaseFilter (UT_Filter *filter)
 

Protected Member Functions

 UT_Filter ()
 

Protected Attributes

int myRefCount
 
UT_FilterType myType
 
float mySupport
 

Detailed Description

Examples:
RAY/RAY_DemoVolumeSphere.C.

Definition at line 115 of file UT_Filter.h.

Constructor & Destructor Documentation

virtual UT_Filter::~UT_Filter ( )
virtual
UT_Filter::UT_Filter ( )
inlineprotected

Definition at line 167 of file UT_Filter.h.

Member Function Documentation

void UT_Filter::access ( )
inline

Definition at line 137 of file UT_Filter.h.

virtual void UT_Filter::fillWeights ( float  umin,
float  radius,
float *  weights,
int  size 
) const
virtual

Fill an array of weights. The center variable specifies the center of the filter (in resolution space - not 0-1).

For example, if you have a filter with a radius of 1.3 centered at pixel 8.4, you should set:

  • center = 8.4
  • radius = 1.3
  • size = floor(8.4+1.3) - floor(8.4-1.3) + 1 = 9-7+1 = 3
virtual float UT_Filter::getArea ( float  l) const
pure virtual
static UT_Filter* UT_Filter::getFilter ( UT_FilterType  type)
static
static UT_Filter* UT_Filter::getFilter ( float(*)(float, void *)  evalfunc,
int  size,
int  support = 2,
void data = 0 
)
static
static const char* UT_Filter::getFilterLabel ( UT_FilterType  type)
static
static const char* UT_Filter::getFilterName ( UT_FilterType  type)
static
float UT_Filter::getSupport ( ) const
inline

Definition at line 161 of file UT_Filter.h.

UT_FilterType UT_Filter::getType ( void  ) const
inline

Definition at line 158 of file UT_Filter.h.

virtual float UT_Filter::getWeight ( float  l,
float  r 
) const
pure virtual
static UT_FilterType UT_Filter::lookupFilter ( const char *  name)
static
static UT_FilterWrap UT_Filter::lookupWrap ( const char *  keyword,
UT_FilterWrap  def 
)
static
static void UT_Filter::releaseFilter ( UT_Filter filter)
static

Member Data Documentation

int UT_Filter::myRefCount
protected

Definition at line 169 of file UT_Filter.h.

float UT_Filter::mySupport
protected

Definition at line 171 of file UT_Filter.h.

UT_FilterType UT_Filter::myType
protected

Definition at line 170 of file UT_Filter.h.


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