rwlogo
Rogue Wave Views 5.5.1

Rogue Wave Views
Foundation Package API Reference Guide

Product Documentation:

Rogue Wave Views
Documentation Home

IlvLinearTransfer Class Reference

Linear transfer function. More...

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

Inheritance diagram for IlvLinearTransfer:
IlvTransferFunction

List of all members.

Public Member Functions

 IlvLinearTransfer (IlFloat slope=1.0, IlFloat intercept=0.0)
 Constructor.
IlFloat getIntercept () const
 Returns the intercept value.
IlFloat getSlope () const
 Returns the slope value.
void setIntercept (IlFloat intercept)
 Sets the intercept value.
void setSlope (IlFloat slope)
 Sets the slope value.
void setValues (IlFloat slope, IlFloat intercept)
 Sets the values for the slope and intercept.

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:
slope The slope value.
intercept The 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:
intercept The new intercept value.
void IlvLinearTransfer::setSlope ( IlFloat  slope  ) 

Sets the slope value.

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

Sets the values for the slope and intercept.

Parameters:
slope The new slope value.
intercept The new intercept value.

© 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.