rwlogo

Rogue Wave Views
Foundation Package API Reference Guide

Product Documentation:

Rogue Wave 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

Public Member Functions

 IlvTableTransfer ()
 Constructor. More...
 
 IlvTableTransfer (IlUInt length, const IlFloat *values)
 Constructor. More...
 
 ~IlvTableTransfer ()
 Destructor. More...
 
const IlFloatgetValues (IlUInt &count) const
 Returns the table. More...
 
void setValues (IlUInt length, const IlFloat *values)
 
- Public Member Functions inherited from IlvTransferFunction
 IlvTransferFunction ()
 Constructor. More...
 
const IlUChargetLookUpTable () const
 Returns the lookup table. More...
 
void setLookUpValue (IlUInt index, IlUChar value)
 Sets an entry in the lookup table. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from IlvTransferFunction
static IlvTransferFunctionCreate (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::IlvTableTransfer ( )

Constructor.

Initializes a new instance of the class IlvTableTransfer.

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 ( )

Destructor.

The destructor releases all the memory used by the instance.

Member Function Documentation

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.
void IlvTableTransfer::setValues ( IlUInt  length,
const IlFloat values 
)

Sets the table.

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

© Copyright 2014, Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave is a registered trademark of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.