class PointLightRetained extends LightRetained
| Modifier and Type | Field and Description |
|---|---|
(package private) Point3f |
attenuation
The attenuation vector consisting of
constant, linear, and quadratic coefficients.
|
(package private) static int |
ATTENUATION_CHANGED |
(package private) static int |
LAST_POINTLIGHT_DEFINED_BIT |
(package private) float |
linearAttenuationInEc |
(package private) double |
localToVworldScale |
(package private) Point3f |
position |
(package private) static int |
POSITION_CHANGED |
(package private) float |
quadraticAttenuationInEc |
(package private) Point3f |
xformPosition |
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 |
|---|
PointLightRetained() |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.Object |
clone()
Clones only the retained side, internal use only
|
(package private) void |
doSetLive(SetLiveState s)
Makes the internal node live.
|
(package private) void |
getAttenuation(Point3f attenuation)
Retrieves the light's attenuation and places the value in the parameter
specified.
|
(package private) void |
getPosition(Point3f position)
Retrieves this light's position and places it in the
vector provided.
|
(package private) void |
initAttenuation(float constant,
float linear,
float quadratic)
Sets the point light's attenuation.
|
(package private) void |
initAttenuation(Point3f attenuation)
Initializes the point light's attenuation constants.
|
(package private) J3dMessage |
initMessage(int num) |
(package private) void |
initPosition(float x,
float y,
float z)
Initializes this light's position from the three values provided.
|
(package private) void |
initPosition(Point3f position)
Initializes this light's position from the vector provided.
|
(package private) void |
mergeTransform(TransformGroupRetained xform) |
(package private) void |
sendMessage(int attrMask,
java.lang.Object attr) |
(package private) void |
setAttenuation(float constant,
float linear,
float quadratic)
Sets the point light's attenuation.
|
(package private) void |
setAttenuation(Point3f attenuation)
Sets the point light's attenuation constants.
|
(package private) void |
setLive(SetLiveState s) |
(package private) void |
setPosition(float x,
float y,
float z)
Sets this light's position from the three values provided.
|
(package private) void |
setPosition(Point3f position)
Sets this light's position from the vector provided.
|
(package private) void |
update(Context ctx,
int lightSlot,
double scale)
This update function, and its native counterpart,
updates a point light.
|
(package private) void |
updateMirrorObject(java.lang.Object[] objs) |
(package private) void |
updateTransformChange() |
(package private) void |
validateAttenuationInEc(double vworldToCoexistenceScale) |
addScope, 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 POSITION_CHANGED
static final int ATTENUATION_CHANGED
static final int LAST_POINTLIGHT_DEFINED_BIT
Point3f attenuation
Point3f position
Point3f xformPosition
double localToVworldScale
float linearAttenuationInEc
float quadraticAttenuationInEc
void initPosition(Point3f position)
position - the new positionvoid setPosition(Point3f position)
position - the new positionvoid initPosition(float x,
float y,
float z)
x - the new x positiony - the new y positionz - the new z positionvoid setPosition(float x,
float y,
float z)
x - the new x positiony - the new y positionz - the new z positionvoid getPosition(Point3f position)
position - the variable to receive the position vectorvoid initAttenuation(Point3f attenuation)
attenuation - a vector consisting of constant, linear, and quadratic coefficientsvoid setAttenuation(Point3f attenuation)
attenuation - a vector consisting of constant, linear, and quadratic coefficientsvoid initAttenuation(float constant,
float linear,
float quadratic)
constant - the point light's constant attenuationlinear - the linear attenuation of the lightquadratic - the quadratic attenuation of the lightvoid setAttenuation(float constant,
float linear,
float quadratic)
constant - the point light's constant attenuationlinear - the linear attenuation of the lightquadratic - the quadratic attenuation of the lightvoid getAttenuation(Point3f attenuation)
attenuation - the variable that will contain the attenuationvoid update(Context ctx, int lightSlot, double scale)
update in class LightRetainedvoid setLive(SetLiveState s)
setLive in class LightRetainedvoid doSetLive(SetLiveState s)
SceneGraphObjectRetaineddoSetLive in class NodeRetainedJ3dMessage initMessage(int num)
initMessage in class LightRetainedvoid updateMirrorObject(java.lang.Object[] objs)
updateMirrorObject in class LightRetainedvoid validateAttenuationInEc(double vworldToCoexistenceScale)
protected java.lang.Object clone()
LightRetainedclone in class LightRetainedvoid updateTransformChange()
updateTransformChange in class LightRetainedvoid sendMessage(int attrMask,
java.lang.Object attr)
sendMessage in class LightRetainedvoid mergeTransform(TransformGroupRetained xform)
mergeTransform in class LightRetainedCopyright 1996-2008 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.