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.PolyLine2dReturns the center line.org.djutils.draw.line.Polygon2dorg.djutils.draw.line.PolyLine2dgetLine()Returns line representation of this object in object coordinates.final org.djutils.draw.point.OrientedPoint2dorg.opentrafficsim.base.geometry.OtsShapegetShape()doublegetZ()toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.opentrafficsim.draw.ClickableLineLocatable
getBoundsMethods 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:
getLocationin interfacenl.tudelft.simulation.dsol.animation.Locatable- Specified by:
getLocationin interfaceorg.opentrafficsim.base.geometry.OtsLocatable
-
getShape
public org.opentrafficsim.base.geometry.OtsShape getShape()- Specified by:
getShapein interfaceorg.opentrafficsim.base.geometry.OtsLocatable
-
getContour
public org.djutils.draw.line.Polygon2d getContour()- Specified by:
getContourin 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:ClickableLineLocatableReturns line representation of this object in object coordinates.- Specified by:
getLinein interfaceClickableLineLocatable- Returns:
- line representation of this object in object coordinates.
-
getZ
public double getZ()- Specified by:
getZin interfacenl.tudelft.simulation.dsol.animation.Locatable
-
toString
-