Constructor and Description |
---|
Edge() |
Modifier and Type | Method and Description |
---|---|
boolean |
advance()
Move the cursor forward one edge.
|
void |
forEachPoint(EdgeStore.PointConsumer pointConsumer)
Call a function for every point on this edge's geometry, including the beginning end end points.
|
void |
forEachSegment(EdgeStore.SegmentConsumer segmentConsumer)
Call a function on every segment in this edges's geometry.
|
com.vividsolutions.jts.geom.Envelope |
getEnvelope() |
boolean |
getFlag(EdgeStore.Flag flag) |
int |
getFromVertex() |
int |
getLengthMm() |
int |
getSpeed() |
int |
getToVertex() |
boolean |
isBackward() |
boolean |
isForward() |
int |
nSegments() |
void |
seek(int pos)
Jump to a specific edge number.
|
void |
setFlag(EdgeStore.Flag flag) |
void |
setGeometry(List<com.conveyal.osmlib.Node> nodes) |
void |
setLengthMm(int millimeters)
Set the length for the current edge pair (always the same in both directions).
|
void |
setSpeed(int speed) |
void |
setToVertex(int toVertexIndex)
NOTE that this will have an effect on both edges in the bidirectional edge pair.
|
String |
toString() |
StreetRouter.State |
traverse(StreetRouter.State s0) |
public boolean advance()
public void seek(int pos)
public int getFromVertex()
public int getToVertex()
public void setToVertex(int toVertexIndex)
public boolean getFlag(EdgeStore.Flag flag)
public void setFlag(EdgeStore.Flag flag)
public int getSpeed()
public void setSpeed(int speed)
public int getLengthMm()
public void setLengthMm(int millimeters)
public boolean isBackward()
public boolean isForward()
public StreetRouter.State traverse(StreetRouter.State s0)
public void setGeometry(List<com.conveyal.osmlib.Node> nodes)
public void forEachSegment(EdgeStore.SegmentConsumer segmentConsumer)
public void forEachPoint(EdgeStore.PointConsumer pointConsumer)
public com.vividsolutions.jts.geom.Envelope getEnvelope()
public int nSegments()
Copyright © 2015. All rights reserved.