AnyLogic AnyLogic
Expand
Font size
All Implemented Interfaces:
com.anylogic.engine.internal.Child, AggregatableAnimationElement, HasLevel, LevelElement, SVGElement, java.io.Serializable, java.lang.Cloneable
Enclosing class:
Light3D

public static class Light3D.CarHeadlight
extends Light3DSpot
See Also:
Serialized Form

Nested Class Summary

Nested classes/interfaces inherited from class com.anylogic.engine.presentation.Light3D

Light3D.CarHeadlight, Light3D.Daylight, Light3D.Moonlight, Light3D.StreetLight

Constructor Summary

Constructors 
CarHeadlight​(double x, double y, double z)  
CarHeadlight​(java.awt.Color baseColor, double x, double y, double z, boolean ispublic, boolean global)  
CarHeadlight​(java.awt.Color baseColor, double x, double y, double z, double angleX, double angleZ, boolean ispublic, boolean global)  
Constructor Description

Method Summary

All Methods Instance Methods Concrete Methods Deprecated Methods 
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.
it may be removed/renamed in future.
boolean updateDynamicPropertiesStructural​(boolean publicOnly)  
Modifier and Type Method Description

Methods inherited from class com.anylogic.engine.presentation.Light3DSpot

clone, getAngleX, getAngleZ, getConstantAttenuation, getCutOffAngle, getDropOffRate, getLinearAttenuation, getQuadraticAttenuation, getX, getY, getZ, setAngleX, setAngleZ, setAttenuation, setConstantAttenuation, setCutOffAngle, setDropOffRate, setLinearAttenuation, setPos, setQuadraticAttenuation, setX, setY, setZ

Methods inherited from class com.anylogic.engine.presentation.Light3D

executeUserAction, findSVGElement, getAmbientColor, getDiffuseColor, getGroup, getName, getPresentable, getSpecularColor, getSVGId, isEnabled, isGlobal, onAggregatorVisibilityChanged, removeSVGFromOwner, resetSVGState, setAmbientColor, setDiffuseColor, setEnabled, setGlobal, setSpecularColor, update, updateSVGProperties

Methods inherited from class java.lang.Object

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

Methods inherited from interface com.anylogic.engine.markup.AggregatableAnimationElement

initializeInternal, postInitialize

Constructor Detail

CarHeadlight

public CarHeadlight​(double x,
                    double y,
                    double z)

CarHeadlight

public CarHeadlight​(java.awt.Color baseColor,
                    double x,
                    double y,
                    double z,
                    boolean ispublic,
                    boolean global)

CarHeadlight

public CarHeadlight​(java.awt.Color baseColor,
                    double x,
                    double y,
                    double z,
                    double angleX,
                    double angleZ,
                    boolean ispublic,
                    boolean global)

Method Detail

updateDynamicPropertiesStructural

@AnyLogicInternalAPI
public boolean updateDynamicPropertiesStructural​(boolean publicOnly)
Returns:
true if update was done (usually for visible elements, respecting public flag etc.)

getLevel

public Level getLevel()
Returns the level containing this shape. The returned value is null for shapes in the experiments.
Specified by:
getLevel in interface HasLevel
Returns:
the level containing this shape

setLevel

@AnyLogicInternalAPI
public void setLevel​(Level level)
This method is internal and shouldn't be called by user.
it may be removed/renamed in future. Please use Level#add(Shape) instead.
Specified by:
setLevel in interface LevelElement

restoreOwner

@AnyLogicInternalCodegenAPI
@Deprecated
public final void restoreOwner​(java.lang.Object owner)
Deprecated.
This method normally should not be called by user
This method restores owner of this object
The method is used in snapshot saving/loading
Specified by:
restoreOwner in interface com.anylogic.engine.internal.Child
Parameters:
owner - owner of this object, usually Agent, Experiment or ShapeGroup

setContextReference_xjal

@AnyLogicInternalAPI
@Deprecated
public void setContextReference_xjal​(Presentable contextReference)
Deprecated.
How can we improve this article?