rwlogo
Rogue Wave Views 5.5.1

Rogue Wave Views
Foundation Package API Reference Guide

Product Documentation:

Rogue Wave Views
Documentation Home

IlvDiscreteTransfer Class Reference

Discrete transfer function. More...

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

Inheritance diagram for IlvDiscreteTransfer:
IlvTransferFunction

List of all members.

Public Member Functions

 IlvDiscreteTransfer (IlUInt length, const IlFloat *values)
 Constructor.
 IlvDiscreteTransfer ()
 Constructor.
 ~IlvDiscreteTransfer ()
 Destructor.
const IlFloatgetValues (IlUInt &count) const
 Returns the table used in the instance.
void setValues (IlUInt length, const IlFloat *values)

Detailed Description

Discrete transfer function.

Library: ilvbmpflt

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

See also:
IlvRGBBitmapData, IlvBitmapFilter, IlvComponentTransferFilter, IlvTransferFunction, IlvIdentityTransfer, IlvLinearTransfer, IlvTableTransfer, IlvGammaTransfer

Constructor & Destructor Documentation

IlvDiscreteTransfer::IlvDiscreteTransfer (  ) 

Constructor.

Initializes a new instance of the class IlvDiscreteTransfer.

IlvDiscreteTransfer::IlvDiscreteTransfer ( IlUInt  length,
const IlFloat values 
)

Constructor.

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

Parameters:
length The length of the table.
values An array of length floating point values.
IlvDiscreteTransfer::~IlvDiscreteTransfer (  ) 

Destructor.

The destructor releases all the memory used by the instance.


Member Function Documentation

const IlFloat* IlvDiscreteTransfer::getValues ( IlUInt count  )  const

Returns the table used in the instance.

Parameters:
count The number of values in the array.
Returns:
An array of count floating point values.
void IlvDiscreteTransfer::setValues ( IlUInt  length,
const IlFloat values 
)

Sets the table.

Parameters:
length The length of the table.
values An array of length floating point values.

© Copyright 2012, 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.