Last updated

API / geotoolkit / data / DataInterpolation / DataInterpolation

Class: DataInterpolation

data.DataInterpolation.DataInterpolation

The DataInterpolation interface defines a set of methods that allow you to synthetically generate points
between two depth values that define how the curve for the data will be drawn.
Interpolation objects are used to modify the default linear interpolation between two depth values defined in a
particular well log data source (LogData) before being sent to the rendering system.
Interpolation objects modify the flow of data values by adding generated points in between two depth values that are drawn.
Interpolation objects do not modify the source data. They only generate new values between two existing depth values.
Interpolation objects were designed to be extensible to meet the requirements of well log visualization.

Hierarchy

Table of contents

Constructors
Methods

Contents

Constructors

new DataInterpolation()

new DataInterpolation()

Inherited from

EventDispatcher.constructor

Methods

dispose

dispose(): void

Dispose.

Returns

void

Inherited from

EventDispatcher.dispose


getClassName

getClassName(): string

Returns

string

Overrides

EventDispatcher.getClassName


getProperties

getProperties(): Record<string, any>

Gets all the properties pertaining to this object

Returns

Record<string, any>

object containing properties


hasEventListener

hasEventListener(type, callback?): boolean

Check if a list of event listeners for this type contains this listener

Parameters

Name Type Description
typestringtype of event or property
Optional callbackFunctionto be called, if null, check if any callback is registered

Returns

boolean

Inherited from

EventDispatcher.hasEventListener


interpolate

Abstract interpolate(start, count, input, output): boolean

Interpolate array of samples

Throws

when invoked to indicate the method should be overridden.

Parameters

Name Type Description
startnumberThe start index
countnumberThe count of samples to interpolate
inputDataValueArrayThe input data
outputDataValueArrayThe output data

Returns

boolean

true if interpolation is successful


isDisposed

isDisposed(): boolean

Returns whether this object has been disposed

Returns

boolean

Inherited from

EventDispatcher.isDisposed


isSilent

isSilent(): boolean

Return true if the event dispatcher doesn't notify any events

Returns

boolean

Inherited from

EventDispatcher.isSilent


notify

notify<E>(event, source, args?): DataInterpolation

Notify listeners of the DataInterpolation

Type parameters

NameType
Eextends string

Parameters

Name Type Description
eventEtype of event
sourceDataInterpolationsource who called the event
Optional argsEventMap[E]event arguments

Returns

DataInterpolation

this

Overrides

EventDispatcher.notify


off

off(type?, callback?): DataInterpolation

Detach listener on event. Calling .off() with no arguments removes all attached listeners. Calling .off(type) with no callback removes all attached listeners for specific type.

Parameters

Name Type Description
Optional typestringtype of the event
Optional callbackEventListenerfunction to be called

Returns

DataInterpolation

this

Inherited from

EventDispatcher.off

off<E>(type, callback): DataInterpolation

Type parameters

NameType
Eextends string

Parameters

Name Type
typeE
callback(eventType: E, sender: DataInterpolation, args: EventMap[E]) => void

Returns

DataInterpolation

Inherited from

EventDispatcher.off


on

on(type, callback, options?): DataInterpolation

Attach listener on event that will be called whenever the specified event is delivered to the target

If the callback function is already in the list of event listeners for this target, the function is not added a second time.

If a particular anonymous function is in the list of event listeners registered for a certain target, and then later in the code, an identical anonymous function is given in an "on" call, the second function will also be added to the list of event listeners for that target.

Parameters

Name Type Description
typestringtype of event or property
callbackEventListenerto be called
Optional optionsOptionsoptions of subscription

Returns

DataInterpolation

this

Inherited from

EventDispatcher.on

on<E>(type, callback, options?): DataInterpolation

Type parameters

NameType
Eextends string

Parameters

Name Type
typeE
callback(eventType: E, sender: DataInterpolation, args: EventMap[E]) => void
Optional optionsOptions

Returns

DataInterpolation

Inherited from

EventDispatcher.on


setProperties

setProperties(properties): DataInterpolation

Sets all the properties pertaining to this object

Parameters

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

Returns

DataInterpolation

this


setSilent

setSilent(bool): DataInterpolation

Set silent mode

Parameters

Name Type Description
boolbooleanflag to enable silent mode

Returns

DataInterpolation

this

Inherited from

EventDispatcher.setSilent


getClassName

Static getClassName(): string

Returns

string

Overrides

EventDispatcher.getClassName