rwlogo

Rogue Wave Views
Foundation Package API Reference Guide

Product Documentation:

Rogue Wave Views
Documentation Home

 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
List of all members | Public Member Functions
IlvDiscreteTransfer Class Reference

Discrete transfer function. More...

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

Inheritance diagram for IlvDiscreteTransfer:
IlvTransferFunction

Public Member Functions

 IlvDiscreteTransfer ()
 Constructor. More...
 
 IlvDiscreteTransfer (IlUInt length, const IlFloat *values)
 Constructor. More...
 
 ~IlvDiscreteTransfer ()
 Destructor. More...
 
const IlFloat * getValues (IlUInt &count) const
 Returns the table used in the instance. 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...
 

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

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
lengthThe length of the table.
valuesAn 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
countThe 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
lengthThe length of the table.
valuesAn array of length floating point values.

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