Last updated

API / geotoolkit / data / LinearDataConversion / LinearDataConversion

Class: LinearDataConversion

data.LinearDataConversion.LinearDataConversion

The DataConversion interface class defines the base conversion operations that must be implemented by all conversion objects. Conversion objects are used to modify the values before being sent to the rendering system. Conversion objects simply modify the flow of data values from their current coordinate system to a new coordinate system. This destination coordinate system may be another linear coordinate system or a non-linear mapping like logarithmic. Conversion objects are only associated with the value component of data source. The position component of data source is never modified.

Hierarchy

Table of contents

Constructors
[new LinearDataConversion(options)](/solutions/geotoolkit/apis/classes/geotoolkit.data.lineardataconversion.lineardataconversion.md#new lineardataconversion(options))[new LinearDataConversion(srcLow, srcHigh, dstLow, dstHigh)](/solutions/geotoolkit/apis/classes/geotoolkit.data.lineardataconversion.lineardataconversion.md#new lineardataconversion(srclow, srchigh, dstlow, dsthigh))
Methods
Css Properties
Name Type Description
dsthighnumberTrack destination limit
dstlownumberTrack destination limit
srchighnumberHigher source limit
srclownumberLower source limit

Contents

Constructors

new LinearDataConversion(options)

new LinearDataConversion(options?)

Parameters

Name Type
Optional optionsOptions

Overrides

DataConversion.constructor


new LinearDataConversion(srcLow, srcHigh, dstLow, dstHigh)

new LinearDataConversion(srcLow?, srcHigh?, dstLow?, dstHigh?)

Parameters

Name Type
Optional srcLownumber
Optional srcHighnumber
Optional dstLownumber
Optional dstHighnumber

Overrides

DataConversion.constructor

Methods

direct

direct(v): number

Direct convert

Throws

when invoked to indicate the method should be overridden.

Parameters

Name Type Description
vnumbervalue to convert

Returns

number

Overrides

DataConversion.direct


getClassName

getClassName(): string

Returns

string

Inherited from

DataConversion.getClassName


getProperties

getProperties(): Required<Options>

Gets all the properties pertaining to this object

Returns

Required<Options>

properties object

Overrides

DataConversion.getProperties


reverse

reverse(v): number

Reverse convert

Throws

when invoked to indicate the method should be overridden.

Parameters

Name Type Description
vnumbervalue to convert

Returns

number

Overrides

DataConversion.reverse


setProperties

setProperties(properties?): LinearDataConversion

Sets all the properties pertaining to this object

Parameters

Name Type Description
Optional propertiesOptionsAn object containing the properties to set

Returns

LinearDataConversion

Overrides

DataConversion.setProperties


getClassName

Static getClassName(): string

Returns

string

Inherited from

DataConversion.getClassName