|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.media.j3d.IndexedObject
javax.media.j3d.SceneGraphObjectRetained
javax.media.j3d.NodeRetained
javax.media.j3d.LeafRetained
javax.media.j3d.LightRetained
javax.media.j3d.DirectionalLightRetained
class DirectionalLightRetained
An infinite directional light source object.
| Field Summary | |
|---|---|
(package private) Vector3f |
direction
|
(package private) static int |
DIRECTION_CHANGED
|
(package private) Vector3f |
xformDirection
|
| Fields inherited from class javax.media.j3d.LightRetained |
|---|
boundingLeaf, BOUNDINGLEAF_CHANGED, BOUNDS_CHANGED, CLEAR_MIRROR, color, COLOR_CHANGED, ENABLE_CHANGED, environmentSets, inImmCtx, INIT_MIRROR, isNeeded, isScoped, isViewScoped, key, LAST_DEFINED_BIT, lightDirty, lightOn, lightType, mirrorLights, newlyAddedMirrorLights, numMirrorLights, region, regionOfInfluence, SCOPE_CHANGED, scopes, sgLight, sgLightDirty, targetThreads, tempKey |
| Fields inherited from class javax.media.j3d.LeafRetained |
|---|
boundsDirty, switchState |
| Fields inherited from class javax.media.j3d.SceneGraphObjectRetained |
|---|
DONT_MERGE, inBackgroundGroup, inSetLive, MERGE, MERGE_DONE, mergeFlag, onUpdateList, source |
| Fields inherited from class javax.media.j3d.IndexedObject |
|---|
listIdx |
| Constructor Summary | |
|---|---|
DirectionalLightRetained()
|
|
| Method Summary | |
|---|---|
protected java.lang.Object |
clone()
Clones only the retained side, internal use only |
(package private) void |
getDirection(Vector3f direction)
Retrieves this light's direction and places it in the vector provided. |
(package private) void |
initDirection(float x,
float y,
float z)
Initializes this light's direction from the three values provided. |
(package private) void |
initDirection(Vector3f direction)
Initializes this light's direction from the vector provided. |
(package private) void |
mergeTransform(TransformGroupRetained xform)
|
(package private) void |
setDirection(float x,
float y,
float z)
Sets this light's direction from the three values provided. |
(package private) void |
setDirection(Vector3f direction)
Sets this light's direction from the vector provided. |
(package private) void |
setLive(SetLiveState s)
|
(package private) void |
update(Context ctx,
int lightSlot,
double scale)
This method is implemented by each light for rendering context updates. |
(package private) void |
updateMirrorObject(java.lang.Object[] objs)
This update function, and its native counterpart, updates a directional light. |
(package private) void |
updateTransformChange()
|
| Methods inherited from class javax.media.j3d.LeafRetained |
|---|
clone, updateBounds |
| Methods inherited from class javax.media.j3d.SceneGraphObjectRetained |
|---|
clearLive, clearLive, compile, doSetLive, getSource, handleFrequencyChange, isInSetLive, markAsLive, setCompiled, setLive, setSource, traverse |
| Methods inherited from class javax.media.j3d.IndexedObject |
|---|
getIdxUsed, incIdxUsed |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
static final int DIRECTION_CHANGED
Vector3f direction
Vector3f xformDirection
| Constructor Detail |
|---|
DirectionalLightRetained()
| Method Detail |
|---|
void initDirection(Vector3f direction)
direction - the new directionvoid setDirection(Vector3f direction)
direction - the new direction
void initDirection(float x,
float y,
float z)
x - the new x directiony - the new y directionz - the new z direction
void setDirection(float x,
float y,
float z)
x - the new x directiony - the new y directionz - the new z directionvoid getDirection(Vector3f direction)
direction - the variable to receive the direction vectorvoid setLive(SetLiveState s)
setLive in class LightRetainedvoid updateMirrorObject(java.lang.Object[] objs)
updateMirrorObject in class LightRetained
void update(Context ctx,
int lightSlot,
double scale)
LightRetained
update in class LightRetainedprotected java.lang.Object clone()
LightRetained
clone in class LightRetainedvoid updateTransformChange()
updateTransformChange in class LightRetainedvoid mergeTransform(TransformGroupRetained xform)
mergeTransform in class LightRetained
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||