Package org.opentrafficsim.draw.road
Class LaneAnimation.CenterLine
java.lang.Object
org.opentrafficsim.draw.road.LaneAnimation.CenterLine
- All Implemented Interfaces:
nl.tudelft.simulation.dsol.animation.Locatable
,org.opentrafficsim.base.geometry.OtsLocatable
- Enclosing class:
- LaneAnimation
public static class LaneAnimation.CenterLine
extends Object
implements org.opentrafficsim.base.geometry.OtsLocatable
Draw center line of a lane.
-
Constructor Summary
ConstructorDescriptionCenterLine
(org.djutils.draw.line.PolyLine2d centerLine, String fullId) Construct a new CenterLine. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface nl.tudelft.simulation.dsol.animation.Locatable
getDirZ
-
Constructor Details
-
CenterLine
CenterLine(org.djutils.draw.line.PolyLine2d centerLine, String fullId) Construct a new CenterLine.- Parameters:
centerLine
- OtsLine2d; the center line of a lanefullId
- String; lane id.
-
-
Method Details
-
getLocation
public final org.djutils.draw.point.OrientedPoint2d getLocation()- Specified by:
getLocation
in interfacenl.tudelft.simulation.dsol.animation.Locatable
- Specified by:
getLocation
in interfaceorg.opentrafficsim.base.geometry.OtsLocatable
-
getBounds
public final org.opentrafficsim.base.geometry.OtsBounds2d getBounds()- Specified by:
getBounds
in interfacenl.tudelft.simulation.dsol.animation.Locatable
- Specified by:
getBounds
in interfaceorg.opentrafficsim.base.geometry.OtsLocatable
-
getCenterLine
public org.djutils.draw.line.PolyLine2d getCenterLine()Retrieve the center line.- Returns:
- OtsLine2d; the center line
-
getZ
public double getZ()- Specified by:
getZ
in interfacenl.tudelft.simulation.dsol.animation.Locatable
-
toString
-