Last updated

API / geotoolkit / animation / processors / AbstractProcessor / AbstractProcessor

Class: AbstractProcessor<T>

processors.AbstractProcessor.AbstractProcessor

This class provide interface for processors which are used by AbstractEffect to animate complex structures like object, array or other.

Type parameters

NameType
Tany

Hierarchy

Table of contents

Constructors
Methods

Contents

Constructors

new AbstractProcessor&lt;T&amp;gt;()

new AbstractProcessor<T>()

Type parameters

NameType
Tany
Methods

clone

Abstract clone(v): T

Returns clone of passed object

Parameters

Name Type Description
vTobject to clone

Returns

T

clone


distance

distance(v1, v2): number

Calculate distance between two objects

Parameters

Name Type Description
v1Tfirst object
v2Tsecond object

Returns

number

distance


getClassName

getClassName(): string

Returns

string


process

Abstract process(from, to, out, func): T

Method iterates over passed object, extracts numeric properties and call function with them

Parameters

Name Type Description
fromTinitial state
toTtarget state
outTdestination state
funcProcessAnimationCallbackinterpolate function

Returns

T

res destination state


getClassName

Static getClassName(): string

Returns

string