|
||||||||||
| 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.PointLight
org.xith3d.scenegraph.SpotLight
public class SpotLight
SpotLight defines a point light source located at some point in space and radiating in a specific direction.
| Field Summary | |
|---|---|
static float |
DEFAULT_CONCENTRAION
|
static org.openmali.vecmath2.Vector3f |
DEFAULT_DIRECTION
|
static float |
DEFAULT_SPREAD_ANGLE
|
| Fields inherited from class org.xith3d.scenegraph.PointLight |
|---|
DEFAULT_ATTENUATION, DEFAULT_LOCATION |
| Fields inherited from class org.xith3d.scenegraph.Light |
|---|
DEFAULT_COLOR |
| Fields inherited from class org.xith3d.scenegraph.Node |
|---|
bounds, boundsAutoCompute, boundsDirty, globalIgnoreBounds, instanceBoundsTypeHint, parent, transformGroup, untransformedBounds |
| Fields inherited from class org.xith3d.scenegraph.SceneGraphObject |
|---|
XITH3D_USERDATAKEY_OLDUSERDATA |
| Constructor Summary | |
|---|---|
SpotLight()
Constructs a new SpotLight object with a default color of white and default location of (0, 0, 0). |
|
SpotLight(boolean enabled)
Constructs a new SpotLight object with a default color of white and default location of (0, 0, 0). |
|
SpotLight(boolean enabled,
org.openmali.vecmath2.Colorf color,
org.openmali.vecmath2.Tuple3f direction,
Node trackedNode,
float spreadAngle)
Constructs a new SpotLight object with the specified color, location and attenuation. |
|
SpotLight(boolean enabled,
org.openmali.vecmath2.Colorf color,
org.openmali.vecmath2.Tuple3f direction,
Node trackedNode,
org.openmali.vecmath2.Tuple3f attenuation,
float spreadAngle,
float concentration)
Constructs a new SpotLight object with the specified color, location and attenuation. |
|
SpotLight(boolean enabled,
org.openmali.vecmath2.Colorf color,
org.openmali.vecmath2.Tuple3f location,
org.openmali.vecmath2.Tuple3f direction,
float spreadAngle)
Constructs a new SpotLight object with the specified color, location and attenuation. |
|
SpotLight(boolean enabled,
org.openmali.vecmath2.Colorf color,
org.openmali.vecmath2.Tuple3f location,
org.openmali.vecmath2.Tuple3f direction,
org.openmali.vecmath2.Tuple3f attenuation,
float spreadAngle,
float concentration)
Constructs a new SpotLight object with the specified color, location and attenuation. |
|
SpotLight(boolean enabled,
Node trackedNode)
Constructs a new SpotLight object with a default color of white and default location of (0, 0, 0). |
|
SpotLight(org.openmali.vecmath2.Colorf color,
org.openmali.vecmath2.Tuple3f direction,
Node trackedNode,
float spreadAngle)
Constructs a new SpotLight object with the specified color, location and attenuation. |
|
SpotLight(org.openmali.vecmath2.Colorf color,
org.openmali.vecmath2.Tuple3f direction,
Node trackedNode,
org.openmali.vecmath2.Tuple3f attenuation,
float spreadAngle,
float concentration)
Constructs a new SpotLight object with the specified color, location and attenuation. |
|
SpotLight(org.openmali.vecmath2.Colorf color,
org.openmali.vecmath2.Tuple3f location,
org.openmali.vecmath2.Tuple3f direction,
float spreadAngle)
Constructs a new SpotLight object with the specified color, location and attenuation. |
|
SpotLight(org.openmali.vecmath2.Colorf color,
org.openmali.vecmath2.Tuple3f location,
org.openmali.vecmath2.Tuple3f direction,
org.openmali.vecmath2.Tuple3f attenuation,
float spreadAngle,
float concentration)
Constructs a new SpotLight object with the specified color, location and attenuation. |
|
SpotLight(Node trackedNode)
Constructs a new SpotLight object with a default color of white and default location of (0, 0, 0). |
|
| 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. |
float |
getConcentration()
Gets the concentration for this object. |
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. |
float |
getSpreadAngle()
Gets the spread angle for this object. |
float |
getSpreadAngleDeg()
Gets the spread angle for this object. |
void |
setConcentration(float concentration)
Sets the concentration for this object. |
void |
setDirection(float dirX,
float dirY,
float dirZ)
Sets the direction for this object. |
void |
setDirection(org.openmali.vecmath2.Tuple3f direction)
Sets the direction for this object. |
void |
setSpreadAngle(float spread)
Sets the spread angle for this object. |
void |
setSpreadAngleDeg(float spread)
Sets the spread angle for this object. |
| Methods inherited from class org.xith3d.scenegraph.PointLight |
|---|
getAtt, getAttenuation, getAttenuation, getComputedLocation, getLoc, getLocation, getLocation, getTrackedNode, setAttenuation, setAttenuation, setLocation, setLocation, setTrackedNode |
| 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
public static final float DEFAULT_SPREAD_ANGLE
public static final float DEFAULT_CONCENTRAION
| Constructor Detail |
|---|
public SpotLight(boolean enabled,
org.openmali.vecmath2.Colorf color,
org.openmali.vecmath2.Tuple3f location,
org.openmali.vecmath2.Tuple3f direction,
org.openmali.vecmath2.Tuple3f attenuation,
float spreadAngle,
float concentration)
enabled - color - location - direction - attenuation - spreadAngle - concentration -
public SpotLight(org.openmali.vecmath2.Colorf color,
org.openmali.vecmath2.Tuple3f location,
org.openmali.vecmath2.Tuple3f direction,
org.openmali.vecmath2.Tuple3f attenuation,
float spreadAngle,
float concentration)
color - location - direction - attenuation - spreadAngle - concentration -
public SpotLight(boolean enabled,
org.openmali.vecmath2.Colorf color,
org.openmali.vecmath2.Tuple3f location,
org.openmali.vecmath2.Tuple3f direction,
float spreadAngle)
enabled - color - location - direction - spreadAngle -
public SpotLight(org.openmali.vecmath2.Colorf color,
org.openmali.vecmath2.Tuple3f location,
org.openmali.vecmath2.Tuple3f direction,
float spreadAngle)
color - location - direction - spreadAngle - public SpotLight(boolean enabled)
enabled - public SpotLight()
public SpotLight(boolean enabled,
org.openmali.vecmath2.Colorf color,
org.openmali.vecmath2.Tuple3f direction,
Node trackedNode,
org.openmali.vecmath2.Tuple3f attenuation,
float spreadAngle,
float concentration)
enabled - color - direction - trackedNode - attenuation - spreadAngle - concentration -
public SpotLight(org.openmali.vecmath2.Colorf color,
org.openmali.vecmath2.Tuple3f direction,
Node trackedNode,
org.openmali.vecmath2.Tuple3f attenuation,
float spreadAngle,
float concentration)
color - direction - trackedNode - attenuation - spreadAngle - concentration -
public SpotLight(boolean enabled,
org.openmali.vecmath2.Colorf color,
org.openmali.vecmath2.Tuple3f direction,
Node trackedNode,
float spreadAngle)
enabled - color - direction - trackedNode - spreadAngle -
public SpotLight(org.openmali.vecmath2.Colorf color,
org.openmali.vecmath2.Tuple3f direction,
Node trackedNode,
float spreadAngle)
color - direction - trackedNode - spreadAngle -
public SpotLight(boolean enabled,
Node trackedNode)
enabled - trackedNode - public SpotLight(Node trackedNode)
trackedNode - | Method Detail |
|---|
public void setDirection(float dirX,
float dirY,
float dirZ)
dirX - dirY - dirZ - public final void setDirection(org.openmali.vecmath2.Tuple3f direction)
direction - public final org.openmali.vecmath2.Vector3f getDirection()
public final org.openmali.vecmath2.Vector3f getDirection(org.openmali.vecmath2.Vector3f direction)
public final void getComputedDirection(org.openmali.vecmath2.Vector3f direction)
direction - public void setSpreadAngle(float spread)
spread - Spread angle in radianspublic void setSpreadAngleDeg(float spread)
spread - Spread angle in degreespublic final float getSpreadAngle()
public final float getSpreadAngleDeg()
public void setConcentration(float concentration)
concentration - public final float getConcentration()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||