javax.media.j3d
Class TextureUnitStateRetained

java.lang.Object
  extended by javax.media.j3d.IndexedObject
      extended by javax.media.j3d.SceneGraphObjectRetained
          extended by javax.media.j3d.NodeComponentRetained
              extended by javax.media.j3d.TextureUnitStateRetained
All Implemented Interfaces:
java.lang.Cloneable

 class TextureUnitStateRetained
extends NodeComponentRetained


Field Summary
(package private) static int ALL_STATE_CHANGED
           
(package private)  TextureAttributesRetained texAttrs
           
(package private) static int TEXCOORD_GEN_CHANGED
           
(package private)  TexCoordGenerationRetained texGen
           
(package private)  TextureRetained texture
           
(package private) static int TEXTURE_ATTRS_CHANGED
           
(package private) static int TEXTURE_CHANGED
           
 
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
TextureUnitStateRetained()
           
 
Method Summary
(package private)  void addAMirrorUser(Shape3DRetained shape)
           
(package private)  void clearLive(int refCount)
           
protected  java.lang.Object clone()
           
(package private)  void compile(CompileState compState)
          This is the default compile() method, which just marks the sgo as compiled.
(package private)  void copyMirrorUsers(NodeComponentRetained node)
           
(package private)  void createMirrorObject()
          Creates and initializes a mirror object, point the mirror object to the retained object if the object is not editable
(package private)  boolean equals(TextureUnitStateRetained ts)
           
(package private)  boolean equivalent(TextureUnitStateRetained tr)
           
(package private)  boolean getInImmCtx()
          This gets the immedate mode context flag
(package private)  TexCoordGeneration getTexCoordGeneration()
           
(package private)  Texture getTexture()
           
(package private)  TextureAttributes getTextureAttributes()
           
(package private)  void handleFrequencyChange(int bit)
           
(package private)  void initMirrorObject()
           
(package private)  void initTexCoordGeneration(TexCoordGeneration texGen)
           
(package private)  void initTexture(Texture texture)
           
(package private)  void initTextureAttributes(TextureAttributes texAttrs)
           
(package private)  void initTextureUnitState(Texture texture, TextureAttributes texAttrs, TexCoordGeneration texGen)
           
(package private)  boolean isLive()
           
(package private)  boolean isStatic()
          true if component can't be read or written after compile or setlive()
(package private)  boolean isTextureEnabled()
           
(package private)  void removeAMirrorUser(Shape3DRetained shape)
           
(package private)  void removeMirrorUsers(NodeComponentRetained node)
           
(package private)  void sendMessage(int attrMask, java.lang.Object attr)
           
protected  void set(TextureRetained texture, TextureAttributesRetained texAttrs, TexCoordGenerationRetained texGen)
           
protected  void set(TextureUnitStateRetained tr)
          set the texture unit state according to the specified texture unit state
(package private)  void setInImmCtx(boolean flag)
          This sets the immedate mode context flag
(package private)  void setLive(boolean backgroundGroup, int refCount)
           
(package private)  void setTexCoordGeneration(TexCoordGeneration texGen)
           
(package private)  void setTexture(Texture texture)
           
(package private)  void setTextureAttributes(TextureAttributes texAttrs)
           
(package private)  void setTextureUnitState(Texture texture, TextureAttributes texAttrs, TexCoordGeneration texGen)
           
(package private)  void setTextureUnitStateComponent(NodeComponent comp, NodeComponentRetained thisComp, int messageOp)
          An abstract method to validate the texture unit state component
