AnyLogic
Expand
Font size
All Implemented Interfaces:
AggregatableAnimationElement, HasLevel, SVGElement, java.io.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

Constructor Summary

Constructors 
AbstractRoadMarkup()
Creates a new instance of abstract road markup.
AbstractRoadMarkup​(Agent owner, ShapeDrawMode drawMode, boolean isPublic)
Creates a new instance of abstract road markup.
Constructor Description

Method Summary

All Methods Instance Methods Concrete Methods Deprecated Methods 
boolean contains​(double px, double py)
Test if the shape contains the point with the given coordinates (relative to this shape's container, i.e.
Level getLevel()
Returns level associated with this space markup element or null if this element has no level
RoadNetwork getRoadNetwork()
Return roadNetwork specified for this AbstractRoadMarkup
void setDebugInfoVisible​(boolean debugInfoVisible)
Deprecated.
TODO remove in release
void setRoadNetwork​(RoadNetwork roadNetwork)
Sets a roadNetwork for this AbstractRoadMarkup.
Modifier and Type Method Description

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 com.anylogic.engine.markup.AbstractMarkup

discardOwner, executeUserAction, findSVGElement, getName, getSVGId, initializeInternal, isVisible, onAggregatorInitialized, onAggregatorVisibilityChanged, removeSVGFromOwner, resetSVGState, setVisible, updateDynamicProperties, updateDynamicPropertiesStructural, updateSVGProperties

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 Detail

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 Detail

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
How can we improve this article?