|
|||||||||
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.AppearanceRetained
javax.media.j3d.ShaderAppearanceRetained
class ShaderAppearanceRetained
The Appearance object defines all rendering state that can be set as a component object of a Shape3D node.
Field Summary | |
---|---|
protected boolean |
isMirror
|
(package private) static int |
SHADER_ATTRIBUTE_SET
|
(package private) static int |
SHADER_PROGRAM
|
protected ShaderAttributeSetRetained |
shaderAttributeSet
|
protected ShaderProgramRetained |
shaderProgram
|
Fields inherited from class javax.media.j3d.AppearanceRetained |
---|
ALL_SOLE_USERS, COLOR, coloringAttributes, LINE, lineAttributes, liveStateLock, map, mapAppearance, material, MATERIAL, POINT, pointAttributes, POLYGON, polygonAttributes, RENDERING, renderingAttributes, sgApp, TEXCOORD_GEN, texCoordGeneration, texture, TEXTURE, TEXTURE_ATTR, TEXTURE_UNIT_STATE, textureAttributes, texUnitState, TRANSPARENCY, transparencyAttributes |
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 | |
---|---|
ShaderAppearanceRetained()
|
Method Summary | |
---|---|
(package private) void |
addAMirrorUser(Shape3DRetained shape)
|
(package private) void |
clearLive(int refCount)
This clearLive routine first calls the superclass's method, then it removes itself to the list of lights |
(package private) void |
compile(CompileState compState)
This is the default compile() method, which just marks the sgo as compiled. |
(package private) void |
createMirrorObject()
|
(package private) void |
doSetLive(boolean backgroundGroup,
int refCount)
This method calls the setLive method of all appearance bundle objects. |
boolean |
equals(java.lang.Object obj)
|
(package private) boolean |
equals(ShaderAppearanceRetained sApp)
|
(package private) ShaderAttributeSet |
getShaderAttributeSet()
Retrieves the current ShaderAttributeSet object. |
(package private) ShaderProgram |
getShaderProgram()
Retrieves the current shader program object. |
(package private) void |
handleFrequencyChange(int bit)
|
(package private) void |
initMirrorObject()
This routine updates the mirror appearance for this appearance. |
(package private) boolean |
isOpaque(int geoType)
|
(package private) boolean |
isStatic()
true if component can't be read or written after compile or setlive() |
(package private) void |
removeAMirrorUser(Shape3DRetained shape)
|
(package private) void |
sendMessage(int attrMask,
java.lang.Object attr)
|
(package private) void |
setShaderAttributeSet(ShaderAttributeSet sas)
Sets the ShaderAttributeSet object to the specified object. |
(package private) void |
setShaderProgram(ShaderProgram sp)
Set the shader program object to the specified object. |
(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.NodeComponentRetained |
---|
addUser, clone, copyMirrorUsers, decRefCnt, getDuplicateOnCloneTree, getInImmCtx, incRefCnt, notifyUsers, removeMirrorUsers, removeUser, set, setDuplicateOnCloneTree, setFrequencyChangeMask, setInImmCtx |
Methods inherited from class javax.media.j3d.SceneGraphObjectRetained |
---|
clearLive, clearLive, doSetLive, doSetLive, getSource, getVirtualUniverse, isInSetLive, 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 |
---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
static final int SHADER_PROGRAM
static final int SHADER_ATTRIBUTE_SET
protected ShaderProgramRetained shaderProgram
protected ShaderAttributeSetRetained shaderAttributeSet
protected boolean isMirror
Constructor Detail |
---|
ShaderAppearanceRetained()
Method Detail |
---|
void setShaderProgram(ShaderProgram sp)
shaderProgram
- object that specifies the desired shader program
and shader program attributes.ShaderProgram getShaderProgram()
void setShaderAttributeSet(ShaderAttributeSet sas)
shaderAttributeSet
- object that specifies the desired shader attributesShaderAttributeSet getShaderAttributeSet()
public boolean equals(java.lang.Object obj)
equals
in class AppearanceRetained
boolean equals(ShaderAppearanceRetained sApp)
void createMirrorObject()
createMirrorObject
in class AppearanceRetained
void initMirrorObject()
initMirrorObject
in class AppearanceRetained
void updateMirrorObject(int component, java.lang.Object value)
updateMirrorObject
in class AppearanceRetained
void doSetLive(boolean backgroundGroup, int refCount)
doSetLive
in class AppearanceRetained
void clearLive(int refCount)
clearLive
in class AppearanceRetained
void addAMirrorUser(Shape3DRetained shape)
addAMirrorUser
in class AppearanceRetained
void removeAMirrorUser(Shape3DRetained shape)
removeAMirrorUser
in class AppearanceRetained
final void sendMessage(int attrMask, java.lang.Object attr)
boolean isStatic()
SceneGraphObjectRetained
isStatic
in class AppearanceRetained
void compile(CompileState compState)
SceneGraphObjectRetained
compile
in class AppearanceRetained
boolean isOpaque(int geoType)
isOpaque
in class AppearanceRetained
void handleFrequencyChange(int bit)
handleFrequencyChange
in class AppearanceRetained
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |