Rogue Wave Views
Foundation Package API Reference Guide
Product Documentation:

Rogue Wave Views
Documentation Home
List of all members | Public Member Functions
IlvLinearTransfer Class Reference

Linear transfer function. More...

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

Inheritance diagram for IlvLinearTransfer:
IlvTransferFunction IlvValueInterface

Public Member Functions

 IlvLinearTransfer (IlFloat slope=1.0, IlFloat intercept=0.0)
 Constructor. More...
 
IlFloat getIntercept () const
 Returns the intercept value. More...
 
IlFloat getSlope () const
 Returns the slope value. More...
 
void setIntercept (IlFloat intercept)
 Sets the intercept value. More...
 
void setSlope (IlFloat slope)
 Sets the slope value. More...
 
void setValues (IlFloat slope, IlFloat intercept)
 Sets the values for the slope and intercept. 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

Linear transfer function.

Library: ilvbmpflt

This transfer function defines a lookup table by a linear equation: C' = slope * C + intercept

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

Constructor & Destructor Documentation

IlvLinearTransfer::IlvLinearTransfer ( IlFloat  slope = 1.0,
IlFloat  intercept = 0.0 
)

Constructor.

Initializes a new instance of the class IlvLinearTransfer.

Parameters
slopeThe slope value.
interceptThe intercept value.

Member Function Documentation

IlFloat IlvLinearTransfer::getIntercept ( ) const

Returns the intercept value.

Returns
The intercept.
IlFloat IlvLinearTransfer::getSlope ( ) const

Returns the slope value.

Returns
The slope.
void IlvLinearTransfer::setIntercept ( IlFloat  intercept)

Sets the intercept value.

Parameters
interceptThe new intercept value.
void IlvLinearTransfer::setSlope ( IlFloat  slope)

Sets the slope value.

Parameters
slopeThe new slope value.
void IlvLinearTransfer::setValues ( IlFloat  slope,
IlFloat  intercept 
)

Sets the values for the slope and intercept.

Parameters
slopeThe new slope value.
interceptThe new intercept value.

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