Class AnimationStripeData
java.lang.Object
org.opentrafficsim.animation.data.AnimationCrossSectionElementData<Stripe>
org.opentrafficsim.animation.data.AnimationStripeData
- All Implemented Interfaces:
nl.tudelft.simulation.dsol.animation.Locatable
,org.opentrafficsim.base.geometry.OtsLocatable
,org.opentrafficsim.base.geometry.SpatialObject
,ClickableLineLocatable
,ClickableLocatable
,CrossSectionElementAnimation.CrossSectionElementData
,StripeAnimation.StripeData
public class AnimationStripeData
extends AnimationCrossSectionElementData<Stripe>
implements StripeAnimation.StripeData
Animation data of a Stripe.
Copyright (c) 2023-2024 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
- Author:
- Wouter Schakel
-
Field Summary
Fields inherited from interface org.opentrafficsim.draw.ClickableLocatable
EXPANSE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.opentrafficsim.base.geometry.DirectionalPolyLine
org.djunits.value.vdouble.scalar.Length
List<org.opentrafficsim.base.StripeElement>
org.djutils.draw.line.PolyLine2d
getLine()
org.djutils.draw.point.OrientedPoint2d
org.djutils.draw.line.PolyLine2d
org.djunits.value.vdouble.scalar.Length
getWidth
(org.djunits.value.vdouble.scalar.Length location) toString()
Methods inherited from class org.opentrafficsim.animation.data.AnimationCrossSectionElementData
getContour, getElement, getLinkId, getShape
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
Methods inherited from interface org.opentrafficsim.base.geometry.OtsLocatable
getShape
Methods inherited from interface org.opentrafficsim.base.geometry.SpatialObject
getContour
Methods inherited from interface org.opentrafficsim.draw.road.StripeAnimation.StripeData
getZ
-
Constructor Details
-
AnimationStripeData
Constructor.- Parameters:
stripe
- stripe
-
-
Method Details
-
getCenterLine
public org.opentrafficsim.base.geometry.DirectionalPolyLine getCenterLine()- Specified by:
getCenterLine
in interfaceCrossSectionElementAnimation.CrossSectionElementData
- Specified by:
getCenterLine
in interfaceStripeAnimation.StripeData
- Overrides:
getCenterLine
in classAnimationCrossSectionElementData<Stripe>
-
getReferenceLine
public org.djutils.draw.line.PolyLine2d getReferenceLine()- Specified by:
getReferenceLine
in interfaceStripeAnimation.StripeData
-
getLine
public org.djutils.draw.line.PolyLine2d getLine()- Specified by:
getLine
in interfaceClickableLineLocatable
-
getElements
- Specified by:
getElements
in interfaceStripeAnimation.StripeData
-
getDashOffset
public org.djunits.value.vdouble.scalar.Length getDashOffset()- Specified by:
getDashOffset
in interfaceStripeAnimation.StripeData
-
getLocation
public 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
- Specified by:
getLocation
in interfaceStripeAnimation.StripeData
- Overrides:
getLocation
in classAnimationCrossSectionElementData<Stripe>
-
getWidth
public org.djunits.value.vdouble.scalar.Length getWidth(org.djunits.value.vdouble.scalar.Length location) - Specified by:
getWidth
in interfaceStripeAnimation.StripeData
-
toString
- Overrides:
toString
in classAnimationCrossSectionElementData<Stripe>
-