org.xith3d.scenegraph
Class TextureImage3D

java.lang.Object
  extended by org.xith3d.scenegraph.SceneGraphObject
      extended by org.xith3d.scenegraph.NodeComponent
          extended by org.xith3d.scenegraph.TextureImage
              extended by org.xith3d.scenegraph.TextureImage3D
All Implemented Interfaces:
org.jagatoo.datatypes.NamableObject, org.jagatoo.datatypes.NamedObject, org.jagatoo.loaders.textures.AbstractTextureImage

public class TextureImage3D
extends TextureImage

TextureImage3D is the 3D implementation to TextureImage (used in 3D texturing, see Texture3D(Coord)Test)


Field Summary
 
Fields inherited from class org.xith3d.scenegraph.SceneGraphObject
XITH3D_USERDATAKEY_OLDUSERDATA
 
Constructor Summary
TextureImage3D(org.jagatoo.opengl.enums.TextureImageFormat format, int width, int height, int depth)
          Constructs a new TextureImage3D object.
TextureImage3D(org.jagatoo.opengl.enums.TextureImageFormat format, int width, int height, int depth, java.awt.image.BufferedImage[] image)
          Constructs a new TextureImage3D object.
TextureImage3D(org.jagatoo.opengl.enums.TextureImageFormat format, int width, int height, int depth, byte[][] data)
          Constructs a new TextureImage3D object.
TextureImage3D(org.jagatoo.opengl.enums.TextureImageFormat format, int width, int height, int depth, TextureImage2D[] image)
          Constructs a new TextureImage3D object.
 
Method Summary
 TextureImage3D cloneNodeComponent(boolean forceDuplicate)
          
protected  void duplicateNodeComponent(NodeComponent original, boolean forceDuplicate)
          
 java.nio.ByteBuffer getDataBuffer()
          
 int getDepth()
          gets the depth
 int getPixelSize()
          
 int initImageData()
           
 void setImageData(java.awt.image.BufferedImage[] images)
           
 void setImageData(byte[][] data)
          Sets the data for the image
 void setImageData(TextureImage2D[] images)
           
 
Methods inherited from class org.xith3d.scenegraph.TextureImage
calculateNeededImageSize, freeOpenGLResources, getFormat, getHeight, getInternalFormat, getOriginalHeight, getOriginalSize, getOriginalWidth, getSize, getWidth, hasAlpha, hasData, isCompressed, isInternalFormatCompressed, setHasData, setInternalFormat, setOriginalSize, setSize
 
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, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TextureImage3D

public TextureImage3D(org.jagatoo.opengl.enums.TextureImageFormat format,
                      int width,
                      int height,
                      int depth)
Constructs a new TextureImage3D object.


TextureImage3D

public TextureImage3D(org.jagatoo.opengl.enums.TextureImageFormat format,
                      int width,
                      int height,
                      int depth,
                      byte[][] data)
Constructs a new TextureImage3D object.


TextureImage3D

public TextureImage3D(org.jagatoo.opengl.enums.TextureImageFormat format,
                      int width,
                      int height,
                      int depth,
                      java.awt.image.BufferedImage[] image)
Constructs a new TextureImage3D object.


TextureImage3D

public TextureImage3D(org.jagatoo.opengl.enums.TextureImageFormat format,
                      int width,
                      int height,
                      int depth,
                      TextureImage2D[] image)
Constructs a new TextureImage3D object.

Method Detail

getDepth

public final int getDepth()
gets the depth


getDataBuffer

public final java.nio.ByteBuffer getDataBuffer()


getPixelSize

public final int getPixelSize()


initImageData

public int initImageData()

setImageData

public final void setImageData(byte[][] data)
Sets the data for the image


setImageData

public void setImageData(java.awt.image.BufferedImage[] images)

setImageData

public void setImageData(TextureImage2D[] images)

duplicateNodeComponent

protected void duplicateNodeComponent(NodeComponent original,
                                      boolean forceDuplicate)

Overrides:
duplicateNodeComponent in class NodeComponent

cloneNodeComponent

public TextureImage3D cloneNodeComponent(boolean forceDuplicate)

Specified by:
cloneNodeComponent in class NodeComponent