|
|||||||||
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.PointLightRetained
class PointLightRetained
A Retained PointLight source.
Field Summary | |
---|---|
(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
|
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 | |
---|---|
PointLightRetained()
|
Method Summary | |
---|---|
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)
|
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 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
Constructor Detail |
---|
PointLightRetained()
Method Detail |
---|
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 LightRetained
void setLive(SetLiveState s)
setLive
in class LightRetained
void doSetLive(SetLiveState s)
SceneGraphObjectRetained
doSetLive
in class NodeRetained
J3dMessage initMessage(int num)
initMessage
in class LightRetained
void updateMirrorObject(java.lang.Object[] objs)
updateMirrorObject
in class LightRetained
void validateAttenuationInEc(double vworldToCoexistenceScale)
protected java.lang.Object clone()
LightRetained
clone
in class LightRetained
void updateTransformChange()
updateTransformChange
in class LightRetained
void sendMessage(int attrMask, java.lang.Object attr)
sendMessage
in class LightRetained
void mergeTransform(TransformGroupRetained xform)
mergeTransform
in class LightRetained
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |