TopologyLocation class

A TopologyLocation is the labelling of a GraphComponent's topological relationship to a single Geometry.

If the parent component is an area edge, each side and the edge itself have a topological location. These locations are named

  • ON: on the edge
  • LEFT: left-hand side of the edge
  • RIGHT: right-hand side
If the parent component is a line edge or node, there is a single topological relationship attribute, ON.

The possible values of a topological location are {Location.NONE, Location.EXTERIOR, Location.BOUNDARY, Location.INTERIOR}

The labelling is stored in an array location[j] where where j has the values ON, LEFT, RIGHT @version 1.7

Constructors

TopologyLocation(int on, int left, int right)
Constructs a TopologyLocation specifying how points on, to the left of, and to the right of some GraphComponent relate to some Geometry. Possible values for the parameters are Location.NULL, Location.EXTERIOR, Location.BOUNDARY, and Location.INTERIOR. @see Location
TopologyLocation.fromList(List<int> location)
TopologyLocation.fromOn(int on)
TopologyLocation.fromTL(TopologyLocation gl)

Properties

hashCode int
The hash code for this object.
no setterinherited
location List<int>
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

allPositionsEqual(int loc) bool
flip() → void
get(int posIndex) int
getLocations() List<int?>
init(int size) → void
isAnyNull() bool
@return true if any locations are NULL
isArea() bool
isEqualOnSide(TopologyLocation le, int locIndex) bool
isLine() bool
isNull() bool
@return true if all locations are NULL
merge(TopologyLocation gl) → void
merge updates only the NULL attributes of this object with the attributes of another.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setAllLocations(int locValue) → void
setAllLocationsIfNull(int locValue) → void
setLocation(int locValue) → void
setLocations(int on, int left, int right) → void
setLocationWithIndex(int locIndex, int locValue) → void
toString() String
A string representation of this object.
override

Operators

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