|
||||||||||
| 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
public class PointLight
PointLight defines a point light source located at some point in space and radiating in all directions.
| Field Summary | |
|---|---|
static org.openmali.vecmath2.Tuple3f |
DEFAULT_ATTENUATION
|
static org.openmali.vecmath2.Point3f |
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 | |
|---|---|
PointLight()
Constructs a new PointLight object with a default color of white and default location of (0,0,0). |
|
PointLight(boolean enabled)
Constructs a new PointLight object with a default color of white and default location of (0,0,0). |
|
PointLight(boolean enabled,
org.openmali.vecmath2.Colorf color,
Node trackedNode,
float attenuation)
Constructs a new PointLight object with the specified color, location and attenuation. |
|
PointLight(boolean enabled,
org.openmali.vecmath2.Colorf color,
Node trackedNode,
org.openmali.vecmath2.Tuple3f attenuation)
Constructs a new PointLight object with the specified color, location and attenuation. |
|
PointLight(boolean enabled,
org.openmali.vecmath2.Colorf color,
org.openmali.vecmath2.Tuple3f location,
float attenuation)
Constructs a new PointLight object with the specified color, location and attenuation. |
|
PointLight(boolean enabled,
org.openmali.vecmath2.Colorf color,
org.openmali.vecmath2.Tuple3f location,
org.openmali.vecmath2.Tuple3f attenuation)
Constructs a new PointLight object with the specified color, location and attenuation. |
|
PointLight(boolean enabled,
float colorR,
float colorG,
float colorB,
float locX,
float locY,
float locZ,
float attenuation)
Constructs a new PointLight object with the specified color, location and attenuation. |
|
PointLight(boolean enabled,
float colorR,
float colorG,
float colorB,
float locX,
float locY,
float locZ,
float attenuationConstant,
float attenuationLinear,
float attenuationQuadratic)
Constructs a new PointLight object with the specified color, location and attenuation. |
|
PointLight(boolean enabled,
float colorR,
float colorG,
float colorB,
Node trackedNode,
float attenuation)
Constructs a new PointLight object with the specified color, location and attenuation. |
|
PointLight(boolean enabled,
float colorR,
float colorG,
float colorB,
Node trackedNode,
float attenuationConstant,
float attenuationLinear,
float attenuationQuadratic)
Constructs a new PointLight object with the specified color, location and attenuation. |
|
PointLight(boolean enabled,
Node trackedNode)
Constructs a new PointLight object with a default color of white and default location of (0,0,0). |
|
PointLight(org.openmali.vecmath2.Colorf color,
Node trackedNode,
float attenuation)
Constructs a new PointLight object with the specified color, location and attenuation. |
|
PointLight(org.openmali.vecmath2.Colorf color,
Node trackedNode,
org.openmali.vecmath2.Tuple3f attenuation)
Constructs a new PointLight object with the specified color, location and attenuation. |
|
PointLight(org.openmali.vecmath2.Colorf color,
org.openmali.vecmath2.Tuple3f location,
float attenuation)
Constructs a new PointLight object with the specified color, location and attenuation. |
|
PointLight(org.openmali.vecmath2.Colorf color,
org.openmali.vecmath2.Tuple3f location,
org.openmali.vecmath2.Tuple3f attenuation)
Constructs a new PointLight object with the specified color, location and attenuation. |
|
PointLight(float colorR,
float colorG,
float colorB,
float locX,
float locY,
float locZ,
float attenuation)
Constructs a new PointLight object with the specified color, location and attenuation. |
|
PointLight(float colorR,
float colorG,
float colorB,
float locX,
float locY,
float locZ,
float attenuationConstant,
float attenuationLinear,
float attenuationQuadratic)
Constructs a new PointLight object with the specified color, location and attenuation. |
|
PointLight(float colorR,
float colorG,
float colorB,
Node trackedNode,
float attenuation)
Constructs a new PointLight object with the specified color, location and attenuation. |
|
PointLight(float colorR,
float colorG,
float colorB,
Node trackedNode,
float attenuationConstant,
float attenuationLinear,
float attenuationQuadratic)
Constructs a new PointLight object with the specified color, location and attenuation. |
|
| Method Summary | ||
|---|---|---|
protected static org.openmali.vecmath2.Tuple3f |
getAtt(org.openmali.vecmath2.Tuple3f att)
|
|
org.openmali.vecmath2.Tuple3f |
getAttenuation()
Gets the attenuation for this object. |
|
org.openmali.vecmath2.Tuple3f |
getAttenuation(org.openmali.vecmath2.Tuple3f attenuation)
Gets the attenuation for this object. |
|
void |
getComputedLocation(org.openmali.vecmath2.Point3f location)
If this light has a tracked-node, the light's location is transformed by the tracked-node's world-transform. |
|
protected static org.openmali.vecmath2.Tuple3f |
getLoc(org.openmali.vecmath2.Tuple3f loc)
|
|
org.openmali.vecmath2.Point3f |
getLocation()
Gets the location for this object. |
|
|
getLocation(T location)
Gets the location for this object. |
|
Node |
getTrackedNode()
|
|
org.openmali.vecmath2.Tuple3f |
setAttenuation(float attConstant,
float attLinear,
float attQuadratic)
Sets the attenuation for this object. |
|
org.openmali.vecmath2.Tuple3f |
setAttenuation(org.openmali.vecmath2.Tuple3f attenuation)
Sets the attenuation for this object. |
|
org.openmali.vecmath2.Point3f |
setLocation(float x,
float y,
float z)
Sets the location for this object. |
|
org.openmali.vecmath2.Point3f |
setLocation(org.openmali.vecmath2.Tuple3f location)
Sets the location 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.Point3f DEFAULT_LOCATION
public static final org.openmali.vecmath2.Tuple3f DEFAULT_ATTENUATION
| Constructor Detail |
|---|
public PointLight(boolean enabled,
float colorR,
float colorG,
float colorB,
float locX,
float locY,
float locZ,
float attenuationConstant,
float attenuationLinear,
float attenuationQuadratic)
enabled - colorR - colorG - colorB - locX - locY - locZ - attenuationConstant - attenuationLinear - attenuationQuadratic -
public PointLight(float colorR,
float colorG,
float colorB,
float locX,
float locY,
float locZ,
float attenuationConstant,
float attenuationLinear,
float attenuationQuadratic)
colorR - colorG - colorB - locX - locY - locZ - attenuationConstant - attenuationLinear - attenuationQuadratic -
public PointLight(boolean enabled,
float colorR,
float colorG,
float colorB,
float locX,
float locY,
float locZ,
float attenuation)
enabled - colorR - colorG - colorB - locX - locY - locZ - attenuation -
public PointLight(float colorR,
float colorG,
float colorB,
float locX,
float locY,
float locZ,
float attenuation)
colorR - colorG - colorB - locX - locY - locZ - attenuation -
public PointLight(boolean enabled,
org.openmali.vecmath2.Colorf color,
org.openmali.vecmath2.Tuple3f location,
org.openmali.vecmath2.Tuple3f attenuation)
enabled - color - location - attenuation -
public PointLight(org.openmali.vecmath2.Colorf color,
org.openmali.vecmath2.Tuple3f location,
org.openmali.vecmath2.Tuple3f attenuation)
color - location - attenuation -
public PointLight(boolean enabled,
org.openmali.vecmath2.Colorf color,
org.openmali.vecmath2.Tuple3f location,
float attenuation)
enabled - color - location - attenuation -
public PointLight(org.openmali.vecmath2.Colorf color,
org.openmali.vecmath2.Tuple3f location,
float attenuation)
color - location - attenuation -
public PointLight(boolean enabled,
float colorR,
float colorG,
float colorB,
Node trackedNode,
float attenuationConstant,
float attenuationLinear,
float attenuationQuadratic)
enabled - colorR - colorG - colorB - trackedNode - attenuationConstant - attenuationLinear - attenuationQuadratic -
public PointLight(float colorR,
float colorG,
float colorB,
Node trackedNode,
float attenuationConstant,
float attenuationLinear,
float attenuationQuadratic)
colorR - colorG - colorB - trackedNode - attenuationConstant - attenuationLinear - attenuationQuadratic -
public PointLight(boolean enabled,
float colorR,
float colorG,
float colorB,
Node trackedNode,
float attenuation)
enabled - colorR - colorG - colorB - trackedNode - attenuation -
public PointLight(float colorR,
float colorG,
float colorB,
Node trackedNode,
float attenuation)
colorR - colorG - colorB - trackedNode - attenuation -
public PointLight(boolean enabled,
org.openmali.vecmath2.Colorf color,
Node trackedNode,
org.openmali.vecmath2.Tuple3f attenuation)
enabled - color - trackedNode - attenuation -
public PointLight(org.openmali.vecmath2.Colorf color,
Node trackedNode,
org.openmali.vecmath2.Tuple3f attenuation)
color - trackedNode - attenuation -
public PointLight(boolean enabled,
org.openmali.vecmath2.Colorf color,
Node trackedNode,
float attenuation)
enabled - color - trackedNode - attenuation -
public PointLight(org.openmali.vecmath2.Colorf color,
Node trackedNode,
float attenuation)
color - trackedNode - attenuation - public PointLight(boolean enabled)
enabled -
public PointLight(boolean enabled,
Node trackedNode)
enabled - trackedNode - public PointLight()
| Method Detail |
|---|
public void setTrackedNode(Node node)
node - public final Node getTrackedNode()
public org.openmali.vecmath2.Point3f setLocation(float x,
float y,
float z)
x - y - z - public final org.openmali.vecmath2.Point3f setLocation(org.openmali.vecmath2.Tuple3f location)
location - public final org.openmali.vecmath2.Point3f getLocation()
public final <T extends org.openmali.vecmath2.Tuple3f> T getLocation(T location)
location - public final void getComputedLocation(org.openmali.vecmath2.Point3f location)
location -
public org.openmali.vecmath2.Tuple3f setAttenuation(float attConstant,
float attLinear,
float attQuadratic)
attConstant - attLinear - attQuadratic - public final org.openmali.vecmath2.Tuple3f setAttenuation(org.openmali.vecmath2.Tuple3f attenuation)
public final org.openmali.vecmath2.Tuple3f getAttenuation()
public final org.openmali.vecmath2.Tuple3f getAttenuation(org.openmali.vecmath2.Tuple3f attenuation)
attenuation - protected static final org.openmali.vecmath2.Tuple3f getAtt(org.openmali.vecmath2.Tuple3f att)
protected static final org.openmali.vecmath2.Tuple3f getLoc(org.openmali.vecmath2.Tuple3f loc)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||