public final class SourceSegment extends AbstractSegment
Segment
implementation representing segments as read from
the source data.AbstractSegment
AbstractSegment.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, start
FULL_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, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
static 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()
AbstractSegment
null
if this object is the root of the tree.parent
in class AbstractSegment
null
public SourceNode start()
start
in interface Segment
start
in class AbstractSegment
public SourceNode end()
end
in interface Segment
end
in class AbstractSegment
public int wasGeneralised()
public SourceNode other(Node node)
NodePair
other
in interface NodePair
other
in class AbstractSegment
node
- the pair member that shouldn't be returnednode
public Collection<SourceSegment> closeParallels()
void setCloseSegments(Collection<SourceSegment> closeSegments)
Envelope envelope()
public void analyseLineParts(Analyser visitor)