Class AnimationIdentifiableShape<T extends OtsShape & Identifiable>
java.lang.Object
org.opentrafficsim.animation.data.AnimationIdentifiableShape<T>
- Type Parameters:
T- type of object
- All Implemented Interfaces:
Locatable,Identifiable,OtsShape
- Direct Known Subclasses:
AnimationCrossSectionElementData,AnimationGtuData,AnimationLaneBasedObjectData,AnimationLinkData,AnimationNodeData,AnimationSpeedSignData,AnimationTrafficLightDetectorData
public abstract class AnimationIdentifiableShape<T extends OtsShape & Identifiable>
extends Object
implements OtsShape, Identifiable
Object wrapper for animations, that forwards shape and id information to the wrapped object.
Copyright (c) 2024-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.base.geometry.OtsShape
DEFAULT_POLYGON_SEGMENTS, WORLD_MARGIN_LINE -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opentrafficsim.base.geometry.OtsShape
contains, contains, getAbsoluteBounds, getAbsoluteContour, getDirZ, signedDistance, signedDistance
-
Constructor Details
-
AnimationIdentifiableShape
Constructor.- Parameters:
object- object
-
-
Method Details
-
getObject
Returns the object.- Returns:
- object
-
getLocation
- Specified by:
getLocationin interfaceLocatable- Specified by:
getLocationin interfaceOtsShape
-
getRelativeContour
- Specified by:
getRelativeContourin interfaceOtsShape
-
getAbsoluteContour
- Specified by:
getAbsoluteContourin interfaceOtsShape
-
getRelativeBounds
- Specified by:
getRelativeBoundsin interfaceLocatable- Specified by:
getRelativeBoundsin interfaceOtsShape
-
getId
- Specified by:
getIdin interfaceIdentifiable
-