Views
Foundation Package API Reference Guide
Product Documentation:
Views Documentation Home
List of all members | Public Member Functions
IlvTableTransfer Class Reference

Table transfer function. More...

#include <ilviews/bitmaps/filters/transfer.h>

Inheritance diagram for IlvTableTransfer:
IlvTransferFunction IlvValueInterface

Public Member Functions

 IlvTableTransfer ()
 Constructor. More...
 
 IlvTableTransfer (IlUInt length, const IlFloat *values)
 Constructor. More...
 
 ~IlvTableTransfer ()
 Destructor. More...
 
const IlFloat * getValues (IlUInt &count) const
 Returns the table. More...
 
void setValues (IlUInt length, const IlFloat *values)
 
- Public Member Functions inherited from IlvTransferFunction
 IlvTransferFunction ()
 Constructor. More...
 
const IlUChar * getLookUpTable () const
 Returns the lookup table. More...
 
void setLookUpValue (IlUInt index, IlUChar value)
 Sets an entry in the lookup table. More...
 
- Public Member Functions inherited from IlvValueInterface
virtual IlBoolean applyValue (const IlvValue &value)
 Apply an accessor. More...
 
virtual IlBoolean changeValue (const IlvValue &val)
 Changes the value of an accessor. More...
 
virtual IlBoolean changeValues (const IlvValue *values, IlUShort count=0)
 Changes several accessor values simultaneously. More...
 
virtual void getAccessors (const IlSymbol *const **names, const IlvValueTypeClass *const **types, IlUInt &count) const
 Retrieves the list of available accessors of an object. More...
 
virtual const char * getName () const
 Returns the name of the instance. The semantic and implementation of this method are defined by concrete subclasses. The default implementation returns 0. More...
 
virtual IlvValue & queryValue (IlvValue &val) const
 Retrieves an accessor value. More...
 
virtual void queryValues (IlvValue *values, IlUShort count) const
 Retrieves multiple accessor values simultaneously. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from IlvTransferFunction
static IlvTransferFunction * Create (const char *name)
 Returns a new instance of a registered transfer function. More...
 

Detailed Description

Table transfer function.

Library: ilvbmpflt

This transfer function defines a lookup table by a linear interpolation into a lookup table. Interpolation uses the following formula: k/N <= C <= (k + 1)/N => C' = vk + (C - k/N) * N * (vk+1 - vk)

See also
IlvRGBBitmapData, IlvBitmapFilter, IlvComponentTransferFilter, IlvTransferFunction, IlvIdentityTransfer, IlvLinearTransfer, IlvDiscreteTransfer, IlvGammaTransfer

Constructor & Destructor Documentation

◆ IlvTableTransfer() [1/2]

IlvTableTransfer::IlvTableTransfer ( )

Constructor.

Initializes a new instance of the class IlvTableTransfer.

◆ IlvTableTransfer() [2/2]

IlvTableTransfer::IlvTableTransfer ( IlUInt  length,
const IlFloat *  values 
)

Constructor.

Initializes a new instance of the class IlvTableTransfer using a table.

Parameters
lengthThe length of the table.
valuesAn array of length floating point values.

◆ ~IlvTableTransfer()

IlvTableTransfer::~IlvTableTransfer ( )

Destructor.

The destructor releases all the memory used by the instance.

Member Function Documentation

◆ getValues()

const IlFloat* IlvTableTransfer::getValues ( IlUInt &  count) const

Returns the table.

Parameters
countThe number of values in the array.
Returns
An array of count floating point values.

◆ setValues()

void IlvTableTransfer::setValues ( IlUInt  length,
const IlFloat *  values 
)

Sets the table.

Parameters
lengthThe length of the table.
valuesAn array of length floating point values.