Package com.anylogic.engine.markup
- Field Summary
- Constructor Summary
- Method Summary
- Methods inherited from class com.anylogic.engine.presentation.Shape3D
- Methods inherited from class com.anylogic.engine.presentation.Shape
- Methods inherited from class java.lang.Object
- Methods inherited from interface com.anylogic.engine.markup.AggregatableAnimationElement
- Methods inherited from interface com.anylogic.engine.Locatable2D
- Methods inherited from interface com.anylogic.engine.presentation.SVGElement
- Constructor Details
- Method Details
- java.lang.Object
- com.anylogic.engine.presentation.Shape
- com.anylogic.engine.presentation.Shape3D
- com.anylogic.engine.markup.ElevatorShaft
- All Implemented Interfaces:
com.anylogic.engine.internal.Child
,Locatable2D
,Locatable3D
,AggregatableAnimationElement
,HasBoundingRectangle
,HasLevel
,LevelElement
,SVGElement
,UsdElement
,Serializable
,Cloneable
@AnyLogicInternalAPI public class ElevatorShaft extends Shape3D implements HasBoundingRectangle
- See Also:
- Serialized Form
Constructor | Description |
---|---|
ElevatorShaft |
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.
|
SVGElement | findSVGElement |
This method is internal and shouldn't be called by user.
it may be removed/renamed in future. |
BoundingRectangle | getBoundingRectangle() | |
Elevator<?> | getElevator() | |
ShapeInspect | getInspect() | |
boolean | isFrontDoorOpen() | |
boolean | isRearDoorOpen() | |
boolean | onClick |
Should be overridden to define the shape reaction on mouse click.
|
void | resetSVGState |
Reset SVG state goes through the entire shape hierarchy and delete (generate "D" command) child shapes if needed
(for example we need to delete Shape3DObjects for instanced objects explicitly in case of deletion group or other hierarchy parent)
resetSVGState for children must be called before parent (to generate delete "D" command for children first)
|
void | setFrontDoorOpen | |
void | setLineColor | |
void | setPlatformColor | |
void | setRearDoorOpen | |
void | setZHeight | |
SVGElement | updateSVGProperties |
This method is internal and shouldn't be called by user.
it may be removed/renamed in future. Updates SVG properties of the element that are then sent to the rendering client. |
canHandleClick, getDrawMode, getScaleZ, getZ, getZOffset, setDrawMode, setPos, setPos, setPos, setRotation, setScale, setScale, setScaleZ, setZ
clone, executeUserAction, getGroup, getGroupOrOwner, getLevel, getName, getOrGenerateUSDId, getPresentable, getRotation, getScaleX, getScaleY, getSVGId, getUsdVersion, getX, getY, isJava2DSwingPresentation, isOnly3D, isPublic_xjal, isSVGPresentation, isVisible, isVisibleCurrently, onAggregatorVisibilityChanged, postSVGShapeSpecificAttributes, randomPointInside, randomPointInside, removeSVGFromOwner, removeSVGImage, restoreOwner, setChangedUsdVersion, setInspect, setLevel, setNextChangedUsdVersion, setPublic_xjal, setScale, setScaleX, setScaleY, setVisible, setX, setY, updateDynamicProperties, updateDynamicPropertiesStructural
public ElevatorShaft(Elevator<?> elevator, Level level)
public void setZHeight(double zHeight)
public void setLineColor(Paint lineColor)
public void setPlatformColor(Paint platformColor)
public void setFrontDoorOpen(boolean frontDoorOpen)
public void setRearDoorOpen(boolean rearDoorOpen)
public boolean isFrontDoorOpen()
public boolean isRearDoorOpen()
public boolean contains(double px, double py)
Description copied from class:
Shape
public SVGElement updateSVGProperties(List<SVGCommand> output, ShapeDrawMode drawMode, boolean publicOnly, SVGElement owner, SVGElement elbehind, boolean isInReplicatedShape)
Description copied from interface:
SVGElement
This method is internal and shouldn't be called by user.
it may be removed/renamed in future.
Updates SVG properties of the element that are then sent to the rendering client. If the element is not yet in the SVG scene, generates "C" command, if it is there, but some properties are out of date, generates "U" command. If SVG drawing of this element is not needed because of public only settings, or permanently not needed, or not supported yet, returns false and does nothing.
it may be removed/renamed in future.
Updates SVG properties of the element that are then sent to the rendering client. If the element is not yet in the SVG scene, generates "C" command, if it is there, but some properties are out of date, generates "U" command. If SVG drawing of this element is not needed because of public only settings, or permanently not needed, or not supported yet, returns false and does nothing.
- Specified by:
updateSVGProperties
in interfaceSVGElement
- Overrides:
updateSVGProperties
in classShape
- Parameters:
output
- the list of commands to add todrawMode
- TODOpublicOnly
- drawing context: if true, only shapes that are marked as public only are updatedowner
- the SVG element that serves as a container for this elementelbehind
- the SVG element behind this one, or null if none or if order is irrelevant- Returns:
- the actual owner this element has been added to or
null
if element is not drawn (e.g. drawing of this element is not needed because of public only settings, permanently not needed or not supported - hence SVG id is not set). The actual owner may differ from the givenowner
when the svg element is added to a different place (e.g. GIS map).
public void resetSVGState(SVGElement elementBeingDeleted, boolean delete, Consumer<SVGCommand> commandOutput)
Description copied from class:
Shape
Reset SVG state goes through the entire shape hierarchy and delete (generate "D" command) child shapes if needed
(for example we need to delete Shape3DObjects for instanced objects explicitly in case of deletion group or other hierarchy parent)
resetSVGState for children must be called before parent (to generate delete "D" command for children first)
- Specified by:
resetSVGState
in interfaceSVGElement
- Overrides:
resetSVGState
in classShape
- Parameters:
elementBeingDeleted
- top-level element that is being deleteddelete
- flag if method was called during shape deletion (delete "D" commands can be generated)
public ShapeInspect getInspect()
- Overrides:
getInspect
in classShape
public SVGElement findSVGElement(long svgId)
Description copied from interface:
SVGElement
This method is internal and shouldn't be called by user.
it may be removed/renamed in future.
it may be removed/renamed in future.
- Specified by:
findSVGElement
in interfaceSVGElement
- Overrides:
findSVGElement
in classShape
@AnyLogicInternalAPI public BoundingRectangle getBoundingRectangle()
- Specified by:
getBoundingRectangle
in interfaceHasBoundingRectangle
public Elevator<?> getElevator()
@AnyLogicInternalCodegenAPI public boolean onClick(double clickx, double clicky)
Description copied from class:
Shape
Should be overridden to define the shape reaction on mouse click.
The click coordinates are definitely within the shape bounds if this
method is called. By default, does nothing and returns
false
.- Overrides:
onClick
in classShape
- Parameters:
clickx
- the x coordinate of the click relative to the shapeclicky
- the y coordinate of the click relative to the shape- Returns:
- return
true
to indicate that this shape is a part of agent's icon and define user's interaction with icon in model runtime. Single click will display agent's inspect window, while double click will open the agent's presentation in the model window.