public final class SourceSegment extends AbstractSegment
Segment implementation representing segments as read from
the source data.AbstractSegmentAbstractSegment.Fragment, AbstractSegment.FragmentIterator| Modifier and Type | Field and Description |
|---|---|
(package private) Envelope |
envelope |
(package private) static double |
INDEX_ENVELOPE_MARGIN |
Set<SourceSegment> |
leftRealParallels |
(package private) boolean |
notToBeGeneralised |
(package private) static double |
PARALLEL_ANGLE_MAXIMUM |
Set<SourceSegment> |
rightRealParallels |
(package private) int |
wasGeneralised |
Line |
way |
end, fragments, MIN_FRAGMENT_LENGTH, startFULL_CIRCLE, RIGHT_ANGLE, SEMI_CIRCLE| Constructor and Description |
|---|
SourceSegment(SourceNode start,
SourceNode end,
Line way) |
| Modifier and Type | Method and Description |
|---|---|
void |
analyseLineParts(Analyser visitor) |
Collection<SourceSegment> |
closeParallels() |
SourceNode |
end() |
(package private) Envelope |
envelope() |
SourceNode |
other(Node node)
The opposite node of the pair.
|
protected AbstractSegment |
parent()
The parent of this object in the composition tree.
|
(package private) void |
setCloseSegments(Collection<SourceSegment> closeSegments) |
SourceNode |
start() |
int |
wasGeneralised() |
addBestLeftMatch, addBestRightMatch, aligned, analyse, bearing, bearingDegrees, compareTo, distance, easting, findPerpendicularFoot, isAligned, iterator, midPoint, northing, relativeBearing, reverse, reversed, root, shouldIgnore, splitAt, splitCloseParallels, splitTargets, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorstatic final double PARALLEL_ANGLE_MAXIMUM
static final double INDEX_ENVELOPE_MARGIN
Envelope envelope
int wasGeneralised
boolean notToBeGeneralised
public Line way
public Set<SourceSegment> leftRealParallels
public Set<SourceSegment> rightRealParallels
public SourceSegment(SourceNode start, SourceNode end, Line way)
protected AbstractSegment parent()
AbstractSegmentnull if this object is the root of the tree.parent in class AbstractSegmentnullpublic SourceNode start()
start in interface Segmentstart in class AbstractSegmentpublic SourceNode end()
end in interface Segmentend in class AbstractSegmentpublic int wasGeneralised()
public SourceNode other(Node node)
NodePairother in interface NodePairother in class AbstractSegmentnode - the pair member that shouldn't be returnednodepublic Collection<SourceSegment> closeParallels()
void setCloseSegments(Collection<SourceSegment> closeSegments)
Envelope envelope()
public void analyseLineParts(Analyser visitor)