Bounded class abstract

A positionable object with position data (directly or within child objects) and methods to resolve bounding boxes.

For example classes representing a series of positions, geometries or geospatial features (with a geometry) and feature collections are considered "bounded" in the context of this package.

Inheritance
Implementers

Constructors

Bounded({Box? bounds})
A bounded object with an optional bounds.
const

Properties

bounds Box?
An optional bounding box explicitely set (or otherwise directly available) for this object.
no setter
coordType Coords
A value of Coords representing the coordinate type of position data contained directly or within child objects.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
isEmptyByGeometry bool
Returns true if this object is considered empty (that is it do not contain any position data directly or on child objects, or a position data object contained is empty).
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

boundsAligned2D({Aligned align = Aligned.center, PositionScheme scheme = Position.scheme}) Position?
Returns an aligned 2D position relative to a bounding box accessed by getBounds.
calculateBounds({PositionScheme scheme = Position.scheme}) Box?
Calculate a bounding box for this object.
equals2D(covariant Positionable other, {double toleranceHoriz = defaultEpsilon}) bool
True if this and other equals by testing 2D coordinate values of all position data (that must be in same order in both objects) contained directly or by child objects.
inherited
equals3D(covariant Positionable other, {double toleranceHoriz = defaultEpsilon, double toleranceVert = defaultEpsilon}) bool
True if this and other equals by testing 3D coordinate values of all position data (that must be in same order in both objects) contained directly or by child objects.
inherited
equalsCoords(covariant Positionable other) bool
True if this and other contain exactly same coordinate values (or both are empty) in the same order and with the same coordinate type.
inherited
getBounds({PositionScheme scheme = Position.scheme}) Box?
Returns the current bounds if it's populated and conforms to scheme, or otherwise returns one calculated by calculateBounds.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
populated({bool onBounds = true, PositionScheme scheme = Position.scheme}) Bounded
Returns an object of the same subtype as this with certain data members populated.
project(Projection projection) Bounded
Returns an object of the same subtype as this with all position data projected using projection and non-positional properties left intact.
override
toString() String
A string representation of this object.
inherited
unpopulated({bool onBounds = true}) Bounded
Returns an object of the same subtype as this with certain data members unpopulated (or cleared).

Operators

operator ==(Object other) bool
The equality operator.
inherited