API / geotoolkit / deviation / DeviatedTransformation / DeviatedTransformation
deviation.DeviatedTransformation.DeviatedTransformation
Abstract class to represent nonaffine transformation from a linear 2D-space to a deviated space.
Constructors
Methods
Methods
▸ Abstract contains(point): boolean
Checks if a canvas point is contained in the deviated area
| Name | Type | Description |
|---|---|---|
point | Point | point in canvas |
boolean
▸ 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
| Name | Type | Description |
|---|---|---|
point | Point | |
Optional yscale | number | yscale |
▸ Abstract findBounds(rect): Rect
Gets bounds in linear space corresponding to deviated rect
| Name | Type | Description |
|---|---|---|
rect | Rect | rectangular area in deviated space |
bounds in linear space (if found); empty rectangle otherwise
▸ Abstract getAffineTransformation(): Transformation
Returns affine transformation
▸ getClassName(): string
string
▸ 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.
| Name | Type | Description |
|---|---|---|
value | number | depth value |
number
index
▸ getScalesInfo(): ScaleStatistics
Gets scale statistics
▸ Abstract getStationsBounds(): Rect
Returns union of all station's bounds
▸ Abstract inverseTransform(point): Point
Transforms point from deviated to linear space
| Name | Type | Description |
|---|---|---|
point | Point | point to transform |
transformed point
▸ Protected Abstract maxScaleX(): number
Gets max x-scale
number
▸ Protected Abstract maxScaleY(): number
Gets max y-scale
number
▸ Protected Abstract minScaleX(): number
Gets min x-scale
number
▸ Protected Abstract minScaleY(): number
Gets min y-scale
number
▸ Abstract scaleXAt(point): number
Gets x-scale at the point
| Name | Type | Description |
|---|---|---|
point | Point | point to transform |
number
▸ Abstract scaleYAt(point): number
Gets y-scale at the point
| Name | Type | Description |
|---|---|---|
point | Point | point to transform |
number
▸ Abstract transform(point, transformation?): Point
Transforms point from linear to deviated space
| Name | Type | Description |
|---|---|---|
point | Point | point to transform |
Optional transformation | Transformation | affine transformation |
transformed point
▸ Abstract transformLine(start, end, destination, transformation?): void
Transforms line from linear to deviated space
| Name | Type | Description |
|---|---|---|
start | Point | start point |
end | Point | end point |
destination | Point[] | destination polyline's array |
Optional transformation | Transformation | affine transformation |
void
▸ Abstract transformLines(points, destination, transformation, isClosed?): void
Transforms polyline (or polygon) from linear to deviated space
| Name | Type | Description |
|---|---|---|
points | Point[] | source polyline's (or polygon's) points |
destination | Point[] | destination polyline's (or polygon's) array |
transformation | Transformation | affine transformation |
Optional isClosed | boolean | isclosed flag |
void
▸ Abstract update(transformation): boolean
Updates itself
| Name | Type | Description |
|---|---|---|
transformation | Transformation | context transformation |
boolean
▸ Static getClassName(): string
string