|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xith3d.scenegraph.SceneGraphObject
org.xith3d.scenegraph.Node
org.xith3d.scenegraph.Leaf
org.xith3d.scenegraph.Light
org.xith3d.scenegraph.DirectionalLight
public class DirectionalLight
DirectionalLight defines an oriented light source with an origin at infinity.
| Field Summary | |
|---|---|
static org.openmali.vecmath2.Vector3f |
DEFAULT_DIRECTION
|
| Fields inherited from class org.xith3d.scenegraph.Light |
|---|
DEFAULT_COLOR |
| Fields inherited from class org.xith3d.scenegraph.Node |
|---|
bounds, boundsAutoCompute, boundsDirty, globalIgnoreBounds, instanceBoundsTypeHint, transformGroup, untransformedBounds |
| Fields inherited from class org.xith3d.scenegraph.SceneGraphObject |
|---|
XITH3D_USERDATAKEY_OLDUSERDATA |
| Constructor Summary | |
|---|---|
DirectionalLight()
Constructs a new DirectionalLight object with a default color of white and default direction of toward the screen along the negative z axis. |
|
DirectionalLight(boolean enabled)
Constructs a new DirectionalLight object with a default color of white and default direction of toward the screen along the negative z axis. |
|
DirectionalLight(boolean enabled,
org.openmali.vecmath2.Colorf color,
Node trackedNode)
Constructs a new DirectionalLight object with the specified color and specified direction. |
|
DirectionalLight(boolean enabled,
org.openmali.vecmath2.Colorf color,
Node trackedNode,
org.openmali.vecmath2.Vector3f direction)
Constructs a new DirectionalLight object with the specified color and specified direction. |
|
DirectionalLight(boolean enabled,
org.openmali.vecmath2.Colorf color,
org.openmali.vecmath2.Vector3f direction)
Constructs a new DirectionalLight object with the specified color and specified direction. |
|
DirectionalLight(boolean enabled,
float colorR,
float colorG,
float colorB,
float dirX,
float dirY,
float dirZ)
Constructs a new DirectionalLight object with the specified color and specified direction. |
|
DirectionalLight(boolean enabled,
float colorR,
float colorG,
float colorB,
Node trackedNode)
Constructs a new DirectionalLight object with the specified color and specified direction. |
|
DirectionalLight(boolean enabled,
float colorR,
float colorG,
float colorB,
Node trackedNode,
float dirX,
float dirY,
float dirZ)
Constructs a new DirectionalLight object with the specified color and specified direction. |
|
DirectionalLight(boolean enabled,
Node trackedNode)
Constructs a new DirectionalLight object with a default color of white and default direction of toward the screen along the negative z axis. |
|
DirectionalLight(org.openmali.vecmath2.Colorf color,
Node trackedNode)
Constructs a new DirectionalLight object with the specified color and specified direction. |
|
DirectionalLight(org.openmali.vecmath2.Colorf color,
Node trackedNode,
org.openmali.vecmath2.Vector3f direction)
Constructs a new DirectionalLight object with the specified color and specified direction. |
|
DirectionalLight(org.openmali.vecmath2.Colorf color,
org.openmali.vecmath2.Vector3f direction)
Constructs a new DirectionalLight object with the specified color and specified direction. |
|
DirectionalLight(float colorR,
float colorG,
float colorB,
float dirX,
float dirY,
float dirZ)
Constructs a new DirectionalLight object with the specified color and specified direction. |
|
DirectionalLight(float colorR,
float colorG,
float colorB,
Node trackedNode)
Constructs a new DirectionalLight object with the specified color and specified direction. |
|
DirectionalLight(Node trackedNode)
Constructs a new DirectionalLight object with a default color of white and default direction of toward the screen along the negative z axis. |
|
| Method Summary | |
|---|---|
void |
getComputedDirection(org.openmali.vecmath2.Vector3f direction)
If this light has a tracked-node, the light's direction is transformed by the tracked-node's world-transform. |
protected static org.openmali.vecmath2.Vector3f |
getDir(org.openmali.vecmath2.Vector3f dir)
|
org.openmali.vecmath2.Vector3f |
getDirection()
Gets the direction for this object. |
org.openmali.vecmath2.Vector3f |
getDirection(org.openmali.vecmath2.Vector3f direction)
Gets the direction for this object. |
Node |
getTrackedNode()
|
void |
setDirection(float dirX,
float dirY,
float dirZ)
Sets the direction for this object. |
void |
setDirection(org.openmali.vecmath2.Vector3f direction)
Sets the direction for this object. |
void |
setTrackedNode(Node node)
Sets the Node to be tracked If this is not null, the PointLight's location will not be an absolute one anymore, but relative to the tracked Node's world-transform. |
| Methods inherited from class org.xith3d.scenegraph.Light |
|---|
freeOpenGLResources, getCol, getColor, getInfluencingBoundingLeaf, getInfluencingBounds, getLightID, isEnabled, setColor, setColor, setEnabled, setInfluencingBoundingLeaf, setInfluencingBounds, setPickable, traverse |
| Methods inherited from class org.xith3d.scenegraph.Leaf |
|---|
dump, getPickHost, setPickHost |
| Methods inherited from class org.xith3d.scenegraph.SceneGraphObject |
|---|
getName, getUserData, getUserData, getUserDataMap, isLive, setLive, setName, setUserData, setUserData, setUserDataRecursive, setUserDataRecursive, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final org.openmali.vecmath2.Vector3f DEFAULT_DIRECTION
| Constructor Detail |
|---|
public DirectionalLight(boolean enabled,
float colorR,
float colorG,
float colorB,
float dirX,
float dirY,
float dirZ)
enabled - colorR - colorG - colorB - dirX - dirY - dirZ -
public DirectionalLight(float colorR,
float colorG,
float colorB,
float dirX,
float dirY,
float dirZ)
colorR - colorG - colorB - dirX - dirY - dirZ -
public DirectionalLight(boolean enabled,
org.openmali.vecmath2.Colorf color,
org.openmali.vecmath2.Vector3f direction)
enabled - color - direction -
public DirectionalLight(org.openmali.vecmath2.Colorf color,
org.openmali.vecmath2.Vector3f direction)
color - direction - public DirectionalLight(boolean enabled)
enabled - public DirectionalLight()
public DirectionalLight(boolean enabled,
float colorR,
float colorG,
float colorB,
Node trackedNode,
float dirX,
float dirY,
float dirZ)
enabled - colorR - colorG - colorB - trackedNode -
public DirectionalLight(boolean enabled,
float colorR,
float colorG,
float colorB,
Node trackedNode)
enabled - colorR - colorG - colorB - trackedNode -
public DirectionalLight(float colorR,
float colorG,
float colorB,
Node trackedNode)
colorR - colorG - colorB - trackedNode -
public DirectionalLight(boolean enabled,
org.openmali.vecmath2.Colorf color,
Node trackedNode)
enabled - color - trackedNode -
public DirectionalLight(boolean enabled,
org.openmali.vecmath2.Colorf color,
Node trackedNode,
org.openmali.vecmath2.Vector3f direction)
enabled - color - trackedNode - direction -
public DirectionalLight(org.openmali.vecmath2.Colorf color,
Node trackedNode)
color - trackedNode -
public DirectionalLight(org.openmali.vecmath2.Colorf color,
Node trackedNode,
org.openmali.vecmath2.Vector3f direction)
color - trackedNode - direction -
public DirectionalLight(boolean enabled,
Node trackedNode)
enabled - trackedNode - public DirectionalLight(Node trackedNode)
trackedNode - | Method Detail |
|---|
public void setTrackedNode(Node node)
node - public final Node getTrackedNode()
public void setDirection(float dirX,
float dirY,
float dirZ)
dirX - dirY - dirZ - public final void setDirection(org.openmali.vecmath2.Vector3f direction)
direction - public final org.openmali.vecmath2.Vector3f getDirection()
public final org.openmali.vecmath2.Vector3f getDirection(org.openmali.vecmath2.Vector3f direction)
direction - public final void getComputedDirection(org.openmali.vecmath2.Vector3f direction)
direction - protected static final org.openmali.vecmath2.Vector3f getDir(org.openmali.vecmath2.Vector3f dir)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||