|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.xj.anylogic.engine.presentation.Light3D
com.xj.anylogic.engine.presentation.Light3DDirectional
public class Light3DDirectional
3D directional light, may be added to 3D groups for scene lighting
Directional source of light is located in some infinitely distant point.
It shines in the specified direction.
You can think of a directional source of light as the Sun.
Lighting is performed along the given direction which is
specified using 2 angles: orientation around X
and Z axes.
Light3D,
Serialized Form| Constructor Summary | |
|---|---|
Light3DDirectional(boolean ispublic,
double angleX,
double angleZ,
java.awt.Color diffuseColor,
java.awt.Color specularColor,
java.awt.Color ambientColor,
boolean global)
Creates new 3D directional light |
|
| Method Summary | |
|---|---|
Light3DDirectional |
clone()
Creates and returns a copy of this light (i.e. new light instance). |
Element3D_xjal |
get3DElement_xjal()
This method is internal and shouldn't be accessed by user. |
float |
getAngleX()
Returns the orientation of the light around X axis (CW, from +Y to +Z). |
float |
getAngleZ()
Returns the orientation of the light around Z axis (CW, from +X to +Y). |
void |
restoreOwner(java.lang.Object owner)
This method normally should not be called by user This method restores owner of this object The method is used in snapshot saving/loading |
void |
set3DElement_xjal(Element3D_xjal element3D)
This method is internal and shouldn't be accessed by user. |
void |
setAngleX(double angleX)
Sets the orientation of the light around X axis (CW, from +Y to +Z). |
void |
setAngleZ(double angleZ)
Sets the orientation of the light around Z axis (CW, from +X to +Y). |
void |
setContextReference_xjal(Presentable contextReference)
This method is internal and shouldn't be accessed by user. |
| Methods inherited from class com.xj.anylogic.engine.presentation.Light3D |
|---|
getAmbientColor, getDiffuseColor, getGroup, getName, getPresentable, getSpecularColor, isEnabled, isGlobal, setAmbientColor, setDiffuseColor, setEnabled, setGlobal, setSpecularColor, update |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Light3DDirectional(boolean ispublic,
double angleX,
double angleZ,
java.awt.Color diffuseColor,
java.awt.Color specularColor,
java.awt.Color ambientColor,
boolean global)
ispublic - if true, the light persists on container's presentationangleX - the orientation around X axis (CW, from +Y to +Z), in radiansangleZ - the orientation around Z axis (CW, from +X to +Y), in radiansdiffuseColor - 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 in| Method Detail |
|---|
public float getAngleZ()
public void setAngleZ(double angleZ)
angleZ - the new value of orientation around Z axis (CW, from +X to +Y),
in radianspublic float getAngleX()
public void setAngleX(double angleX)
angleX - the new value of orientation around X axis (CW, from +Y to +Z),
in radianspublic final Light3DDirectional clone()
Light3D
clone in class Light3Dpublic final void restoreOwner(java.lang.Object owner)
restoreOwner in interface com.xj.anylogic.engine.internal.Childowner - owner of this object, usually ActiveObject,
Experiment or
ShapeGrouppublic void setContextReference_xjal(Presentable contextReference)
com.xj.anylogic.engine.internal.presentation.WorldObject3D_xjal
setContextReference_xjal in interface com.xj.anylogic.engine.internal.presentation.WorldObject3D_xjalpublic void set3DElement_xjal(Element3D_xjal element3D)
com.xj.anylogic.engine.internal.presentation.Accessor3D_xjal
set3DElement_xjal in interface com.xj.anylogic.engine.internal.presentation.Accessor3D_xjalpublic Element3D_xjal get3DElement_xjal()
com.xj.anylogic.engine.internal.presentation.Accessor3D_xjal
get3DElement_xjal in interface com.xj.anylogic.engine.internal.presentation.Accessor3D_xjal
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||