Last updated

API / geotoolkit / deviation / DeviatedTransformation / DeviatedTransformation

Class: DeviatedTransformation

deviation.DeviatedTransformation.DeviatedTransformation

Abstract class to represent nonaffine transformation from a linear 2D-space to a deviated space.

Table of contents

Constructors
Methods

Contents

Constructors

new DeviatedTransformation()

new DeviatedTransformation()

Methods

contains

Abstract contains(point): boolean

Checks if a canvas point is contained in the deviated area

Parameters

Name Type Description
pointPointpoint in canvas

Returns

boolean


digitize

Abstract digitize(point, yscale?): MappedPixel

Gets the list of 1x1 size rectangles in model space, covered by the 1x1 rectangle in device space with specified anchor, along with the relative weights of model space rectangle areas within the device space rectangle area

Parameters

Name Type Description
pointPoint
Optional yscalenumberyscale

Returns

MappedPixel


findBounds

Abstract findBounds(rect): Rect

Gets bounds in linear space corresponding to deviated rect

Parameters

Name Type Description
rectRectrectangular area in deviated space

Returns

Rect

bounds in linear space (if found); empty rectangle otherwise


getAffineTransformation

Abstract getAffineTransformation(): Transformation

Returns affine transformation

Returns

Transformation


getClassName

getClassName(): string

Returns

string


getLowerIndex

Protected Abstract getLowerIndex(value): number

Gets index of segment of deviation for the depth value It is the position of the first occurrence of value. If no such item is found, returns the position to insert at.

Parameters

Name Type Description
valuenumberdepth value

Returns

number

index


getScalesInfo

getScalesInfo(): ScaleStatistics

Gets scale statistics

Returns

ScaleStatistics


getStationsBounds

Abstract getStationsBounds(): Rect

Returns union of all station's bounds

Returns

Rect


inverseTransform

Abstract inverseTransform(point): Point

Transforms point from deviated to linear space

Parameters

Name Type Description
pointPointpoint to transform

Returns

Point

transformed point


maxScaleX

Protected Abstract maxScaleX(): number

Gets max x-scale

Returns

number


maxScaleY

Protected Abstract maxScaleY(): number

Gets max y-scale

Returns

number


minScaleX

Protected Abstract minScaleX(): number

Gets min x-scale

Returns

number


minScaleY

Protected Abstract minScaleY(): number

Gets min y-scale

Returns

number


scaleXAt

Abstract scaleXAt(point): number

Gets x-scale at the point

Parameters

Name Type Description
pointPointpoint to transform

Returns

number


scaleYAt

Abstract scaleYAt(point): number

Gets y-scale at the point

Parameters

Name Type Description
pointPointpoint to transform

Returns

number


transform

Abstract transform(point, transformation?): Point

Transforms point from linear to deviated space

Parameters

Name Type Description
pointPointpoint to transform
Optional transformationTransformationaffine transformation

Returns

Point

transformed point


transformLine

Abstract transformLine(start, end, destination, transformation?): void

Transforms line from linear to deviated space

Parameters

Name Type Description
startPointstart point
endPointend point
destinationPoint[]destination polyline's array
Optional transformationTransformationaffine transformation

Returns

void


transformLines

Abstract transformLines(points, destination, transformation, isClosed?): void

Transforms polyline (or polygon) from linear to deviated space

Parameters

Name Type Description
pointsPoint[]source polyline's (or polygon's) points
destinationPoint[]destination polyline's (or polygon's) array
transformationTransformationaffine transformation
Optional isClosedbooleanisclosed flag

Returns

void


update

Abstract update(transformation): boolean

Updates itself

Parameters

Name Type Description
transformationTransformationcontext transformation

Returns

boolean


getClassName

Static getClassName(): string

Returns

string