|
|||||||||
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.NodeComponentRetained
javax.media.j3d.ShaderAttributeSetRetained
class ShaderAttributeSetRetained
The ShaderAttributeSet object provides uniform attributes to shader programs.
Field Summary | |
---|---|
private java.util.Map |
attrs
|
(package private) java.lang.Object |
liveStateLock
|
Fields inherited from class javax.media.j3d.NodeComponentRetained |
---|
changedFrequent, compChanged, duplicateOnCloneTree, mirror, refCnt, refCount, users |
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 | |
---|---|
ShaderAttributeSetRetained()
Constructs an empty ShaderAttributeSetretained object. |
Method Summary | |
---|---|
(package private) void |
addAMirrorUser(Shape3DRetained shape)
|
(package private) void |
clear()
Removes all shader attributes from the attributes set. |
(package private) void |
clearLive(int refCount)
|
(package private) void |
copyMirrorUsers(NodeComponentRetained node)
|
(package private) void |
createMirrorObject()
|
(package private) ShaderAttribute |
get(java.lang.String attrName)
Retrieves the shader attribute with the specified attrName from the attributes set. |
(package private) ShaderAttribute[] |
getAll()
Returns a shallow copy of the attributes set. |
(package private) java.util.Map |
getAttrs()
|
(package private) void |
handleFrequencyChange(int bit)
|
(package private) void |
initMirrorObject()
|
(package private) void |
put(ShaderAttribute attr)
Adds the specified shader attribute to the attributes set. |
(package private) void |
remove(ShaderAttribute attr)
Removes the specified shader attribute from the attributes set. |
(package private) void |
remove(java.lang.String attrName)
Removes the shader attribute with the specified attrName from the attributes set. |
(package private) void |
removeAMirrorUser(Shape3DRetained shape)
|
(package private) void |
removeMirrorUsers(NodeComponentRetained node)
|
(package private) void |
sendMessage(int attrMask,
java.lang.Object attr)
|
(package private) void |
setFrequencyChangeMask(int bit,
int mask)
|
(package private) void |
setLive(boolean backgroundGroup,
int refCount)
|
(package private) int |
size()
Returns the number of elements in the attributes set. |
(package private) void |
updateMirrorObject(int component,
java.lang.Object value)
Update the "component" field of the mirror object with the given "value" |
(package private) void |
updateNative(Canvas3D cv,
ShaderProgramRetained shaderProgram)
|
Methods inherited from class javax.media.j3d.NodeComponentRetained |
---|
addUser, clone, decRefCnt, doSetLive, getDuplicateOnCloneTree, getInImmCtx, incRefCnt, notifyUsers, removeUser, set, setDuplicateOnCloneTree, setInImmCtx |
Methods inherited from class javax.media.j3d.SceneGraphObjectRetained |
---|
clearLive, clearLive, compile, doSetLive, doSetLive, getSource, getVirtualUniverse, isInSetLive, isStatic, markAsLive, merge, mergeTransform, setCompiled, setLive, 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 |
---|
private java.util.Map attrs
java.lang.Object liveStateLock
Constructor Detail |
---|
ShaderAttributeSetRetained()
Method Detail |
---|
void put(ShaderAttribute attr)
attr
- the shader attribute to be added to the setShaderAttribute get(java.lang.String attrName)
attrName
from the attributes set. If attrName does
not exist in the attributes set, null is returned.
attrName
- the name of the shader attribute to be retrieved
CapabilityNotSetException
- if appropriate capability is
not set and this object is part of live or compiled scene graphvoid remove(java.lang.String attrName)
attrName
from the attributes set. If attrName does
not exist in the attributes set then nothing happens.
attrName
- the name of the shader attribute to be removedvoid remove(ShaderAttribute attr)
removeAttribute(String)
.
attr
- the shader attribute to be removedvoid clear()
ShaderAttribute[] getAll()
int size()
void updateNative(Canvas3D cv, ShaderProgramRetained shaderProgram)
java.util.Map getAttrs()
void setLive(boolean backgroundGroup, int refCount)
setLive
in class NodeComponentRetained
void addAMirrorUser(Shape3DRetained shape)
addAMirrorUser
in class NodeComponentRetained
void removeAMirrorUser(Shape3DRetained shape)
removeAMirrorUser
in class NodeComponentRetained
void removeMirrorUsers(NodeComponentRetained node)
removeMirrorUsers
in class NodeComponentRetained
void copyMirrorUsers(NodeComponentRetained node)
copyMirrorUsers
in class NodeComponentRetained
void clearLive(int refCount)
clearLive
in class NodeComponentRetained
void createMirrorObject()
createMirrorObject
in class NodeComponentRetained
void initMirrorObject()
initMirrorObject
in class NodeComponentRetained
void updateMirrorObject(int component, java.lang.Object value)
updateMirrorObject
in class NodeComponentRetained
final void sendMessage(int attrMask, java.lang.Object attr)
void setFrequencyChangeMask(int bit, int mask)
setFrequencyChangeMask
in class NodeComponentRetained
void handleFrequencyChange(int bit)
handleFrequencyChange
in class SceneGraphObjectRetained
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |