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
,org.opentrafficsim.base.geometry.SpatialObject
,ClickableLineLocatable
,ClickableLocatable
- Enclosing class:
- LaneAnimation
Draw center line of a lane.
-
Field Summary
Fields inherited from interface org.opentrafficsim.draw.ClickableLocatable
EXPANSE
-
Constructor Summary
ConstructorsConstructorDescriptionCenterLine
(org.djutils.draw.line.PolyLine2d centerLine, String fullId) Construct a new CenterLine. -
Method Summary
Modifier and TypeMethodDescriptionorg.djutils.draw.line.PolyLine2d
Returns the center line.org.djutils.draw.line.Polygon2d
org.djutils.draw.line.PolyLine2d
getLine()
Returns line representation of this object in object coordinates.final org.djutils.draw.point.OrientedPoint2d
org.opentrafficsim.base.geometry.OtsShape
getShape()
double
getZ()
toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.opentrafficsim.draw.ClickableLineLocatable
getBounds
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
- the center line of a lanefullId
- 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
-
getShape
public org.opentrafficsim.base.geometry.OtsShape getShape()- Specified by:
getShape
in interfaceorg.opentrafficsim.base.geometry.OtsLocatable
-
getContour
public org.djutils.draw.line.Polygon2d getContour()- Specified by:
getContour
in interfaceorg.opentrafficsim.base.geometry.SpatialObject
-
getCenterLine
public org.djutils.draw.line.PolyLine2d getCenterLine()Returns the center line.- Returns:
- the center line
-
getLine
public org.djutils.draw.line.PolyLine2d getLine()Description copied from interface:ClickableLineLocatable
Returns line representation of this object in object coordinates.- Specified by:
getLine
in interfaceClickableLineLocatable
- Returns:
- line representation of this object in object coordinates.
-
getZ
public double getZ()- Specified by:
getZ
in interfacenl.tudelft.simulation.dsol.animation.Locatable
-
toString
-