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

public static class LaneAnimation.CenterLine extends Object implements ClickableLineLocatable
Draw center line of a lane.
  • Field Summary

    Fields inherited from interface org.opentrafficsim.draw.ClickableLocatable

    EXPANSE
  • 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
    org.djutils.draw.line.PolyLine2d
    Returns the center line.
    org.djutils.draw.line.Polygon2d
     
    org.djutils.draw.line.PolyLine2d
    Returns line representation of this object in object coordinates.
    final org.djutils.draw.point.OrientedPoint2d
     
    org.opentrafficsim.base.geometry.OtsShape
     
    double
     
     

    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 lane
      fullId - 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
    • getShape

      public org.opentrafficsim.base.geometry.OtsShape getShape()
      Specified by:
      getShape in interface org.opentrafficsim.base.geometry.OtsLocatable
    • getContour

      public org.djutils.draw.line.Polygon2d getContour()
      Specified by:
      getContour in interface org.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 interface ClickableLineLocatable
      Returns:
      line representation of this object in object coordinates.
    • getZ

      public double getZ()
      Specified by:
      getZ in interface nl.tudelft.simulation.dsol.animation.Locatable
    • toString

      public String toString()
      Overrides:
      toString in class Object