class ShaderAttributeSetRetained extends NodeComponentRetained
| Modifier and Type | Field and Description |
|---|---|
private java.util.Map |
attrs |
(package private) java.lang.Object |
liveStateLock |
changedFrequent, compChanged, duplicateOnCloneTree, mirror, refCnt, refCount, usersDONT_MERGE, inBackgroundGroup, inSetLive, MERGE, MERGE_DONE, mergeFlag, onUpdateList, sourcelistIdx| Constructor and Description |
|---|
ShaderAttributeSetRetained()
Constructs an empty ShaderAttributeSetretained object.
|
| Modifier and Type | Method and Description |
|---|---|
(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) |
addUser, clone, decRefCnt, doSetLive, getDuplicateOnCloneTree, getInImmCtx, incRefCnt, notifyUsers, removeUser, set, setDuplicateOnCloneTree, setInImmCtxclearLive, clearLive, compile, doSetLive, doSetLive, getSource, getVirtualUniverse, isInSetLive, isStatic, markAsLive, merge, mergeTransform, setCompiled, setLive, setLive, setSource, traversegetIdxUsed, incIdxUsedShaderAttributeSetRetained()
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 retrievedCapabilityNotSetException - 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 NodeComponentRetainedvoid addAMirrorUser(Shape3DRetained shape)
addAMirrorUser in class NodeComponentRetainedvoid removeAMirrorUser(Shape3DRetained shape)
removeAMirrorUser in class NodeComponentRetainedvoid removeMirrorUsers(NodeComponentRetained node)
removeMirrorUsers in class NodeComponentRetainedvoid copyMirrorUsers(NodeComponentRetained node)
copyMirrorUsers in class NodeComponentRetainedvoid clearLive(int refCount)
clearLive in class NodeComponentRetainedvoid createMirrorObject()
createMirrorObject in class NodeComponentRetainedvoid initMirrorObject()
initMirrorObject in class NodeComponentRetainedvoid updateMirrorObject(int component,
java.lang.Object value)
updateMirrorObject in class NodeComponentRetainedfinal void sendMessage(int attrMask,
java.lang.Object attr)
void setFrequencyChangeMask(int bit,
int mask)
setFrequencyChangeMask in class NodeComponentRetainedvoid handleFrequencyChange(int bit)
handleFrequencyChange in class SceneGraphObjectRetainedCopyright 1996-2008 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.