Edge class
@version 1.7
- Inheritance
-
- Object
- GraphComponent
- Edge
Constructors
-
Edge(List<
Coordinate> pts, Label? label) -
Edge.fromList(List<
Coordinate> pts)
Properties
- depth ↔ Depth
-
getter/setter pair
- depthDelta ↔ int
-
getter/setter pair
- eiList ↔ EdgeIntersectionList
-
getter/setter pair
- env ↔ Envelope?
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- label ↔ Label?
-
getter/setter pairinherited
- mce ↔ MonotoneChainEdge?
-
getter/setter pair
- name ↔ String?
-
getter/setter pair
-
pts
↔ List<
Coordinate> -
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addIntersection(
LineIntersector li, int segmentIndex, int geomIndex, int intIndex) → void - Add an EdgeIntersection for intersection intIndex. An intersection that falls exactly on a vertex of the edge is normalized to use the higher of the two possible segmentIndexes
-
addIntersections(
LineIntersector li, int segmentIndex, int geomIndex) → void - Adds EdgeIntersections for one or both intersections found for a segment of an edge to the edge intersection list.
-
computeIM(
IntersectionMatrix im) → void -
Update the IM with the contribution for this component.
A component only contributes if it has a labelling for both parent geometries
override
-
equals(
Object o) → bool - equals is defined to be:
-
getCollapsedEdge(
) → Edge -
getCoordinate(
) → Coordinate? -
@return a coordinate in this component (or null, if there are none)
override
-
getCoordinates(
) → List< Coordinate> -
getCoordinateWithIndex(
int i) → Coordinate -
getDepth(
) → Depth -
getDepthDelta(
) → int - The depthDelta is the change in depth as an edge is crossed from R to L @return the change in depth as the edge is crossed from R to L
-
getEdgeIntersectionList(
) → EdgeIntersectionList -
getEnvelope(
) → Envelope -
getLabel(
) → Label? -
inherited
-
getMaximumSegmentIndex(
) → int -
getMonotoneChainEdge(
) → MonotoneChainEdge -
getNumPoints(
) → int -
isClosed(
) → bool -
isCollapsed(
) → bool - An Edge is collapsed if it is an Area edge and it consists of two segments which are equal and opposite (eg a zero-width V).
-
isCovered(
) → bool -
inherited
-
isCoveredSet(
) → bool -
inherited
-
isInResult(
) → bool -
inherited
-
isIsolated(
) → bool -
An isolated component is one that does not intersect or touch any other
component. This is the case if the label has valid locations for
only a single Geometry.
override
-
isPointwiseEqual(
Edge e) → bool - @return true if the coordinate sequences of the Edges are identical
-
isVisited(
) → bool -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setCovered(
bool isCovered) → void -
inherited
-
setDepthDelta(
int depthDelta) → void -
setInResult(
bool isInResult) → void -
inherited
-
setIsolated(
bool isIsolated) → void -
setLabel(
Label label) → void -
inherited
-
setName(
String name) → void -
setVisited(
bool isVisited) → void -
inherited
-
toString(
) → String -
A string representation of this object.
override
-
updateIM(
IntersectionMatrix im) → void -
Update the IM with the contribution for this component.
A component only contributes if it has a labelling for both parent geometries
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
updateIMStatic(
Label label, IntersectionMatrix im) → void - Updates an IM from the label for an edge. Handles edges from both L and A geometries.