AnyLogic
Expand
Font size
All Implemented Interfaces:
AggregatableAnimationElement, HasLevel, SVGElement, UsdElement, Serializable
Direct Known Subclasses:
AbstractRoadConnectableElement, AbstractRoadPart

@AnyLogicInternalAPI
public abstract class AbstractRoadMarkup
extends MarkupShape
Abstract class for all Transport Library space markup elements.
Author:
AnyLogic North America, LLC https://anylogic.com
See Also:
Serialized Form

Field Summary

Fields inherited from interface com.anylogic.engine.presentation.UsdElement

ID_NOT_SET

Constructor Summary

ConstructorDescription
AbstractRoadMarkup()
Creates a new instance of abstract road markup.
AbstractRoadMarkup(Agent owner, ShapeDrawMode drawMode, boolean isPublic)
Creates a new instance of abstract road markup.

Method Summary

Modifier and TypeMethodDescription
booleancontains(double px, double py)
Test if the shape contains the point with the given coordinates (relative to this shape's container, i.e.
LevelgetLevel()
Returns level associated with this space markup element or null if this element has no level
RoadNetworkgetRoadNetwork()
Return roadNetwork specified for this AbstractRoadMarkup
voidsetDebugInfoVisible(boolean debugInfoVisible)
Deprecated.
TODO remove in release
voidsetRoadNetwork(RoadNetwork roadNetwork)
Sets a roadNetwork for this AbstractRoadMarkup.

Methods inherited from class com.anylogic.engine.markup.MarkupShape

error, getDrawMode, getFullName, getOutsideLevelZ, getPresentable, getSpace, initialize, isClickHandled, isPublic, onClick, remove, setDrawMode, setOwner

Methods inherited from class java.lang.Object

equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Methods inherited from interface com.anylogic.engine.markup.AggregatableAnimationElement

postInitialize

Constructor Details

AbstractRoadMarkup

public AbstractRoadMarkup()
Creates a new instance of abstract road markup. Cannot be called by user.

AbstractRoadMarkup

public AbstractRoadMarkup(Agent owner,
 ShapeDrawMode drawMode,
 boolean isPublic)
Creates a new instance of abstract road markup. Cannot be called by user.
Parameters:
owner - Agent to which the created road intersection belongs to.
drawMode - Where to draw this space markup shape: 2D, 3D or 2D+3D.
ispublic - If true, the markup shape is visible on container's presentation.

Method Details

setDebugInfoVisible

@Deprecated
public void setDebugInfoVisible(boolean debugInfoVisible)
Deprecated.
TODO remove in release

setRoadNetwork

public void setRoadNetwork(RoadNetwork roadNetwork)
Sets a roadNetwork for this AbstractRoadMarkup.
Parameters:
roadNetwork - Road network that the created road markup belongs to.

getRoadNetwork

public RoadNetwork getRoadNetwork()
Return roadNetwork specified for this AbstractRoadMarkup
Returns:
roadNetwork

getLevel

public Level getLevel()
Description copied from interface: HasLevel
Returns level associated with this space markup element or null if this element has no level
Specified by:
getLevel in interface HasLevel
Specified by:
getLevel in class MarkupShape
Returns:
the level associated with this space markup element

contains

public boolean contains(double px,
 double py)
Description copied from class: MarkupShape
Test if the shape contains the point with the given coordinates (relative to this shape's container, i.e. in the same system with the coordinates of this shape, x and y)
Specified by:
contains in class MarkupShape
Parameters:
px - the x coordinate relative to this shape's container
py - the y coordinate relative to this shape's container
Returns:
true if the shape contains the point with the given coordinates