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,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
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.opentrafficsim.draw.road.StripeAnimation.StripeData
StripeAnimation.StripeData.Type -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.opentrafficsim.animation.data.AnimationCrossSectionElementData
getBounds, getElement, getLinkIdMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface nl.tudelft.simulation.dsol.animation.Locatable
getDirZMethods inherited from interface org.opentrafficsim.base.geometry.OtsLocatable
getBoundsMethods inherited from interface org.opentrafficsim.draw.road.StripeAnimation.StripeData
getZ
-
Constructor Details
-
AnimationStripeData
Constructor.- Parameters:
stripe- Stripe; stripe.
-
-
Method Details
-
getCenterLine
public org.djutils.draw.line.PolyLine2d getCenterLine()- Specified by:
getCenterLinein interfaceCrossSectionElementAnimation.CrossSectionElementData- Specified by:
getCenterLinein interfaceStripeAnimation.StripeData- Overrides:
getCenterLinein classAnimationCrossSectionElementData<Stripe>
-
getType
- Specified by:
getTypein interfaceStripeAnimation.StripeData
-
getLocation
public org.djutils.draw.point.OrientedPoint2d getLocation()- Specified by:
getLocationin interfacenl.tudelft.simulation.dsol.animation.Locatable- Specified by:
getLocationin interfaceorg.opentrafficsim.base.geometry.OtsLocatable- Specified by:
getLocationin interfaceStripeAnimation.StripeData- Overrides:
getLocationin classAnimationCrossSectionElementData<Stripe>
-
getWidth
public org.djunits.value.vdouble.scalar.Length getWidth()- Specified by:
getWidthin interfaceStripeAnimation.StripeData
-
toString
- Overrides:
toStringin classAnimationCrossSectionElementData<Stripe>
-