org.xith3d.scenegraph
Class Texture3D

java.lang.Object
  extended by org.xith3d.scenegraph.SceneGraphObject
      extended by org.xith3d.scenegraph.NodeComponent
          extended by org.xith3d.scenegraph.Texture
              extended by org.xith3d.scenegraph.Texture3D
All Implemented Interfaces:
org.jagatoo.datatypes.Enableable, org.jagatoo.datatypes.NamableObject, org.jagatoo.datatypes.NamedObject, org.jagatoo.loaders.textures.AbstractTexture

public class Texture3D
extends Texture

Texture3D defines attributes that apply to .


Nested Class Summary
 
Nested classes/interfaces inherited from class org.xith3d.scenegraph.Texture
Texture.MipmapMode
 
Field Summary
 
Fields inherited from class org.xith3d.scenegraph.SceneGraphObject
XITH3D_USERDATAKEY_OLDUSERDATA
 
Constructor Summary
Texture3D(org.jagatoo.opengl.enums.TextureFormat format)
          Constructs a new Texture3D object.
Texture3D(org.jagatoo.opengl.enums.TextureFormat format, int boundaryWidth)
          Constructs a new Texture3D object.
 
Method Summary
protected  void checkImageType(TextureImage image)
          This method is called by Texture.setImage(int, TextureImage).
 Texture3D cloneNodeComponent(boolean forceDuplicate)
          
protected  void duplicateNodeComponent(NodeComponent original, boolean forceDuplicate)
          
 org.jagatoo.opengl.enums.TextureBoundaryMode getBoundaryModeR()
          Gets the boundary mode R.
 int getDepth()
           
 void setBoundaryModeR(org.jagatoo.opengl.enums.TextureBoundaryMode mode)
          Sets the boundary mode R.
 
Methods inherited from class org.xith3d.scenegraph.Texture
addImage, enableAutoFreeLocalData, finalize, freeOpenGLResources, getBoundaryColor, getBoundaryColor, getBoundaryModeS, getBoundaryModeT, getBoundaryWidth, getCacheKey, getDefaultFilter, getFilter, getFormat, getHeight, getImage, getImagesCount, getMipMapMode, getOpenGLReferences, getOriginalHeight, getOriginalSize, getOriginalWidth, getResourceName, getSize, getStateId, getType, getWidth, hasSizeChanged, isDirty, isEnabled, isMarkedAsLocalDataToBeFreed, removeFromCache, setBoundaryColor, setBoundaryColor, setBoundaryModeS, setBoundaryModes, setBoundaryModeT, setBoundaryWidth, setCacheKey, setDefaultFilter, setEnabled, setFilter, setImage, setImage, setResourceName, setSizeChanged, toString
 
Methods inherited from class org.xith3d.scenegraph.NodeComponent
freeOpenGLResources, getDuplicateOnCloneTree, getModListener, isChanged, isChanged2, setChanged, setDuplicateOnCloneTree, setModListener
 
Methods inherited from class org.xith3d.scenegraph.SceneGraphObject
getName, getUserData, getUserData, getUserDataMap, isLive, setLive, setName, setUserData, setUserData, setUserDataRecursive, setUserDataRecursive
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jagatoo.loaders.textures.AbstractTexture
getName, setName
 

Constructor Detail

Texture3D

public Texture3D(org.jagatoo.opengl.enums.TextureFormat format,
                 int boundaryWidth)
Constructs a new Texture3D object.

Parameters:
format -
boundaryWidth -

Texture3D

public Texture3D(org.jagatoo.opengl.enums.TextureFormat format)
Constructs a new Texture3D object.

Parameters:
format -
Method Detail

getDepth

public final int getDepth()
Returns:
this Texture3D's depth.

setBoundaryModeR

public void setBoundaryModeR(org.jagatoo.opengl.enums.TextureBoundaryMode mode)
Sets the boundary mode R.


getBoundaryModeR

public final org.jagatoo.opengl.enums.TextureBoundaryMode getBoundaryModeR()
Gets the boundary mode R.


checkImageType

protected void checkImageType(TextureImage image)
This method is called by Texture.setImage(int, TextureImage). It checks the added image's type and throws an exception, if the type is not accepted.

Specified by:
checkImageType in class Texture

duplicateNodeComponent

protected void duplicateNodeComponent(NodeComponent original,
                                      boolean forceDuplicate)

Overrides:
duplicateNodeComponent in class Texture

cloneNodeComponent

public Texture3D cloneNodeComponent(boolean forceDuplicate)

Specified by:
cloneNodeComponent in class NodeComponent