Class MapGeneratorData
java.lang.Object
org.opentrafficsim.editor.extensions.map.MapData
org.opentrafficsim.editor.extensions.map.MapLaneBasedObjectData
org.opentrafficsim.editor.extensions.map.MapGeneratorData
- All Implemented Interfaces:
EventListener,nl.tudelft.simulation.dsol.animation.Locatable,Identifiable,EventListener,OtsShape,LineLocatable,AbstractLineAnimation.LaneBasedObjectData,GtuGeneratorPositionAnimation.GtuGeneratorPositionData,EvalWrapper.EvalListener
public class MapGeneratorData
extends MapLaneBasedObjectData
implements GtuGeneratorPositionAnimation.GtuGeneratorPositionData
Generator data for the editor Map.
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
ConstructorsConstructorDescriptionMapGeneratorData(EditorMap map, XsdTreeNode node, OtsEditor editor) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionintdoublegetZ()doublesignedDistance(Point2d point) Signed distance function.toString()Methods inherited from class org.opentrafficsim.editor.extensions.map.MapLaneBasedObjectData
destroy, evalChanged, getAbsoluteContour, getId, getLaneWidth, getLine, getLinkLanePositionId, getLocation, getRelativeContour, notify, setLinkNodeMethods inherited from class org.opentrafficsim.editor.extensions.map.MapData
getEval, getMap, getNode, setValueMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.opentrafficsim.draw.LineLocatable
containsMethods inherited from interface org.opentrafficsim.base.geometry.OtsShape
contains, getAbsoluteBounds, getAbsoluteContour, getAbsoluteContour, getDirZ, getRelativeContour, signedDistance
-
Constructor Details
-
MapGeneratorData
Constructor.- Parameters:
map- map.node- node.editor- editor.
-
-
Method Details
-
getRelativeBounds
- Specified by:
getRelativeBoundsin interfacenl.tudelft.simulation.dsol.animation.Locatable- Specified by:
getRelativeBoundsin interfaceOtsShape- Overrides:
getRelativeBoundsin classMapLaneBasedObjectData
-
getQueueCount
public int getQueueCount()- Specified by:
getQueueCountin interfaceGtuGeneratorPositionAnimation.GtuGeneratorPositionData
-
getZ
public double getZ()- Specified by:
getZin interfaceAbstractLineAnimation.LaneBasedObjectData- Specified by:
getZin interfaceGtuGeneratorPositionAnimation.GtuGeneratorPositionData- Specified by:
getZin interfacenl.tudelft.simulation.dsol.animation.Locatable
-
toString
-
signedDistance
Signed distance function. The point must be relative. As this is a line object, only positive values are returned.- Specified by:
signedDistancein interfaceGtuGeneratorPositionAnimation.GtuGeneratorPositionData- Specified by:
signedDistancein interfaceLineLocatable- Specified by:
signedDistancein interfaceOtsShape- Parameters:
point- point for which distance is returned- Returns:
- distance from point to these bounds
-