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

    Constructors
    Constructor
    Description
    CenterLine(org.djutils.draw.line.PolyLine2d centerLine, String fullId)
    Construct a new CenterLine.
  • Method Summary

    Modifier and Type
    Method
    Description
    final org.opentrafficsim.base.geometry.OtsBounds2d
    org.djutils.draw.line.PolyLine2d
    Retrieve the center line.
    final org.djutils.draw.point.OrientedPoint2d
    double

    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 lane
      fullId - String; lane id.
  • Method Details

    • getLocation

      public final org.djutils.draw.point.OrientedPoint2d getLocation()
      Specified by:
      getLocation in interface nl.tudelft.simulation.dsol.animation.Locatable
      Specified by:
      getLocation in interface org.opentrafficsim.base.geometry.OtsLocatable
    • getBounds

      public final org.opentrafficsim.base.geometry.OtsBounds2d getBounds()
      Specified by:
      getBounds in interface nl.tudelft.simulation.dsol.animation.Locatable
      Specified by:
      getBounds in interface org.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 interface nl.tudelft.simulation.dsol.animation.Locatable
    • toString

      public String toString()
      Overrides:
      toString in class Object