|
|||||||||
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
class AppearanceRetained
The Appearance object defines all rendering state that can be set as a component object of a Shape3D node.
Field Summary | |
---|---|
(package private) static int |
ALL_SOLE_USERS
|
(package private) static int |
COLOR
|
(package private) ColoringAttributesRetained |
coloringAttributes
|
(package private) static int |
LINE
|
(package private) LineAttributesRetained |
lineAttributes
|
(package private) java.lang.Object |
liveStateLock
|
(package private) CompileState |
map
|
(package private) AppearanceRetained |
mapAppearance
|
(package private) MaterialRetained |
material
|
(package private) static int |
MATERIAL
|
(package private) static int |
POINT
|
(package private) PointAttributesRetained |
pointAttributes
|
(package private) static int |
POLYGON
|
(package private) PolygonAttributesRetained |
polygonAttributes
|
(package private) static int |
RENDERING
|
(package private) RenderingAttributesRetained |
renderingAttributes
|
(package private) AppearanceRetained |
sgApp
|
(package private) static int |
TEXCOORD_GEN
|
(package private) TexCoordGenerationRetained |
texCoordGeneration
|
(package private) TextureRetained |
texture
|
(package private) static int |
TEXTURE
|
(package private) static int |
TEXTURE_ATTR
|
(package private) static int |
TEXTURE_UNIT_STATE
|
(package private) TextureAttributesRetained |
textureAttributes
|
(package private) TextureUnitStateRetained[] |
texUnitState
|
(package private) static int |
TRANSPARENCY
|
(package private) TransparencyAttributesRetained |
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 | |
---|---|
AppearanceRetained()
|
Method Summary | |
---|---|
(package private) void |
addAMirrorUser(Shape3DRetained shape)
|
(package private) void |
clearLive(int refCount)
This method calls the clearLive method of all appearance bundle objects. |
(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. |
(package private) boolean |
equals(AppearanceRetained app)
|
boolean |
equals(java.lang.Object obj)
|
(package private) ColoringAttributes |
getColoringAttributes()
Retrieves the current coloringAttributes object. |
(package private) LineAttributes |
getLineAttributes()
Retrieves the current lineAttributes object. |
(package private) Material |
getMaterial()
Retrieve the current material object. |
(package private) PointAttributes |
getPointAttributes()
Retrieves the current pointAttributes object. |
(package private) PolygonAttributes |
getPolygonAttributes()
Retrieves the current polygonAttributes object. |
(package private) RenderingAttributes |
getRenderingAttributes()
Retrieves the current renderingAttributes object. |
(package private) TexCoordGeneration |
getTexCoordGeneration()
Retrieves the current texCoordGeneration object. |
(package private) Texture |
getTexture()
Retrieves the current texture object. |
(package private) TextureAttributes |
getTextureAttributes()
Retrieves the current textureAttributes object. |
(package private) int |
getTextureUnitCount()
Retrieves the length of the texture unit state array from this appearance object. |
(package private) TextureUnitState[] |
getTextureUnitState()
Retrieves the array of texture unit state objects from this Appearance object. |
(package private) TextureUnitState |
getTextureUnitState(int index)
Retrieves the texture unit state object at the specified index within the texture unit state array. |
(package private) TransparencyAttributes |
getTransparencyAttributes()
Retrieves the current transparencyAttributes object. |
(package private) void |
handleFrequencyChange(int bit)
|
int |
hashCode()
Returns the hashcode for this object. |
(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,
boolean visible)
|
(package private) void |
sendRenderingAttributesChangedMessage(boolean visible)
|
(package private) void |
setColoringAttributes(ColoringAttributes coloringAttributes)
Sets the coloringAttrbutes object to the specified object. |
(package private) void |
setLineAttributes(LineAttributes lineAttributes)
Sets the lineAttrbutes object to the specified object. |
(package private) void |
setLive(boolean backgroundGroup,
int refCount)
|
(package private) void |
setMaterial(Material material)
Set the material object to the specified object. |
(package private) void |
setPointAttributes(PointAttributes pointAttributes)
Sets the pointAttrbutes object to the specified object. |
(package private) void |
setPolygonAttributes(PolygonAttributes polygonAttributes)
Sets the polygonAttrbutes object to the specified object. |
(package private) void |
setRenderingAttributes(RenderingAttributes renderingAttributes)
Sets the renderingAttrbutes object to the specified object. |
(package private) void |
setTexCoordGeneration(TexCoordGeneration texGen)
Sets the texCoordGeneration object to the specified object. |
(package private) void |
setTexture(Texture texture)
Sets the texture object to the specified object. |
(package private) void |
setTextureAttributes(TextureAttributes textureAttributes)
Sets the textureAttrbutes object to the specified object. |
(package private) void |
setTextureUnitState(int index,
TextureUnitState state)
|
(package private) void |
setTextureUnitState(TextureUnitState[] stateArray)
Sets the texture unit state array to the specified array. |
(package private) void |
setTransparencyAttributes(TransparencyAttributes transparencyAttributes)
Sets the transparencyAttrbutes 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 |
---|
MaterialRetained material
TextureRetained texture
TexCoordGenerationRetained texCoordGeneration
TextureAttributesRetained textureAttributes
TextureUnitStateRetained[] texUnitState
ColoringAttributesRetained coloringAttributes
TransparencyAttributesRetained transparencyAttributes
RenderingAttributesRetained renderingAttributes
PolygonAttributesRetained polygonAttributes
LineAttributesRetained lineAttributes
PointAttributesRetained pointAttributes
java.lang.Object liveStateLock
CompileState map
AppearanceRetained mapAppearance
static final int MATERIAL
static final int TEXTURE
static final int TEXCOORD_GEN
static final int TEXTURE_ATTR
static final int COLOR
static final int TRANSPARENCY
static final int RENDERING
static final int POLYGON
static final int LINE
static final int POINT
static final int TEXTURE_UNIT_STATE
static final int ALL_SOLE_USERS
AppearanceRetained sgApp
Constructor Detail |
---|
AppearanceRetained()
Method Detail |
---|
void setMaterial(Material material)
material
- object that specifies the desired material
IllegalSharingException
- propertiesMaterial getMaterial()
void setTexture(Texture texture)
texture
- object that specifies the desired texture
map and texture parametersTexture getTexture()
void setTextureAttributes(TextureAttributes textureAttributes)
textureAttributes
- object that specifies the desired texture
attributesTextureAttributes getTextureAttributes()
void setColoringAttributes(ColoringAttributes coloringAttributes)
coloringAttributes
- object that specifies the desired texture
attributesColoringAttributes getColoringAttributes()
void setTransparencyAttributes(TransparencyAttributes transparencyAttributes)
transparencyAttributes
- object that specifies the desired texture
attributesTransparencyAttributes getTransparencyAttributes()
void setRenderingAttributes(RenderingAttributes renderingAttributes)
renderingAttributes
- object that specifies the desired texture
attributesRenderingAttributes getRenderingAttributes()
void setPolygonAttributes(PolygonAttributes polygonAttributes)
polygonAttributes
- object that specifies the desired texture
attributesPolygonAttributes getPolygonAttributes()
void setLineAttributes(LineAttributes lineAttributes)
lineAttributes
- object that specifies the desired texture
attributesLineAttributes getLineAttributes()
void setPointAttributes(PointAttributes pointAttributes)
pointAttributes
- object that specifies the desired texture
attributesPointAttributes getPointAttributes()
void setTexCoordGeneration(TexCoordGeneration texGen)
texCoordGeneration
- object that specifies the texture coordinate
generation parametersTexCoordGeneration getTexCoordGeneration()
void setTextureUnitState(TextureUnitState[] stateArray)
textureUnitState
- array that specifies the texture unit statevoid setTextureUnitState(int index, TextureUnitState state)
TextureUnitState[] getTextureUnitState()
TextureUnitState getTextureUnitState(int index)
int getTextureUnitCount()
void createMirrorObject()
createMirrorObject
in class NodeComponentRetained
void initMirrorObject()
initMirrorObject
in class NodeComponentRetained
void updateMirrorObject(int component, java.lang.Object value)
updateMirrorObject
in class NodeComponentRetained
void setLive(boolean backgroundGroup, int refCount)
setLive
in class NodeComponentRetained
void doSetLive(boolean backgroundGroup, int refCount)
doSetLive
in class NodeComponentRetained
void clearLive(int refCount)
clearLive
in class NodeComponentRetained
boolean isStatic()
SceneGraphObjectRetained
isStatic
in class SceneGraphObjectRetained
void compile(CompileState compState)
SceneGraphObjectRetained
compile
in class SceneGraphObjectRetained
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
boolean equals(AppearanceRetained app)
void addAMirrorUser(Shape3DRetained shape)
addAMirrorUser
in class NodeComponentRetained
void removeAMirrorUser(Shape3DRetained shape)
removeAMirrorUser
in class NodeComponentRetained
final void sendMessage(int attrMask, java.lang.Object attr, boolean visible)
final void sendRenderingAttributesChangedMessage(boolean visible)
boolean isOpaque(int geoType)
void handleFrequencyChange(int bit)
handleFrequencyChange
in class SceneGraphObjectRetained
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |