class DirectionalLightRetained extends LightRetained
| Modifier and Type | Field and Description |
|---|---|
(package private) Vector3f |
direction |
(package private) static int |
DIRECTION_CHANGED |
(package private) Vector3f |
xformDirection |
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, tempKeyboundsDirty, switchStateALTERNATEAPPEARANCE, AMBIENTLIGHT, apiBounds, BACKGROUND, BACKGROUNDSOUND, BEHAVIOR, BOUNDINGLEAF, boundsAutoCompute, BRANCHGROUP, branchGroupPaths, cachedBounds, childIndex, CLIP, collidable, CONESOUND, CONTAINS_VIEWPLATFORM, CURRENT_LOCAL_TO_VWORLD, DECALGROUP, DIRECTIONALLIGHT, EXPONENTIALFOG, geometryBackground, GROUP, inSharedGroup, LAST_LOCAL_TO_VWORLD, LINEARFOG, LINK, localBounds, locale, localToVworld, localToVworldIndex, localToVworldKeys, MODELCLIP, MORPH, nnuId, nodeId, nodeType, NUMNODES, ORDEREDGROUP, orderedId, ORIENTEDSHAPE3D, parent, parentSwitchLink, parentTransformLink, pickable, POINTLIGHT, POINTSOUND, refCount, SHAPE, SHAREDGROUP, SOUNDSCAPE, SPOTLIGHT, staticTransform, SWITCH, TRANSFORMGROUP, universe, validCachedBounds, VIEWPLATFORM, VIEWSPECIFICGROUPDONT_MERGE, inBackgroundGroup, inSetLive, MERGE, MERGE_DONE, mergeFlag, onUpdateList, sourcelistIdx| Constructor and Description |
|---|
DirectionalLightRetained() |
| Modifier and Type | Method and Description |
|---|---|
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() |
addScope, clearLive, clearMirrorObject, getAllScopes, getColor, getEnable, getInfluencingBoundingLeaf, getInfluencingBounds, getInImmCtx, getMirrorLight, getMirrorObjects, getScope, indexOfScope, initAddScope, initColor, initEnable, initInfluencingBoundingLeaf, initInfluencingBounds, initInsertScope, initMessage, initMirrorObject, initRemoveAllScopes, initRemoveScope, initRemoveScope, initScope, insertScope, numScopes, removeAllScopes, removeScope, removeScope, sendMessage, setColor, setEnable, setInfluencingBoundingLeaf, setInfluencingBounds, setInImmCtx, setScope, updateBoundingLeaf, updateImmediateMirrorObject, updateImmediateTransformChangeclone, updateBoundscomputeCombineBounds, computeNonLiveLocalToVworld, dirtyBoundsCache, doSetLive, equal, findCollidableFlags, findPickableFlags, findTransformLevels, getBounds, getBoundsAutoCompute, getCollidable, getCurrentLocalToVworld, getCurrentLocalToVworld, getCurrentLocalToVworld, getEffectiveBounds, getId, getLastLocalToVworld, getLastLocalToVworld, getLastLocalToVworld, getLocalBounds, getLocale, getLocalToVworld, getLocalToVworld, getLocalToVworld, getParent, getPickable, getVirtualUniverse, isStatic, merge, notifySceneGraphChanged, processViewSpecificInfo, recombineAbove, removeNodeData, searchGeometryAtoms, setAuxData, setBounds, setBoundsAutoCompute, setCollidable, setNodeData, setParent, setPickable, transformBounds, updateCollidable, updateLocalToVworld, updatePickableclearLive, clearLive, compile, doSetLive, getSource, handleFrequencyChange, isInSetLive, markAsLive, setCompiled, setLive, setSource, traversegetIdxUsed, incIdxUsedstatic final int DIRECTION_CHANGED
Vector3f direction
Vector3f xformDirection
void initDirection(Vector3f direction)
direction - the new directionvoid setDirection(Vector3f direction)
direction - the new directionvoid initDirection(float x,
float y,
float z)
x - the new x directiony - the new y directionz - the new z directionvoid 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 LightRetainedvoid update(Context ctx, int lightSlot, double scale)
LightRetainedupdate in class LightRetainedprotected java.lang.Object clone()
LightRetainedclone in class LightRetainedvoid updateTransformChange()
updateTransformChange in class LightRetainedvoid mergeTransform(TransformGroupRetained xform)
mergeTransform in class LightRetainedCopyright 1996-2008 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.