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

#include <UT_LUT.h>

Public Member Functions

 UT_LUT (fpreal val, int size, float(*eval)(float val, float t)=0)
 
 UT_LUT (int size, float(*eval)(float t)=0)
 
 ~UT_LUT ()
 
void buildConformalWarp (const UT_LUT &src)
 
void buildLUT (float(*eval)(float val, float t))
 
void buildLUT (float(*eval)(float t))
 
void setValue (fpreal v)
 
fpreal getValue () const
 
int getSize () const
 
fpreal getFSize () const
 
fpreal operator() (int i) const
 
fpreal fastValue (fpreal t) const
 
fpreal safeValue (fpreal t) const
 
fpreal lerpFast (fpreal t) const
 
fpreal lerpSafe (fpreal t) const
 
int getLUTSize () const
 
fprealgetRawLUT ()
 
void bumpRefCount ()
 
int downRefCount ()
 

Detailed Description

Definition at line 29 of file UT_LUT.h.

Constructor & Destructor Documentation

UT_LUT::UT_LUT ( fpreal  val,
int  size,
float(*)(float val, float t eval = 0 
)
UT_LUT::UT_LUT ( int  size,
float(*)(float t eval = 0 
)
explicit
UT_LUT::~UT_LUT ( )

Member Function Documentation

void UT_LUT::buildConformalWarp ( const UT_LUT src)

Given a LUT defining a function which is already parametrized from 0 to 1, we then compute the "inverse" warp LUT which performs an equal-area warp from the unit parametrization to the map.

void UT_LUT::buildLUT ( float(*)(float val, float t eval)
void UT_LUT::buildLUT ( float(*)(float t eval)
void UT_LUT::bumpRefCount ( )
inline

Definition at line 106 of file UT_LUT.h.

int UT_LUT::downRefCount ( )
inline

Definition at line 107 of file UT_LUT.h.

fpreal UT_LUT::fastValue ( fpreal  t) const
inline

Definition at line 62 of file UT_LUT.h.

fpreal UT_LUT::getFSize ( ) const
inline

Definition at line 49 of file UT_LUT.h.

int UT_LUT::getLUTSize ( ) const
inline

Definition at line 103 of file UT_LUT.h.

fpreal* UT_LUT::getRawLUT ( )
inline

Definition at line 104 of file UT_LUT.h.

int UT_LUT::getSize ( ) const
inline

Definition at line 48 of file UT_LUT.h.

fpreal UT_LUT::getValue ( ) const
inline

Definition at line 47 of file UT_LUT.h.

fpreal UT_LUT::lerpFast ( fpreal  t) const
inline

Definition at line 79 of file UT_LUT.h.

fpreal UT_LUT::lerpSafe ( fpreal  t) const
inline

Definition at line 87 of file UT_LUT.h.

fpreal UT_LUT::operator() ( int  i) const
inline

Definition at line 50 of file UT_LUT.h.

fpreal UT_LUT::safeValue ( fpreal  t) const
inline

Definition at line 67 of file UT_LUT.h.

void UT_LUT::setValue ( fpreal  v)
inline

Definition at line 46 of file UT_LUT.h.


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