public class Light3DAmbient extends Light3D
Light3D
,
Serialized FormLight3D.CarHeadlight, Light3D.Daylight, Light3D.Moonlight, Light3D.StreetLight
Constructor and Description |
---|
Light3DAmbient(boolean ispublic,
java.awt.Color diffuseColor,
java.awt.Color specularColor,
java.awt.Color ambientColor,
boolean global)
Creates new 3D ambient light
|
Modifier and Type | Method and Description |
---|---|
Light3DAmbient |
clone()
Creates and returns a copy of this light (i.e. new light instance).
|
Level |
getLevel()
Returns the level containing this shape.
|
void |
restoreOwner(java.lang.Object owner)
Deprecated.
|
void |
setContextReference_xjal(Presentable contextReference)
Deprecated.
|
void |
setLevel(Level level)
This method is internal and shouldn't be called by user.
|
boolean |
updateDynamicPropertiesStructural(boolean publicOnly) |
executeUserAction, findSVGElement, getAmbientColor, getDiffuseColor, getGroup, getName, getPresentable, getSpecularColor, getSVGId, isEnabled, isGlobal, onAggregatorVisibilityChanged, removeSVGFromOwner, resetSVGState, setAmbientColor, setDiffuseColor, setEnabled, setGlobal, setSpecularColor, update, updateSVGProperties
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
initializeInternal, postInitialize
public Light3DAmbient(boolean ispublic, java.awt.Color diffuseColor, java.awt.Color specularColor, java.awt.Color ambientColor, boolean global)
ispublic
- if true
, the light persists on container's presentationdiffuseColor
- the diffuse color componentspecularColor
- the specular color componentambientColor
- the ambient color componentglobal
- if true
, the light affects shapes outside the group
the light is placed inpublic final Light3DAmbient clone()
Light3D
@AnyLogicInternalAPI public boolean updateDynamicPropertiesStructural(boolean publicOnly)
true
if update was done (usually for visible elements, respecting public flag etc.)public Level getLevel()
null
for shapes in the experiments.@AnyLogicInternalAPI public void setLevel(Level level)
Level#add(Shape)
instead.setLevel
in interface LevelElement
@AnyLogicInternalCodegenAPI @Deprecated public final void restoreOwner(java.lang.Object owner)
restoreOwner
in interface com.anylogic.engine.internal.Child
owner
- owner of this object, usually Agent
,
Experiment
or
ShapeGroup
@AnyLogicInternalAPI @Deprecated public void setContextReference_xjal(Presentable contextReference)
Copyright © AnyLogic North America, LLC. All Rights Reserved.