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

Gamma transfer function. More...

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

Inheritance diagram for IlvGammaTransfer:
IlvTransferFunction IlvValueInterface

Public Member Functions

 IlvGammaTransfer (IlFloat amplitude=1.0, IlFloat exponent=1.0, IlFloat offset=0.0)
 Constructor. More...
 
IlFloat getAmplitude () const
 Returns the amplitude. More...
 
IlFloat getExponent () const
 Returns the exponent. More...
 
IlFloat getOffset () const
 Returns the offset. More...
 
void setAmplitude (IlFloat amplitude)
 Sets the amplitude. More...
 
void setExponent (IlFloat exponent)
 Sets the exponent. More...
 
void setOffset (IlFloat offset)
 Sets the offset. More...
 
void setValues (IlFloat amplitude, IlFloat exponent, IlFloat offset)
 Sets the values for amplitude, exponent, and offset. More...
 
- 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...
 
- 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 IlvValuequeryValue (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 IlvTransferFunctionCreate (const char *name)
 Returns a new instance of a registered transfer function. More...
 

Detailed Description

Gamma transfer function.

Library: ilvbmpflt

This transfer function defines a lookup table by an exponential function: C' = amplitude * pow(C, exponent) + offset

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

Constructor & Destructor Documentation

◆ IlvGammaTransfer()

IlvGammaTransfer::IlvGammaTransfer ( IlFloat  amplitude = 1.0,
IlFloat  exponent = 1.0,
IlFloat  offset = 0.0 
)

Constructor.

Initializes a new instance of the class IlvGammaTransfer.

Parameters
amplitudeThe amplitude value.
exponentThe exponent value.
offsetThe offset value.

Member Function Documentation

◆ getAmplitude()

IlFloat IlvGammaTransfer::getAmplitude ( ) const

Returns the amplitude.

Returns
The amplitude.

◆ getExponent()

IlFloat IlvGammaTransfer::getExponent ( ) const

Returns the exponent.

Returns
The exponent.

◆ getOffset()

IlFloat IlvGammaTransfer::getOffset ( ) const

Returns the offset.

Returns
The offset.

◆ setAmplitude()

void IlvGammaTransfer::setAmplitude ( IlFloat  amplitude)

Sets the amplitude.

Parameters
amplitudeThe new amplitude.

◆ setExponent()

void IlvGammaTransfer::setExponent ( IlFloat  exponent)

Sets the exponent.

Parameters
exponentThe new exponent.

◆ setOffset()

void IlvGammaTransfer::setOffset ( IlFloat  offset)

Sets the offset.

Parameters
offsetThe new offset.

◆ setValues()

void IlvGammaTransfer::setValues ( IlFloat  amplitude,
IlFloat  exponent,
IlFloat  offset 
)

Sets the values for amplitude, exponent, and offset.

Parameters
amplitudeThe new amplitude.
exponentThe new exponent.
offsetThe new offset.