Package com.anylogic.engine.markup
- Field Summary
- Constructor Summary
- Method Summary
- Methods inherited from class com.anylogic.engine.markup.AbstractRoadMarkup
- Methods inherited from class com.anylogic.engine.markup.MarkupShape
- Methods inherited from class com.anylogic.engine.markup.AbstractMarkup
- Methods inherited from class java.lang.Object
- Methods inherited from interface com.anylogic.engine.markup.AggregatableAnimationElement
- Constructor Details
- Method Details
- java.lang.Object
- com.anylogic.engine.markup.AbstractMarkup
- com.anylogic.engine.markup.MarkupShape
- com.anylogic.engine.markup.AbstractRoadMarkup
- com.anylogic.engine.markup.AbstractRoadPart
- All Implemented Interfaces:
AggregatableAnimationElement
,HasLevel
,SVGElement
,UsdElement
,Serializable
- Direct Known Subclasses:
AbstractRoadSidePart
@AnyLogicInternalAPI public abstract class AbstractRoadPart extends AbstractRoadMarkup
- See Also:
- Serialized Form
Constructor | Description |
---|---|
AbstractRoadPart() | |
AbstractRoadPart |
Modifier and Type | Method | Description |
---|---|---|
double | getOffset() |
Returns offset (measured by guideline of lane adjacent to road part) from
beginning of lane guideline to beginning of road part in XY-projection, in pixels.
|
double | getOffset |
Returns offset (measured by guideline of lane adjacent to road part) from
beginning of lane guideline to beginning of road part in XY-projection, measured in the given units.
|
Road | getRoad() |
Returns road segment on which the road part is located.
|
void | setOffset |
Sets offset (measured by guideline of lane adjacent to road part) from
beginning of lane guideline to beginning of road part in XY-projection, in pixels.
|
void | setOffset |
Sets offset (measured by guideline of lane adjacent to road part) from
beginning of lane guideline to beginning of road part in XY-projection, measured in the given units.
|
void | setRoad |
Sets road segment on which the road part is located.
|
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 AbstractRoadPart()
public AbstractRoadPart(Road road, ShapeDrawMode drawMode, boolean isPublic, double offset)
public Road getRoad()
Returns road segment on which the road part is located.
- Returns:
- Road segment on which the road part is located.
public void setRoad(Road road)
Sets road segment on which the road part is located.
- Parameters:
road
- segment on which the road part is located.
public double getOffset()
Returns offset (measured by guideline of lane adjacent to road part) from
beginning of lane guideline to beginning of road part in XY-projection, in pixels.
- Returns:
- Offset from beginning of lane guideline to beginning of road part in XY-projection, in pixels.
public double getOffset(LengthUnits units)
Returns offset (measured by guideline of lane adjacent to road part) from
beginning of lane guideline to beginning of road part in XY-projection, measured in the given units.
- Returns:
- Offset from beginning of lane guideline to beginning of road part in XY-projection, measured in the given units.
public void setOffset(double offset)
Sets offset (measured by guideline of lane adjacent to road part) from
beginning of lane guideline to beginning of road part in XY-projection, in pixels.
- Parameters:
offset
- offset from beginning of lane guideline to beginning of road part, in pixels
public void setOffset(double offset, LengthUnits units)
Sets offset (measured by guideline of lane adjacent to road part) from
beginning of lane guideline to beginning of road part in XY-projection, measured in the given units.
- Parameters:
offset
- offset from beginning of lane guideline to beginning of road part, measured in the given units