Package com.anylogic.engine.markup
- java.lang.Object
- com.anylogic.engine.markup.AbstractMarkup
- com.anylogic.engine.markup.MarkupShape
- com.anylogic.engine.markup.AbstractRoadMarkup
- 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
Constructor | Description |
---|---|
AbstractRoadMarkup() |
Creates a new instance of abstract road markup.
|
AbstractRoadMarkup |
Creates a new instance of abstract road markup.
|
Modifier and Type | Method | Description |
---|---|---|
boolean | contains |
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 |
Deprecated.
TODO remove in release
|
void | setRoadNetwork |
Sets a roadNetwork for this AbstractRoadMarkup.
|
error, getDrawMode, getFullName, getOutsideLevelZ, getPresentable, getSpace, initialize, isClickHandled, isPublic, onClick, remove, setDrawMode, setOwner
discardOwner, executeUserAction, findSVGElement, getName, getOrGenerateUSDId, getSVGId, initializeInternal, isVisible, onAggregatorInitialized, onAggregatorVisibilityChanged, removeSVGFromOwner, resetSVGState, setVisible, updateDynamicProperties, updateDynamicPropertiesStructural, updateSVGProperties
public AbstractRoadMarkup()
Creates a new instance of abstract road markup. Cannot be called by user.
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
- Iftrue
, the markup shape is visible on container's presentation.
@Deprecated public void setDebugInfoVisible(boolean debugInfoVisible)
Deprecated.
TODO remove in release
public void setRoadNetwork(RoadNetwork roadNetwork)
Sets a roadNetwork for this AbstractRoadMarkup.
- Parameters:
roadNetwork
- Road network that the created road markup belongs to.
public RoadNetwork getRoadNetwork()
Return roadNetwork specified for this AbstractRoadMarkup
- Returns:
- roadNetwork
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 interfaceHasLevel
- Specified by:
getLevel
in classMarkupShape
- Returns:
- the level associated with this space markup element
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 classMarkupShape
- Parameters:
px
- the x coordinate relative to this shape's containerpy
- the y coordinate relative to this shape's container- Returns:
true
if the shape contains the point with the given coordinates