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 (void)
 
int downRefCount (void)
 

Detailed Description

Definition at line 28 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 ( void  )
inline

Definition at line 102 of file UT_LUT.h.

int UT_LUT::downRefCount ( void  )
inline

Definition at line 103 of file UT_LUT.h.

fpreal UT_LUT::fastValue ( fpreal  t) const
inline

Definition at line 58 of file UT_LUT.h.

fpreal UT_LUT::getFSize ( ) const
inline

Definition at line 45 of file UT_LUT.h.

int UT_LUT::getLUTSize ( ) const
inline

Definition at line 99 of file UT_LUT.h.

fpreal* UT_LUT::getRawLUT ( )
inline

Definition at line 100 of file UT_LUT.h.

int UT_LUT::getSize ( ) const
inline

Definition at line 44 of file UT_LUT.h.

fpreal UT_LUT::getValue ( ) const
inline

Definition at line 43 of file UT_LUT.h.

fpreal UT_LUT::lerpFast ( fpreal  t) const
inline

Definition at line 75 of file UT_LUT.h.

fpreal UT_LUT::lerpSafe ( fpreal  t) const
inline

Definition at line 83 of file UT_LUT.h.

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

Definition at line 46 of file UT_LUT.h.

fpreal UT_LUT::safeValue ( fpreal  t) const
inline

Definition at line 63 of file UT_LUT.h.

void UT_LUT::setValue ( fpreal  v)
inline

Definition at line 42 of file UT_LUT.h.


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