org.xith3d.scenegraph
Class ProjectiveTextureUnit

java.lang.Object
  extended by org.xith3d.scenegraph.SceneGraphObject
      extended by org.xith3d.scenegraph.NodeComponent
          extended by org.xith3d.scenegraph.TextureUnit
              extended by org.xith3d.scenegraph.ProjectiveTextureUnit
All Implemented Interfaces:
org.jagatoo.datatypes.NamableObject, org.jagatoo.datatypes.NamedObject

public class ProjectiveTextureUnit
extends TextureUnit

The ProjectiveTextureUnit class is a container class, that holds everything needed for texture-projection.


Field Summary
 
Fields inherited from class org.xith3d.scenegraph.SceneGraphObject
XITH3D_USERDATAKEY_OLDUSERDATA
 
Constructor Summary
ProjectiveTextureUnit(java.lang.String texture)
           
ProjectiveTextureUnit(Texture texture)
           
 
Method Summary
protected  void duplicateNodeComponent(NodeComponent original, boolean forceDuplicate)
          
 View getProjector()
           
protected  ProjectiveTextureUnit newInstance()
          
 void setTexture(Texture texture)
          
 void setTextureAttributes(TextureAttributes textureAttributes)
          
 void update(float viewportAspect, long frameId)
           
 
Methods inherited from class org.xith3d.scenegraph.TextureUnit
cloneNodeComponent, freeOpenGLResources, getTexCoordGeneration, getTexture, getTextureAttributes, setChangedRecursive, setModListener, setTexCoordGeneration, setTexture
 
Methods inherited from class org.xith3d.scenegraph.NodeComponent
freeOpenGLResources, getDuplicateOnCloneTree, getModListener, isChanged, isChanged2, setChanged, setDuplicateOnCloneTree
 
Methods inherited from class org.xith3d.scenegraph.SceneGraphObject
getName, getUserData, getUserData, getUserDataMap, isLive, setLive, setName, setUserData, setUserData, setUserDataRecursive, setUserDataRecursive, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ProjectiveTextureUnit

public ProjectiveTextureUnit(Texture texture)

ProjectiveTextureUnit

public ProjectiveTextureUnit(java.lang.String texture)
Method Detail

setTexture

public void setTexture(Texture texture)

Overrides:
setTexture in class TextureUnit

setTextureAttributes

public void setTextureAttributes(TextureAttributes textureAttributes)

Overrides:
setTextureAttributes in class TextureUnit

getProjector

public final View getProjector()

update

public void update(float viewportAspect,
                   long frameId)

duplicateNodeComponent

protected void duplicateNodeComponent(NodeComponent original,
                                      boolean forceDuplicate)

Overrides:
duplicateNodeComponent in class TextureUnit

newInstance

protected ProjectiveTextureUnit newInstance()

Overrides:
newInstance in class TextureUnit