Package com.anylogic.engine.presentation
- Field Summary
- Constructor Summary
- Method Summary
- Methods inherited from class com.anylogic.engine.presentation.ShapeGroup
- 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
- Constructor Details
- Method Details
- java.lang.Object
- com.anylogic.engine.presentation.Shape
- com.anylogic.engine.presentation.Shape3D
- com.anylogic.engine.presentation.ShapeGroup
- com.anylogic.engine.presentation.ShapeTopLevelPresentationGroup
- All Implemented Interfaces:
com.anylogic.engine.internal.Child
,Locatable2D
,Locatable3D
,AggregatableAnimationElement
,HasLevel
,LevelElement
,SVGElement
,UsdElement
,Serializable
,Cloneable
public class ShapeTopLevelPresentationGroup extends ShapeGroup
Top-level group of agent or experiment presentation
- Author:
- AnyLogic North America, LLC https://anylogic.com
- See Also:
- Serialized Form
Constructor | Description |
---|---|
ShapeTopLevelPresentationGroup |
Constructs a top-level presentation group with specific attributes
and possibly with some content
|
Modifier and Type | Method | Description |
---|---|---|
void | add |
This is a helper method to add all the markups and shapes contained in this level
to this group
|
void | add |
Adds a space markup shape to the group.
|
Configuration3D | getConfiguration3D() |
Returns 3D configuration of agent.
Returns null for experiments. |
ShapeEmbeddedObjectPresentation | getOriginalOwner() |
This method is internal and shouldn't be called by user.
it may be removed/renamed in future. |
ShapeEmbeddedObjectPresentation | getOwner() |
Returns the owner of this presentation if this is an agent
presentation and it is embedded to another agent
This method returns null in case the agent
is not embedded anywhere or if this is an experiment presentation |
List<Object> | getShapes() |
Returns the collection of shapes in the group (not a copy).
|
void | insert |
Adds a space markup to the group at the specified index (which
defines z-order of shape in 2D animation).
|
boolean | remove |
Tries to remove a space markup shape from the group,
returns
false if the shape was not contained. |
void | removeSVGFromOwner |
This method is internal and shouldn't be called by user.
it may be removed/renamed in future. |
void | setOwner_xjal |
This method shouldn't be called by user.
It is public due to technical reasons |
void | setPos |
This method is not supported for top-level 'presentation' group.
Please create your own group and add all the contents to that group in order to have the intended control.
|
void | setPos |
This method is not supported for top-level 'presentation' group.
Please create your own group and add all the contents to that group in order to have the intended control.
|
void | setPos |
This method is not supported for top-level 'presentation' group.
Please create your own group and add all the contents to that group in order to have the intended control.
|
void | setRotation |
This method is not supported for top-level 'presentation' group.
Please create your own group and add all the contents to that group in order to have the intended control.
|
void | setRotationX |
This method is not supported for top-level 'presentation' group.
Please create your own group and add all the contents to that group in order to have the intended control.
|
void | setRotationY |
This method is not supported for top-level 'presentation' group.
Please create your own group and add all the contents to that group in order to have the intended control.
|
void | setRotationZ |
This method is not supported for top-level 'presentation' group.
Please create your own group and add all the contents to that group in order to have the intended control.
|
void | setScale |
This method is not supported for top-level 'presentation' group.
Please create your own group and add all the contents to that group in order to have the intended control.
|
void | setScale |
This method is not supported for top-level 'presentation' group.
Please create your own group and add all the contents to that group in order to have the intended control.
|
void | setScale |
This method is not supported for top-level 'presentation' group.
Please create your own group and add all the contents to that group in order to have the intended control.
|
void | setScaleX |
This method is not supported for top-level 'presentation' group.
Please create your own group and add all the contents to that group in order to have the intended control.
|
void | setScaleY |
This method is not supported for top-level 'presentation' group.
Please create your own group and add all the contents to that group in order to have the intended control.
|
void | setScaleZ |
This method is not supported for top-level 'presentation' group.
Please create your own group and add all the contents to that group in order to have the intended control.
|
void | setVisible |
This method is not supported for top-level 'presentation' group.
Please create your own group and add all the contents to that group in order to have the intended control.
|
void | setX |
This method is not supported for top-level 'presentation' group.
Please create your own group and add all the contents to that group in order to have the intended control.
|
void | setY |
This method is not supported for top-level 'presentation' group.
Please create your own group and add all the contents to that group in order to have the intended control.
|
void | setZ |
This method is not supported for top-level 'presentation' group.
Please create your own group and add all the contents to that group in order to have the intended control.
|
add, add, add, add, clear, clone, contains, findSVGElement, get, getPresentable, getRotation, getRotationX, getRotationY, getRotationZ, indexOf, initialize_xjal, insert, insert, onDraw, postSVGShapeSpecificAttributes, remove, remove, remove, remove, resetSVGState, restoreOwner, size, updateDynamicPropertiesStructural
executeUserAction, getGroup, getLevel, getName, getOrGenerateUSDId, getScaleX, getScaleY, getSVGId, getUsdVersion, getX, getY, isJava2DSwingPresentation, isPublic_xjal, isSVGPresentation, isVisible, isVisibleCurrently, onAggregatorVisibilityChanged, onClick, randomPointInside, randomPointInside, removeSVGImage, setChangedUsdVersion, setLevel, setNextChangedUsdVersion, setPublic_xjal, updateDynamicProperties, updateSVGProperties
public ShapeTopLevelPresentationGroup(Presentable presentable, boolean ispublic, double x, double y, double z, double rotationXY, Object... contents)
Constructs a top-level presentation group with specific attributes
and possibly with some content
- Parameters:
presentable
- the presentable object owning this shapeispublic
- iftrue
, the shape is visible on container's presentationx
- the x coordinate of groupy
- the y coordinate of groupz
- the z coordinate of grouprotationXY
- the rotation of the group in radianscontents
- the (possibly, empty) initial set of shapes (Shape objects, int ids, ReplicatedShape or Light3D objects)
public void add(MarkupShape shape)
Adds a space markup shape to the group. Note that it is your
responsibility to remove the shape from the another group, if any!
- Parameters:
shape
- the space markup shape to add
public void add(Level level)
This is a helper method to add all the markups and shapes contained in this level
to this group
- Parameters:
level
-
public void insert(int index, MarkupShape shape)
Adds a space markup to the group at the specified index (which
defines z-order of shape in 2D animation). Note that it is your
responsibility to remove the shape from the another group, if any!
- Parameters:
index
- index at which the specified markup is to be inserted (from0
tosize()
, inclusive)shape
- the space markup shape to add- Since:
- 7.2
public boolean remove(MarkupShape shape)
Tries to remove a space markup shape from the group,
returns
false
if the shape was not contained.- Parameters:
shape
- the space markup shape to remove- Returns:
true
if the group contained the shape,false
otherwise
public List<Object> getShapes()
Returns the collection of shapes in the group (not a copy). The
collection can contain either members of class Shape for shapes,
and of class ReplicatedShape for replicated shapes.
It may also contain 3D lights, cameras and space markup elements.
- Overrides:
getShapes
in classShapeGroup
- Returns:
- the collection of shapes in the group
public ShapeEmbeddedObjectPresentation getOwner()
Returns the owner of this presentation if this is an agent
presentation and it is embedded to another agent
This method returns
This method returns
null
in case the agent
is not embedded anywhere or if this is an experiment presentation- Returns:
- the owner of this presentation
@AnyLogicInternalAPI public ShapeEmbeddedObjectPresentation getOriginalOwner()
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.
public Configuration3D getConfiguration3D()
Returns 3D configuration of agent.
Returns
Returns
null
for experiments.- Returns:
- 3D configuration of agent
@AnyLogicInternalAPI public void setOwner_xjal(ShapeEmbeddedObjectPresentation owner)
This method shouldn't be called by user.
It is public due to technical reasons
It is public due to technical reasons
@AnyLogicInternalAPI public void removeSVGFromOwner(Shape oldOwner)
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:
removeSVGFromOwner
in interfaceSVGElement
- Overrides:
removeSVGFromOwner
in classShape
- Parameters:
oldOwner
- may benull
@AnyLogicInternalAPI public void setVisible(boolean v)
This method is not supported for top-level 'presentation' group.
Please create your own group and add all the contents to that group in order to have the intended control.
- Overrides:
setVisible
in classShapeGroup
- Parameters:
v
- visibility:true
- visible,false
- not
@AnyLogicInternalAPI public void setRotation(double rotation)
This method is not supported for top-level 'presentation' group.
Please create your own group and add all the contents to that group in order to have the intended control.
- Overrides:
setRotation
in classShapeGroup
- Parameters:
rotation
- the new value of horizontal rotation in radians- See Also:
@AnyLogicInternalAPI public void setRotationZ(double rotationZ)
This method is not supported for top-level 'presentation' group.
Please create your own group and add all the contents to that group in order to have the intended control.
- Overrides:
setRotationZ
in classShapeGroup
- Parameters:
rotationZ
- the new value of rotation around Z-axis in radians
@AnyLogicInternalAPI public void setRotationY(double rotationY)
This method is not supported for top-level 'presentation' group.
Please create your own group and add all the contents to that group in order to have the intended control.
- Overrides:
setRotationY
in classShapeGroup
- Parameters:
rotationY
- the new value of rotation around Y axis (CW from +Z to +X), in radians
@AnyLogicInternalAPI public void setRotationX(double rotationX)
This method is not supported for top-level 'presentation' group.
Please create your own group and add all the contents to that group in order to have the intended control.
- Overrides:
setRotationX
in classShapeGroup
- Parameters:
rotationX
- the new value of rotation around X axis (CW from +Y to +Z), in radians
@AnyLogicInternalAPI public void setZ(double z)
This method is not supported for top-level 'presentation' group.
Please create your own group and add all the contents to that group in order to have the intended control.
@AnyLogicInternalAPI public void setPos(double x, double y)
This method is not supported for top-level 'presentation' group.
Please create your own group and add all the contents to that group in order to have the intended control.
@AnyLogicInternalAPI public void setPos(double x, double y, double z)
This method is not supported for top-level 'presentation' group.
Please create your own group and add all the contents to that group in order to have the intended control.
@AnyLogicInternalAPI public void setPos(Point p)
This method is not supported for top-level 'presentation' group.
Please create your own group and add all the contents to that group in order to have the intended control.
@AnyLogicInternalAPI public void setScaleZ(double sz)
This method is not supported for top-level 'presentation' group.
Please create your own group and add all the contents to that group in order to have the intended control.
@AnyLogicInternalAPI public void setScale(double sx, double sy, double sz)
This method is not supported for top-level 'presentation' group.
Please create your own group and add all the contents to that group in order to have the intended control.
@AnyLogicInternalAPI public void setScale(double s)
This method is not supported for top-level 'presentation' group.
Please create your own group and add all the contents to that group in order to have the intended control.
@AnyLogicInternalAPI public void setX(double x)
This method is not supported for top-level 'presentation' group.
Please create your own group and add all the contents to that group in order to have the intended control.
@AnyLogicInternalAPI public void setY(double y)
This method is not supported for top-level 'presentation' group.
Please create your own group and add all the contents to that group in order to have the intended control.
@AnyLogicInternalAPI public void setScaleX(double sx)
This method is not supported for top-level 'presentation' group.
Please create your own group and add all the contents to that group in order to have the intended control.
@AnyLogicInternalAPI public void setScaleY(double sy)
This method is not supported for top-level 'presentation' group.
Please create your own group and add all the contents to that group in order to have the intended control.
@AnyLogicInternalAPI public void setScale(double sx, double sy)
This method is not supported for top-level 'presentation' group.
Please create your own group and add all the contents to that group in order to have the intended control.