Record Class SelectionAnnotation.ZAdjustedMapData
java.lang.Object
java.lang.Record
org.opentrafficsim.editor.extensions.map.edit.SelectionAnnotation.ZAdjustedMapData
- Record Components:
mapData- map dataadjustedZ- adjusted z-value, seeDrawLevelfor values
- All Implemented Interfaces:
nl.tudelft.simulation.dsol.animation.Locatable,OtsShape
- Enclosing class:
- SelectionAnnotation
public static record SelectionAnnotation.ZAdjustedMapData(MapData mapData, double adjustedZ)
extends Record
implements OtsShape
Helper class that wraps a
MapData and acts like it, except with an adjusted z-value as given.-
Field Summary
Fields inherited from interface org.opentrafficsim.base.geometry.OtsShape
DEFAULT_POLYGON_SEGMENTS, WORLD_MARGIN_LINE -
Constructor Summary
ConstructorsConstructorDescriptionZAdjustedMapData(MapData mapData, double adjustedZ) Creates an instance of aZAdjustedMapDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the value of theadjustedZrecord component.final booleanIndicates whether some other object is "equal to" this one.doublegetZ()final inthashCode()Returns a hash code value for this object.mapData()Returns the value of themapDatarecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.opentrafficsim.base.geometry.OtsShape
contains, contains, getAbsoluteBounds, getAbsoluteContour, getAbsoluteContour, getDirZ, getRelativeBounds, signedDistance, signedDistance
-
Constructor Details
-
Method Details
-
getZ
public double getZ()- Specified by:
getZin interfacenl.tudelft.simulation.dsol.animation.Locatable
-
getLocation
- Specified by:
getLocationin interfacenl.tudelft.simulation.dsol.animation.Locatable- Specified by:
getLocationin interfaceOtsShape
-
getRelativeContour
- Specified by:
getRelativeContourin interfaceOtsShape
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
mapData
Returns the value of themapDatarecord component.- Returns:
- the value of the
mapDatarecord component
-
adjustedZ
public double adjustedZ()Returns the value of theadjustedZrecord component.- Returns:
- the value of the
adjustedZrecord component
-