(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(int unitIndex, Canvas3D cv, boolean reload, boolean simulate)
           
 
Methods inherited from class javax.media.j3d.NodeComponentRetained
addUser, decRefCnt, doSetLive, getDuplicateOnCloneTree, incRefCnt, notifyUsers, removeUser, set, setDuplicateOnCloneTree, setFrequencyChangeMask
 
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
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TEXTURE_CHANGED

static final int TEXTURE_CHANGED
See Also:
Constant Field Values

TEXTURE_ATTRS_CHANGED

static final int TEXTURE_ATTRS_CHANGED
See Also:
Constant Field Values

TEXCOORD_GEN_CHANGED

static final int TEXCOORD_GEN_CHANGED
See Also:
Constant Field Values

ALL_STATE_CHANGED

static final int ALL_STATE_CHANGED
See Also:
Constant Field Values

texture

TextureRetained texture

texAttrs

TextureAttributesRetained texAttrs

texGen

TexCoordGenerationRetained texGen
Constructor Detail

TextureUnitStateRetained

TextureUnitStateRetained()
Method Detail

setTextureUnitStateComponent

final void setTextureUnitStateComponent(NodeComponent comp,
                                        NodeComponentRetained thisComp,
                                        int messageOp)
An abstract method to validate the texture unit state component


initTextureUnitState

final void initTextureUnitState(Texture texture,
                                TextureAttributes texAttrs,
                                TexCoordGeneration texGen)

setTextureUnitState

final void setTextureUnitState(Texture texture,
                               TextureAttributes texAttrs,
                               TexCoordGeneration texGen)

initTexture

final void initTexture(Texture texture)

setTexture

final void setTexture(Texture texture)

initTextureAttributes

final void initTextureAttributes(TextureAttributes texAttrs)

setTextureAttributes

final void setTextureAttributes(TextureAttributes texAttrs)

initTexCoordGeneration

final void initTexCoordGeneration(TexCoordGeneration texGen)

setTexCoordGeneration

final void setTexCoordGeneration(TexCoordGeneration texGen)

getTexture

Texture getTexture()

getTextureAttributes

TextureAttributes getTextureAttributes()

getTexCoordGeneration

TexCoordGeneration getTexCoordGeneration()

updateNative

void updateNative(int unitIndex,
                  Canvas3D cv,
                  boolean reload,
                  boolean simulate)

createMirrorObject

void createMirrorObject()
Creates and initializes a mirror object, point the mirror object to the retained object if the object is not editable

Overrides:
createMirrorObject in class NodeComponentRetained

initMirrorObject

void initMirrorObject()
Overrides:
initMirrorObject in class NodeComponentRetained

updateMirrorObject

void updateMirrorObject(int component,
                        java.lang.Object value)
Update the "component" field of the mirror object with the given "value"

Overrides:
updateMirrorObject in class NodeComponentRetained

equivalent

boolean equivalent(TextureUnitStateRetained tr)

clone

protected java.lang.Object clone()
Overrides:
clone in class NodeComponentRetained

set

protected void set(TextureUnitStateRetained tr)
set the texture unit state according to the specified texture unit state


set

protected void set(TextureRetained texture,
                   TextureAttributesRetained texAttrs,
                   TexCoordGenerationRetained texGen)

addAMirrorUser

void addAMirrorUser(Shape3DRetained shape)
Overrides:
addAMirrorUser in class NodeComponentRetained

removeAMirrorUser

void removeAMirrorUser(Shape3DRetained shape)
Overrides:
removeAMirrorUser in class NodeComponentRetained

removeMirrorUsers

void removeMirrorUsers(NodeComponentRetained node)
Overrides:
removeMirrorUsers in class NodeComponentRetained

copyMirrorUsers

void copyMirrorUsers(NodeComponentRetained node)
Overrides:
copyMirrorUsers in class NodeComponentRetained

setLive

void setLive(boolean backgroundGroup,
             int refCount)
Overrides:
setLive in class NodeComponentRetained

clearLive

void clearLive(int refCount)
Overrides:
clearLive in class NodeComponentRetained

isStatic

boolean isStatic()
Description copied from class: SceneGraphObjectRetained
true if component can't be read or written after compile or setlive()

Overrides:
isStatic in class SceneGraphObjectRetained

compile

void compile(CompileState compState)
Description copied from class: SceneGraphObjectRetained
This is the default compile() method, which just marks the sgo as compiled.

Overrides:
compile in class SceneGraphObjectRetained

equals

boolean equals(TextureUnitStateRetained ts)

setInImmCtx

void setInImmCtx(boolean flag)
Description copied from class: NodeComponentRetained
This sets the immedate mode context flag

Overrides:
setInImmCtx in class NodeComponentRetained

getInImmCtx

boolean getInImmCtx()
Description copied from class: NodeComponentRetained
This gets the immedate mode context flag

Overrides:
getInImmCtx in class NodeComponentRetained

isLive

boolean isLive()

sendMessage

final void sendMessage(int attrMask,
                       java.lang.Object attr)

isTextureEnabled

boolean isTextureEnabled()

handleFrequencyChange

void handleFrequencyChange(int bit)
Overrides:
handleFrequencyChange in class SceneGraphObjectRetained


Copyright 1996-2008 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.