class SpotLightRetained extends PointLightRetained
| Modifier and Type | Field and Description |
|---|---|
(package private) static int |
ANGLE_CHANGED |
(package private) float |
concentration
The spot light's concentration.
|
(package private) static int |
CONCENTRATION_CHANGED |
(package private) Vector3f |
direction
The spot light's direction.
|
(package private) static int |
DIRECTION_CHANGED |
(package private) float |
spreadAngle
The spot light's spread angle.
|
(package private) Vector3f |
xformDirection |
attenuation, ATTENUATION_CHANGED, LAST_POINTLIGHT_DEFINED_BIT, linearAttenuationInEc, localToVworldScale, position, POSITION_CHANGED, quadraticAttenuationInEc, xformPositionboundingLeaf, 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 |
|---|
SpotLightRetained() |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.Object |
clone()
Clones only the retained side, internal use only
|
(package private) float |
getConcentration()
Retrieves the spot light's concentration.
|
(package private) void |
getDirection(Vector3f direction)
Retrieves this light's direction and places it in the
vector provided.
|
(package private) float |
getSpreadAngle()
Returns the spot light's spread angle.
|
(package private) void |
initConcentration(float concentration)
Initializes the spot light's concentration.
|
(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 the spot light's direction from the vector provided.
|
(package private) void |
initSpreadAngle(float spreadAngle)
Initializes the spot light's spread angle.
|
(package private) void |
mergeTransform(TransformGroupRetained xform) |
(package private) void |
sendMessage(int attrMask,
java.lang.Object attr) |
(package private) void |
setConcentration(float concentration)
Sets the spot light's concentration.
|
(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 the spot light's direction from the vector provided.
|
(package private) void |
setLive(SetLiveState s) |
(package private) void |
setSpreadAngle(float spreadAngle)
Sets the spot light's spread angle.
|
(package private) void |
update(Context ctx,
int lightSlot,
double scale)
This update function, and its native counterpart,
updates a spot light.
|
(package private) void |
updateMirrorObject(java.lang.Object[] objs)
This update function, and its native counterpart,
updates a directional light.
|
(package private) void |
updateTransformChange() |
doSetLive, getAttenuation, getPosition, initAttenuation, initAttenuation, initMessage, initPosition, initPosition, setAttenuation, setAttenuation, setPosition, setPosition, validateAttenuationInEcaddScope, clearLive, clearMirrorObject, getAllScopes, getColor, getEnable, getInfluencingBoundingLeaf, getInfluencingBounds, getInImmCtx, getMirrorLight, getMirrorObjects, getScope, indexOfScope, initAddScope, initColor, initEnable, initInfluencingBoundingLeaf, initInfluencingBounds, initInsertScope, initMirrorObject, initRemoveAllScopes, initRemoveScope, initRemoveScope, initScope, insertScope, numScopes, removeAllScopes, removeScope, removeScope, setColor, setEnable, setInfluencingBoundingLeaf, setInfluencingBounds, setInImmCtx, setScope, updateBoundingLeaf, updateImmediateMirrorObject, updateImmediateTransformChangeclone, updateBoundscomputeCombineBounds, computeNonLiveLocalToVworld, dirtyBoundsCache, 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
static final int ANGLE_CHANGED
static final int CONCENTRATION_CHANGED
Vector3f direction
Vector3f xformDirection
float spreadAngle
float concentration
void initSpreadAngle(float spreadAngle)
spreadAngle - the light's spread anglevoid setLive(SetLiveState s)
setLive in class PointLightRetainedvoid setSpreadAngle(float spreadAngle)
spreadAngle - the light's spread anglefloat getSpreadAngle()
void initConcentration(float concentration)
concentration - the concentration of the lightvoid setConcentration(float concentration)
concentration - the concentration of the lightfloat getConcentration()
void initDirection(Vector3f direction)
direction - the new direction of the lightvoid setDirection(Vector3f direction)
direction - the new direction of the lightvoid 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 update(Context ctx, int lightSlot, double scale)
update in class PointLightRetainedvoid updateMirrorObject(java.lang.Object[] objs)
updateMirrorObject in class PointLightRetainedprotected java.lang.Object clone()
LightRetainedclone in class PointLightRetainedvoid updateTransformChange()
updateTransformChange in class PointLightRetainedfinal void sendMessage(int attrMask,
java.lang.Object attr)
sendMessage in class PointLightRetainedvoid mergeTransform(TransformGroupRetained xform)
mergeTransform in class PointLightRetainedCopyright 1996-2008 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.