|
|||||||||
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
javax.media.j3d.SpotLightRetained
class SpotLightRetained
A local spot light source object.
Field Summary | |
---|---|
(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
|
Fields inherited from class javax.media.j3d.PointLightRetained |
---|
attenuation, ATTENUATION_CHANGED, LAST_POINTLIGHT_DEFINED_BIT, linearAttenuationInEc, localToVworldScale, position, POSITION_CHANGED, quadraticAttenuationInEc, 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 | |
---|---|
SpotLightRetained()
|
Method Summary | |
---|---|
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()
|
Methods inherited from class javax.media.j3d.PointLightRetained |
---|
doSetLive, getAttenuation, getPosition, initAttenuation, initAttenuation, initMessage, initPosition, initPosition, setAttenuation, setAttenuation, setPosition, setPosition, validateAttenuationInEc |
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
static final int ANGLE_CHANGED
static final int CONCENTRATION_CHANGED
Vector3f direction
Vector3f xformDirection
float spreadAngle
float concentration
Constructor Detail |
---|
SpotLightRetained()
Method Detail |
---|
void initSpreadAngle(float spreadAngle)
spreadAngle
- the light's spread anglevoid setLive(SetLiveState s)
setLive
in class PointLightRetained
void 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 PointLightRetained
void updateMirrorObject(java.lang.Object[] objs)
updateMirrorObject
in class PointLightRetained
protected java.lang.Object clone()
LightRetained
clone
in class PointLightRetained
void updateTransformChange()
updateTransformChange
in class PointLightRetained
final void sendMessage(int attrMask, java.lang.Object attr)
sendMessage
in class PointLightRetained
void mergeTransform(TransformGroupRetained xform)
mergeTransform
in class PointLightRetained
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |