|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectAbstractNetworkWaySegmentWorldObject
public abstract class AbstractNetworkWaySegmentWorldObject
Field Summary | |
---|---|
MapWaySegment |
line
|
Constructor Summary | |
---|---|
protected |
AbstractNetworkWaySegmentWorldObject(MapWaySegment line)
|
Method Summary | |
---|---|
AxisAlignedBoundingBoxXZ |
getAxisAlignedBoundingBoxXZ()
|
List<VectorXYZ> |
getCenterline()
returns a sequence of node running along the center of the line from start to end (each with offset). |
List<VectorXZ> |
getCenterlineXZ()
version of getCenterline() in the XZ plane |
VectorXZ |
getCutVectorAt(MapNode node)
|
VectorXZ |
getEndCutVector()
returns the cut vector for the end of the line. |
VectorXZ |
getEndOffset()
returns the current offset for the end of the line. |
VectorXZ |
getEndPosition()
returns the end position. |
protected VectorXZ |
getEndWithOffset()
|
List<VectorXYZ> |
getOutline(boolean right)
provides the left or right border (a line at an appropriate distance from the center line), taking into account cut vectors, offsets and elevation information. |
PolygonXYZ |
getOutlinePolygon()
returns a counterclockwise polygon defining the object's ground footprint. |
SimplePolygonXZ |
getOutlinePolygonXZ()
returns a counterclockwise polygon defining the object's ground footprint, projected onto the XZ plane. |
VectorXYZ |
getPointOnCut(boolean start,
double relativePosFromLeft)
returns a point on the start or end cut line. |
MapElement |
getPrimaryMapElement()
returns the "primary" MapElement for this WorldObject;
i.e. |
VectorXZ |
getStartCutVector()
returns the cut vector for the start of the line. |
VectorXZ |
getStartOffset()
returns the current offset for the end of the line. |
VectorXZ |
getStartPosition()
returns the start position. |
protected VectorXZ |
getStartWithOffset()
|
void |
setEndCutVector(VectorXZ cutVector)
Sets the cut vector for the end of the line. |
void |
setEndOffset(VectorXZ offsetVector)
Sets the offset for the end of the line. |
void |
setStartCutVector(VectorXZ cutVector)
Sets the cut vector for the start of the line. |
void |
setStartOffset(VectorXZ offsetVector)
Sets the offset for the start of the line. |
String |
toString()
|
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface NetworkWaySegmentWorldObject |
---|
getWidth |
Methods inherited from interface WorldObject |
---|
getClearingAbove, getClearingBelow, getGroundState |
Field Detail |
---|
public final MapWaySegment line
Constructor Detail |
---|
protected AbstractNetworkWaySegmentWorldObject(MapWaySegment line)
Method Detail |
---|
public MapElement getPrimaryMapElement()
WorldObject
MapElement
for this WorldObject;
i.e. the one it is most strongly associated with.
Can be null if there is no (clear) primary element for this feature.
getPrimaryMapElement
in interface WorldObject
public void setStartCutVector(VectorXZ cutVector)
NetworkWaySegmentWorldObject
NetworkCalculator
.
setStartCutVector
in interface NetworkWaySegmentWorldObject
public void setEndCutVector(VectorXZ cutVector)
NetworkWaySegmentWorldObject
NetworkCalculator
.
setEndCutVector
in interface NetworkWaySegmentWorldObject
public VectorXZ getStartCutVector()
NetworkWaySegmentWorldObject
NetworkWaySegmentWorldObject.setStartCutVector(VectorXZ)
.
getStartCutVector
in interface NetworkWaySegmentWorldObject
public VectorXZ getEndCutVector()
NetworkWaySegmentWorldObject
NetworkWaySegmentWorldObject.setStartCutVector(VectorXZ)
.
getEndCutVector
in interface NetworkWaySegmentWorldObject
public VectorXZ getCutVectorAt(MapNode node)
public void setStartOffset(VectorXZ offsetVector)
NetworkWaySegmentWorldObject
NetworkCalculator
.
setStartOffset
in interface NetworkWaySegmentWorldObject
public void setEndOffset(VectorXZ offsetVector)
NetworkWaySegmentWorldObject
NetworkCalculator
.
setEndOffset
in interface NetworkWaySegmentWorldObject
protected VectorXZ getStartWithOffset()
protected VectorXZ getEndWithOffset()
public List<VectorXYZ> getCenterline()
WaySegmentElevationProfile
for adding
elevation information.
public List<VectorXZ> getCenterlineXZ()
getCenterline()
in the XZ plane
public List<VectorXYZ> getOutline(boolean right)
WaySegmentElevationProfile.getPointsWithEle()
.
//TODO: compatible with future offset/clearing influences?
public PolygonXYZ getOutlinePolygon()
WorldObjectWithOutline
getOutlinePolygon
in interface WorldObjectWithOutline
public SimplePolygonXZ getOutlinePolygonXZ()
WorldObjectWithOutline
getOutlinePolygonXZ
in interface WorldObjectWithOutline
public VectorXYZ getPointOnCut(boolean start, double relativePosFromLeft)
start
- point is on the start cut if true, on the end cut if falserelativePosFromLeft
- 0 is the leftmost point, 1 the rightmost.
Values in between are for interpolation.public VectorXZ getStartOffset()
NetworkWaySegmentWorldObject
NetworkWaySegmentWorldObject.setEndOffset(VectorXZ)
call, returning (0,0).
getStartOffset
in interface NetworkWaySegmentWorldObject
public VectorXZ getEndOffset()
NetworkWaySegmentWorldObject
NetworkWaySegmentWorldObject.setEndOffset(VectorXZ)
call, returning (0,0).
getEndOffset
in interface NetworkWaySegmentWorldObject
public VectorXZ getStartPosition()
WaySegmentWorldObject
MapWaySegment
's start position;
as node features such as crossings require space, too.
getStartPosition
in interface WaySegmentWorldObject
public VectorXZ getEndPosition()
WaySegmentWorldObject
WaySegmentWorldObject.getStartPosition()
for details.
getEndPosition
in interface WaySegmentWorldObject
public AxisAlignedBoundingBoxXZ getAxisAlignedBoundingBoxXZ()
getAxisAlignedBoundingBoxXZ
in interface IntersectionTestObject
public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |