Public Interface of Characteristic Maps

In ESDL, characteristic maps can only be accessed using their public interface. The table summarizes the public methods available for characteristic maps.

Method

Returns

Usage

search(Xvalue, Yvalue)

void

Sets the sample point of the table to Xvalue and Yvalue or calculates interpolation factor for Xvalue and Yvalue.

interpolate()

<type of char. map>

Gets the value for the current sample points or interpolate it from the table.

getAt(Xvalue, Yvalue)

<type of char. map>

Sets the sample points to Xvalue and Yvalue and gets the corresponding value or calculates interpolation factor for Xvalue and Yvalue and interpolates the value.

getX(indexX)

<type of x axis>

Gets the X axis point at indexX.

setX(indexX, Xvalue)

void

Sets the X axis point at indexX to Xvalue.

getY(indexY)

<type of y axis>

Gets the Y axis point at indexY.

setY(indexY, Yvalue)

void

Sets the Y axis point at indexY to Yvalue.

Note

Methods getX(indexX), setX(indexX, Xvalue), getY(indexY), and setY(indexY, Yvalue) are not available for fixed characteristic maps.

getValue(indexX, indexY)

<type of char. map>

Gets the value at indexX and IndexY.

setValue(indexX, indexY, value)

void

Sets the value at indexX and IndexY to value.

getMaxSizeX()

udisc

Gets the max. size of the characteristic map.

GetCurrentSizeX()

udisc

Gets the current size of the characteristic map.

setCurrentSizeX(sizeX)

void

Sets the current size of the characteristic map to sizeX.

getMaxSizeY()

udisc

Gets the max. size of the characteristic map.

getCurrentSizeY()

udisc

Gets the current size of the characteristic map.

setCurrentSizeY(sizeY)

void

Sets the current size of the characteristic map to sizeY.

The type of Xvalue, Yvalue and value must be the same as the type of the characteristic map; indexX , indexY, sizeX and sizeY must be non-negative integers.

See also

Adaptive Characteristic Lines/Maps: Restrictions

Characteristic Maps (ESDL)

Linear Interpolation (2D)