AnyLogic
Expand
Font size
All Implemented Interfaces:
Serializable

public class Configuration3D
extends Object
implements Serializable
Configuration of 3D world of the associated agent
This object controls the background color and grid at the Z=0 plane.
Background and grid are only applied at the scope of the underlying agent.
Author:
AnyLogic North America, LLC https://anylogic.com
See Also:
Serialized Form

Method Summary

Modifier and TypeMethodDescription
ColorgetBackgroundColor()
Returns the background color of 3D world of the agent
ColorgetGridColor()
Returns grid color or null (if grid is invisible)
SkyboxTypegetSkybox() 
voidsetBackgroundColor(Color backgroundColor)
Sets the background color of 3D world of the agent
voidsetGridColor(Color gridColor)
Sets new grid color value or disables grid
voidsetSkybox(SkyboxType skybox) 

Methods inherited from class java.lang.Object

equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Method Details

getGridColor

public Color getGridColor()
Returns grid color or null (if grid is invisible)
Returns:
grid color or null (if grid is invisible)

setGridColor

public void setGridColor(Color gridColor)
Sets new grid color value or disables grid
Parameters:
gridColor - new grid color, or null to make grid invisible

getBackgroundColor

public Color getBackgroundColor()
Returns the background color of 3D world of the agent
Returns:
the background color of 3D world of the agent, not null

setBackgroundColor

public void setBackgroundColor(Color backgroundColor)
Sets the background color of 3D world of the agent
Parameters:
backgroundColor - the background color of 3D world of the agent

getSkybox

public SkyboxType getSkybox()

setSkybox

public void setSkybox(SkyboxType skybox)