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
StringgetEnvironmentFilePath() 
doublegetEnvironmentIntensity() 
floatgetEnvironmentRotationX() 
floatgetEnvironmentRotationY() 
floatgetEnvironmentRotationZ() 
ColorgetGridColor()
Returns grid color or null (if grid is invisible)
SkyboxTypegetSkybox() 
booleanisUseEnvironmentForBackground() 
booleanisUseEnvironmentForLightning() 
voidsetBackgroundColor(Color backgroundColor)
Sets the background color of 3D world of the agent
voidsetEnvironmentFilePackagePrefix(String packagePrefix) 
voidsetEnvironmentFilePath(String environmentFilePath) 
voidsetEnvironmentIntensity(double environmentIntensity) 
voidsetEnvironmentRotationX(float environmentRotationX) 
voidsetEnvironmentRotationY(float environmentRotationY) 
voidsetEnvironmentRotationZ(float environmentRotationZ) 
voidsetGridColor(Color gridColor)
Sets new grid color value or disables grid
voidsetSkybox(SkyboxType skybox) 
voidsetUseEnvironmentForBackground(boolean useEnvironmentForBackground) 
voidsetUseEnvironmentForLightning(boolean useEnvironmentForLightning) 

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)

getEnvironmentFilePath

public String getEnvironmentFilePath()

setEnvironmentFilePath

public void setEnvironmentFilePath(String environmentFilePath)

setEnvironmentFilePackagePrefix

public void setEnvironmentFilePackagePrefix(String packagePrefix)

getEnvironmentIntensity

public double getEnvironmentIntensity()

setEnvironmentIntensity

public void setEnvironmentIntensity(double environmentIntensity)

getEnvironmentRotationX

public float getEnvironmentRotationX()

setEnvironmentRotationX

public void setEnvironmentRotationX(float environmentRotationX)

getEnvironmentRotationY

public float getEnvironmentRotationY()

setEnvironmentRotationY

public void setEnvironmentRotationY(float environmentRotationY)

getEnvironmentRotationZ

public float getEnvironmentRotationZ()

setEnvironmentRotationZ

public void setEnvironmentRotationZ(float environmentRotationZ)

isUseEnvironmentForBackground

public boolean isUseEnvironmentForBackground()

setUseEnvironmentForBackground

public void setUseEnvironmentForBackground(boolean useEnvironmentForBackground)

isUseEnvironmentForLightning

public boolean isUseEnvironmentForLightning()

setUseEnvironmentForLightning

public void setUseEnvironmentForLightning(boolean useEnvironmentForLightning)