com.xj.anylogic.engine.presentation
Class Configuration3D

java.lang.Object
  extended by com.xj.anylogic.engine.presentation.Configuration3D
All Implemented Interfaces:
java.io.Serializable

public class Configuration3D
extends java.lang.Object
implements java.io.Serializable

Configuration of 3D world of the associated active object
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 active object.
Grid is drawn only on computers with video cards supporting GLSL shader model.

Author:
XJ Technologies Company Ltd. www.anylogic.com
See Also:
Serialized Form

Method Summary
 java.awt.Color getBackgroundColor()
          Returns the background color of 3D world of the active object
 java.awt.Color getGridColor()
          Returns grid color or null (if grid is invisible)
 void setBackgroundColor(java.awt.Color backgroundColor)
          Sets the background color of 3D world of the active object
 void setGridColor(java.awt.Color gridColor)
          Sets new grid color value or disables grid
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getGridColor

public java.awt.Color getGridColor()
Returns grid color or null (if grid is invisible)

Returns:
grid color or null (if grid is invisible)

setGridColor

public void setGridColor(java.awt.Color gridColor)
Sets new grid color value or disables grid

Parameters:
gridColor - new grid color, or null to make grid invisible

getBackgroundColor

public java.awt.Color getBackgroundColor()
Returns the background color of 3D world of the active object

Returns:
the background color of 3D world of the active object, not null

setBackgroundColor

public void setBackgroundColor(java.awt.Color backgroundColor)
Sets the background color of 3D world of the active object

Parameters:
backgroundColor - the background color of 3D world of the active object


Copyright © 1991-2008 XJ Technlogies. All Rights Reserved.