All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class javax.media.j3d.ImageComponent3D

java.lang.Object
   |
   +----javax.media.j3d.SceneGraphObject
           |
           +----javax.media.j3d.NodeComponent
                   |
                   +----javax.media.j3d.ImageComponent
                           |
                           +----javax.media.j3d.ImageComponent3D

public class ImageComponent3D
extends ImageComponent
This class defines a 3D array of pixels. This is used for texture images.


Constructor Index

 o ImageComponent3D(int, BufferedImage[])
Constructs an 3D image component object using the specified format, and the BufferedImage array.
 o ImageComponent3D(int, int, int, int)
Constructs an 3D image component object using the specified format, width, height and depth.

Method Index

 o getDepth()
Retrieves the depth of this 3D image component object.
 o getImage()
Retrieves a copy of the images in this ImageComponent3D object.
 o getImage(int)
Retrieves a copy of one of the images in this ImageComponent3D object.
 o set(BufferedImage[])
Copies the specified array of BufferedImage objects to this 3D image component object.
 o set(int, BufferedImage)
Copies the specified BufferedImage to this 3D image component object at the specified index.

Constructors

 o ImageComponent3D
 public ImageComponent3D(int format,
                         int width,
                         int height,
                         int depth)
Constructs an 3D image component object using the specified format, width, height and depth.

Parameters:
format - the image component format, one of: FORMAT_RGB, FORMAT_RGBA, etc.
width - the number of columns of pixels in this image component object
height - the number of rows of pixels in this image component object
depth - the number of 2D slices in this image component object
Throws: IllegalArgumentException
if format is invalid or width/height are non-positive.
 o ImageComponent3D
 public ImageComponent3D(int format,
                         BufferedImage image[])
Constructs an 3D image component object using the specified format, and the BufferedImage array.

Parameters:
format - the image component format, one of: FORMAT_RGB, , FORMAT_RGBA etc.
image - an array of BufferedImage
Throws: IllegalArgumentException
if format is invalid or width/height are non-positive.

Methods

 o getDepth
 public final int getDepth()
Retrieves the depth of this 3D image component object.

Returns:
the format of this 3D image component object
 o set
 public final void set(BufferedImage images[])
Copies the specified array of BufferedImage objects to this 3D image component object.

Parameters:
images - array of BufferedImage objects containing the image. The format and size must be the same as the current format in the image component.
 o set
 public final void set(int index,
                       BufferedImage images)
Copies the specified BufferedImage to this 3D image component object at the specified index.

Parameters:
index - the image index
images - BufferedImage object containing the image. The format and size must be the same as the current format in this ImageComponent3D object. The index must not exceed the depth of this ImageComponent3D object.
 o getImage
 public final BufferedImage[] getImage()
Retrieves a copy of the images in this ImageComponent3D object.

Returns:
a new array of new BufferedImage objects created from the images in this ImageComponent3D object
 o getImage
 public final BufferedImage getImage(int index)
Retrieves a copy of one of the images in this ImageComponent3D object.

Parameters:
index - the index of the image to retrieve
Returns:
a new BufferedImage objects created from the image at the specified index in this ImageComponent3D object

All Packages  Class Hierarchy  This Package  Previous  Next  Index