|
|||||||||
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.ShaderAttributeRetained
javax.media.j3d.ShaderAttributeObjectRetained
abstract class ShaderAttributeObjectRetained
The ShaderAttributeObjectRetained class is an abstract class that encapsulates a uniform shader attribute whose value is specified explicitly.
Nested Class Summary | |
---|---|
(package private) static class |
ShaderAttributeObjectRetained.AttrWrapper
Base wrapper class for subclasses that are used to store a copy of the user-specified shader attribute value. |
Field Summary | |
---|---|
(package private) ShaderAttributeObjectRetained.AttrWrapper |
attrWrapper
|
private java.lang.Class |
baseClass
|
(package private) static java.lang.Class[] |
classTable
|
(package private) static java.lang.Class[] |
classTableArr
|
private int |
classType
|
(package private) static int |
TYPE_FLOAT
|
(package private) static int |
TYPE_INTEGER
|
(package private) static int |
TYPE_MATRIX3F
|
(package private) static int |
TYPE_MATRIX4F
|
(package private) static int |
TYPE_TUPLE2F
|
(package private) static int |
TYPE_TUPLE2I
|
(package private) static int |
TYPE_TUPLE3F
|
(package private) static int |
TYPE_TUPLE3I
|
(package private) static int |
TYPE_TUPLE4F
|
(package private) static int |
TYPE_TUPLE4I
|
Fields inherited from class javax.media.j3d.ShaderAttributeRetained |
---|
attrName |
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 | |
---|---|
ShaderAttributeObjectRetained()
Package scope constructor |
Method Summary | |
---|---|
(package private) abstract int |
computeClassType(java.lang.Object value)
Computes the base class from the specified object. |
(package private) abstract ShaderAttributeObjectRetained.AttrWrapper |
createAttrWrapper(java.lang.Object value,
int classType)
Creates an attribute wrapper object of the specified class type, and stores the specified object. |
(package private) void |
createObjectData(java.lang.Object value)
|
(package private) abstract java.lang.Class |
getBaseClass(int classType)
Returns the base class represented by the specified class type. |
(package private) int |
getClassType()
|
(package private) java.lang.Object |
getValue()
Retrieves the value of this shader attribute. |
(package private) java.lang.Class |
getValueClass()
Retrieves the base class of the value of this shader attribute. |
(package private) void |
handleFrequencyChange(int bit)
|
(package private) void |
initMirrorObject()
Initializes a mirror object. |
(package private) void |
initValue(java.lang.Object value)
|
(package private) void |
sendMessage(int attrMask,
java.lang.Object attr)
|
(package private) void |
setClassType(int classType)
|
(package private) void |
setFrequencyChangeMask(int bit,
int mask)
|
(package private) void |
setValue(java.lang.Object value)
Sets the value of this shader attribute to the specified value. |
(package private) void |
updateMirrorObject(int component,
java.lang.Object value)
Update the "component" field of the mirror object with the given "value" |
Methods inherited from class javax.media.j3d.ShaderAttributeRetained |
---|
getAttributeName, initializeAttrName |
Methods inherited from class javax.media.j3d.NodeComponentRetained |
---|
addAMirrorUser, addUser, clearLive, clone, copyMirrorUsers, createMirrorObject, decRefCnt, doSetLive, getDuplicateOnCloneTree, getInImmCtx, incRefCnt, notifyUsers, removeAMirrorUser, removeMirrorUsers, removeUser, set, setDuplicateOnCloneTree, setInImmCtx, setLive |
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 int classType
private java.lang.Class baseClass
ShaderAttributeObjectRetained.AttrWrapper attrWrapper
static final int TYPE_INTEGER
static final int TYPE_FLOAT
static final int TYPE_TUPLE2I
static final int TYPE_TUPLE2F
static final int TYPE_TUPLE3I
static final int TYPE_TUPLE3F
static final int TYPE_TUPLE4I
static final int TYPE_TUPLE4F
static final int TYPE_MATRIX3F
static final int TYPE_MATRIX4F
static final java.lang.Class[] classTable
static final java.lang.Class[] classTableArr
Constructor Detail |
---|
ShaderAttributeObjectRetained()
Method Detail |
---|
void createObjectData(java.lang.Object value)
void initValue(java.lang.Object value)
java.lang.Object getValue()
void setValue(java.lang.Object value)
value
- the new value of the shader attribute
java.lang.NullPointerException
- if value is null
java.lang.ClassCastException
- if value is not an instance of
the same base class as the object used to construct this shader
attribute object.java.lang.Class getValueClass()
javax.vecmath.Point3f
, the
returned class would be javax.vecmath.Tuple3f
.
void initMirrorObject()
initMirrorObject
in class ShaderAttributeRetained
void updateMirrorObject(int component, java.lang.Object value)
updateMirrorObject
in class NodeComponentRetained
final void sendMessage(int attrMask, java.lang.Object attr)
abstract int computeClassType(java.lang.Object value)
abstract java.lang.Class getBaseClass(int classType)
abstract ShaderAttributeObjectRetained.AttrWrapper createAttrWrapper(java.lang.Object value, int classType)
int getClassType()
void setClassType(int classType)
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 |