Last updated

API / geotoolkit / data / DataConversion / DataConversion

Class: DataConversion

data.DataConversion.DataConversion

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
Methods

Contents

Constructors

new DataConversion()

new DataConversion()

Methods

direct

Abstract direct(v): number

Direct convert

Throws

when invoked to indicate the method should be overridden.

Parameters

Name Type Description
vnumbervalue to convert

Returns

number


getClassName

getClassName(): string

Returns

string


getProperties

getProperties(): Record<string, any>

Gets all the properties pertaining to this object

Returns

Record<string, any>

object containing properties


reverse

Abstract reverse(v): number

Reverse convert

Throws

when invoked to indicate the method should be overridden.

Parameters

Name Type Description
vnumbervalue to convert

Returns

number


setProperties

setProperties(properties): DataConversion

Sets all the properties pertaining to this object

Parameters

Name Type Description
propertiesRecord<string, any>An object containing the properties to set

Returns

DataConversion

this


getClassName

Static getClassName(): string

Returns

string