|
|||||||||
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
abstract class LightRetained
LightRetained is an abstract class that contains instance variable common to all lights.
Field Summary | |
---|---|
(package private) BoundingLeafRetained |
boundingLeaf
The bounding leaf reference |
(package private) static int |
BOUNDINGLEAF_CHANGED
|
(package private) static int |
BOUNDS_CHANGED
|
(package private) static int |
CLEAR_MIRROR
|
(package private) Color3f |
color
|
(package private) static int |
COLOR_CHANGED
|
(package private) static int |
ENABLE_CHANGED
|
(package private) UnorderList |
environmentSets
A list of all the EnvironmentSets that reference this light. |
(package private) boolean |
inImmCtx
|
(package private) static int |
INIT_MIRROR
|
(package private) boolean |
isNeeded
|
(package private) boolean |
isScoped
|
(package private) boolean |
isViewScoped
|
(package private) HashKey |
key
|
(package private) static int |
LAST_DEFINED_BIT
|
(package private) int |
lightDirty
This bitmask is set when something changes in the light |
(package private) boolean |
lightOn
|
(package private) int |
lightType
|
(package private) LightRetained[] |
mirrorLights
|
(package private) java.util.ArrayList |
newlyAddedMirrorLights
Temporary list of newly added mirror lights, during any setlive |
(package private) int |
numMirrorLights
|
(package private) Bounds |
region
The transformed value of the applicationRegion. |
(package private) Bounds |
regionOfInfluence
The Boundary object defining the lights's region of influence. |
(package private) static int |
SCOPE_CHANGED
|
(package private) java.util.Vector |
scopes
|
(package private) LightRetained |
sgLight
|
(package private) int |
sgLightDirty
|
(package private) static int |
targetThreads
|
(package private) HashKey |
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 | |
---|---|
LightRetained()
|
Method Summary | |
---|---|
(package private) void |
addScope(Group scope)
Appends the specified scope to this node's list of scopes. |
(package private) void |
clearLive(SetLiveState s)
|
(package private) void |
clearMirrorObject(java.lang.Object[] args)
|
protected java.lang.Object |
clone()
Clones only the retained side, internal use only |
(package private) java.util.Enumeration |
getAllScopes()
Returns an enumeration object of the scope |
(package private) void |
getColor(Color3f color)
Retrieves the color of this light. |
(package private) boolean |
getEnable()
Returns the state of the light (on/off). |
(package private) BoundingLeaf |
getInfluencingBoundingLeaf()
Get the Light's region of influence. |
(package private) Bounds |
getInfluencingBounds()
Get the Light's region of influence |
(package private) boolean |
getInImmCtx()
This gets the immedate mode context flag |
(package private) LightRetained |
getMirrorLight(HashKey key)
This gets the mirror light for this light given the key. |
(package private) void |
getMirrorObjects(java.util.ArrayList leafList,
HashKey key)
|
(package private) Group |
getScope(int index)
Returns the scope specified by the index. |
(package private) int |
indexOfScope(Group scope)
Returns the index of the specified scope |
(package private) void |
initAddScope(Group scope)
Appends the specified scope to this node's list of scopes. |
(package private) void |
initColor(Color3f color)
Initialize the color of this light node. |
(package private) void |
initEnable(boolean state)
Initialize the light on or off. |
(package private) void |
initInfluencingBoundingLeaf(BoundingLeaf region)
Initializes the Light's region of influence to the specified Leaf node. |
(package private) void |
initInfluencingBounds(Bounds region)
Initializes the Light's region of influence. |
(package private) void |
initInsertScope(Group scope,
int index)
Inserts the specified scope at specified index. |
(package private) J3dMessage |
initMessage(int num)
|
(package private) void |
initMirrorObject(java.lang.Object[] args)
|
(package private) void |
initRemoveAllScopes()
|
(package private) void |
initRemoveScope(Group scope)
|
(package private) void |
initRemoveScope(int index)
Removes the scope at specified index. |
(package private) void |
initScope(Group scope,
int index)
Initializes the specified scope with the scope provided. |
(package private) void |
insertScope(Group scope,
int index)
Inserts the specified scope at specified index. |
(package private) void |
mergeTransform(TransformGroupRetained xform)
|
(package private) int |
numScopes()
Returns a count of this nodes' scopes. |
(package private) void |
removeAllScopes()
Removes all the scopes from this Light's list of scopes |
(package private) void |
removeScope(Group scope)
Removes the specified scope |
(package private) void |
removeScope(int index)
Removes the scope at specified index. |
(package private) void |
sendMessage(int attrMask,
java.lang.Object attr)
|
(package private) void |
setColor(Color3f color)
Sets the color of this light node and send a message |
(package private) void |
setEnable(boolean state)
Turns the light on or off and send a message |
(package private) void |
setInfluencingBoundingLeaf(BoundingLeaf region)
Set the Light's region of influence to the specified Leaf node. |
(package private) void |
setInfluencingBounds(Bounds region)
Set the Light's region of influence and send a message |
(package private) void |
setInImmCtx(boolean inCtx)
This sets the immedate mode context flag |
(package private) void |
setLive(SetLiveState s)
|
(package private) void |
setScope(Group scope,
int index)
Replaces the specified scope with the scope provided and send a message |
(package private) abstract void |
update(Context ctx,
int lightSlot,
double scale)
This method is implemented by each light for rendering context updates. |
(package private) void |
updateBoundingLeaf()
Note: This routine will only be called on the mirror object - will update the object's cached region and transformed region |
(package private) void |
updateImmediateMirrorObject(java.lang.Object[] objs)
|
(package private) void |
updateImmediateTransformChange()
|
(package private) void |
updateMirrorObject(java.lang.Object[] objs)
|
(package private) void |
updateTransformChange()
|
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 ENABLE_CHANGED
static final int SCOPE_CHANGED
static final int BOUNDS_CHANGED
static final int COLOR_CHANGED
static final int BOUNDINGLEAF_CHANGED
static final int INIT_MIRROR
static final int CLEAR_MIRROR
static final int LAST_DEFINED_BIT
boolean lightOn
Color3f color
java.util.Vector scopes
Bounds regionOfInfluence
BoundingLeafRetained boundingLeaf
Bounds region
int lightDirty
int sgLightDirty
int lightType
boolean isNeeded
boolean inImmCtx
LightRetained sgLight
HashKey key
LightRetained[] mirrorLights
int numMirrorLights
boolean isScoped
HashKey tempKey
UnorderList environmentSets
boolean isViewScoped
java.util.ArrayList newlyAddedMirrorLights
static final int targetThreads
Constructor Detail |
---|
LightRetained()
Method Detail |
---|
void initEnable(boolean state)
state
- true or false to enable or disable the lightvoid setEnable(boolean state)
state
- true or false to enable or disable the lightboolean getEnable()
void initColor(Color3f color)
color
- the value of this new light colorvoid setColor(Color3f color)
color
- the value of this new light colorvoid getColor(Color3f color)
color
- the vector that will receive the color of this lightvoid initScope(Group scope, int index)
scope
- the new scopeindex
- which scope to replacevoid setScope(Group scope, int index)
scope
- the new scopeindex
- which scope to replacevoid initInsertScope(Group scope, int index)
scope
- the new scopeindex
- position to insert new scope atvoid insertScope(Group scope, int index)
scope
- the new scopeindex
- position to insert new scope atvoid initRemoveScope(int index)
index
- which scope to removevoid removeScope(int index)
index
- which scope to removevoid removeScope(Group scope)
scope
- to be removedvoid initRemoveScope(Group scope)
void removeAllScopes()
void initRemoveAllScopes()
Group getScope(int index)
index
- of the scope to be returned
java.util.Enumeration getAllScopes()
void initAddScope(Group scope)
scope
- the scope to add to this node's list of scopesvoid addScope(Group scope)
scope
- the scope to add to this node's list of scopesint numScopes()
int indexOfScope(Group scope)
void initInfluencingBounds(Bounds region)
region
- a region that contains the Light's new region of influencevoid setInfluencingBounds(Bounds region)
region
- a region that contains the Light's new region of influenceBounds getInfluencingBounds()
void initInfluencingBoundingLeaf(BoundingLeaf region)
void setInfluencingBoundingLeaf(BoundingLeaf region)
BoundingLeaf getInfluencingBoundingLeaf()
void setInImmCtx(boolean inCtx)
boolean getInImmCtx()
void initMirrorObject(java.lang.Object[] args)
abstract void update(Context ctx, int lightSlot, double scale)
void updateImmediateMirrorObject(java.lang.Object[] objs)
void updateMirrorObject(java.lang.Object[] objs)
updateMirrorObject
in class LeafRetained
void updateBoundingLeaf()
updateBoundingLeaf
in class LeafRetained
void getMirrorObjects(java.util.ArrayList leafList, HashKey key)
getMirrorObjects
in class LeafRetained
LightRetained getMirrorLight(HashKey key)
void setLive(SetLiveState s)
setLive
in class NodeRetained
J3dMessage initMessage(int num)
void clearLive(SetLiveState s)
clearLive
in class NodeRetained
void clearMirrorObject(java.lang.Object[] args)
protected java.lang.Object clone()
clone
in class SceneGraphObjectRetained
void updateTransformChange()
updateTransformChange
in class LeafRetained
void updateImmediateTransformChange()
void sendMessage(int attrMask, java.lang.Object attr)
void mergeTransform(TransformGroupRetained xform)
mergeTransform
in class NodeRetained
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |