|
||||||||||
| 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
public abstract class Light
Light defines a common set of attributes that control lights. A light has associated with it a color, a state (on/off), and a Bounds object that specifies the region of influence for the light.
| Field Summary | |
|---|---|
static org.openmali.vecmath2.Colorf |
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 | |
|---|---|
Light()
Constructs a new Light object with a default color of white. |
|
Light(boolean enabled)
Constructs a new Light object with a default color of white. |
|
Light(boolean enabled,
float colorR,
float colorG,
float colorB)
Constructs a new Light object with the specified color. |
|
Light(float colorR,
float colorG,
float colorB)
Constructs a new Light object with the specified color. |
|
| Method Summary | |
|---|---|
void |
freeOpenGLResources(CanvasPeer canvasPeer)
This method frees OpenGL resources (names) for all Nodes in the traversal of this Node(-Group). |
protected static org.openmali.vecmath2.Colorf |
getCol(org.openmali.vecmath2.Colorf col)
|
org.openmali.vecmath2.Colorf |
getColor()
Gets the color for this object. |
BoundingLeaf |
getInfluencingBoundingLeaf()
Sets the influence bounding leaf for this object. |
org.openmali.spatial.bounds.Bounds |
getInfluencingBounds()
Gets the influence bounding region for this object. |
int |
getLightID()
|
boolean |
isEnabled()
Gets the state for this object. |
void |
setColor(org.openmali.vecmath2.Colorf color)
Sets the color for this object. |
void |
setColor(float r,
float g,
float b)
Sets the color for this object. |
void |
setEnabled(boolean enabled)
Sets the state for this object. |
void |
setInfluencingBoundingLeaf(BoundingLeaf boundingLeaf)
Sets the influence bounding leaf for this object. |
void |
setInfluencingBounds(org.openmali.spatial.bounds.Bounds region)
Sets the influence bounding region for this object. |
void |
setPickable(boolean value)
This is a Light. |
boolean |
traverse(DetailedTraversalCallback callback)
Traverses the scenegraph from this node on. |
| 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.Colorf DEFAULT_COLOR
| Constructor Detail |
|---|
public Light(boolean enabled,
float colorR,
float colorG,
float colorB)
enabled - colorR - colorG - colorB -
public Light(float colorR,
float colorG,
float colorB)
colorR - colorG - colorB - public Light(boolean enabled)
enabled - public Light()
| Method Detail |
|---|
public final int getLightID()
public void setEnabled(boolean enabled)
setEnabled in interface org.jagatoo.datatypes.Enableablepublic final boolean isEnabled()
isEnabled in interface org.jagatoo.datatypes.Enableablepublic final void setPickable(boolean value)
setPickable in class Nodevalue - if false, this Node is ignored by picking algorithmspublic void setColor(org.openmali.vecmath2.Colorf color)
public void setColor(float r,
float g,
float b)
public final org.openmali.vecmath2.Colorf getColor()
public void setInfluencingBounds(org.openmali.spatial.bounds.Bounds region)
public final org.openmali.spatial.bounds.Bounds getInfluencingBounds()
public void setInfluencingBoundingLeaf(BoundingLeaf boundingLeaf)
public final BoundingLeaf getInfluencingBoundingLeaf()
public void freeOpenGLResources(CanvasPeer canvasPeer)
freeOpenGLResources in class Nodepublic boolean traverse(DetailedTraversalCallback callback)
traverse in class Leafcallback - the listener is notified of any traversed Node on the way
protected static final org.openmali.vecmath2.Colorf getCol(org.openmali.vecmath2.Colorf col)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||