All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class java.media.j3d.Texture3D

java.lang.Object
   |
   +----java.media.j3d.SceneGraphObject
           |
           +----java.media.j3d.NodeComponent
                   |
                   +----java.media.j3d.Texture
                           |
                           +----java.media.j3d.Texture3D

public class Texture3D
extends Texture
Texture3D is a subclass of Texture class. It extends Texture class by adding a third co-ordinate, constructor and a mutator method for setting a 3D texture image.


Constructor Index

 o Texture3D()
Constructs a texture object using default values.
 o Texture3D(int, int, int, int, int)
Constructs an empty Texture3D object with specified mipmapMode format, width, height, and depth.

Method Index

 o getBoundaryModeR()
Retrieves the boundary mode for the R coordinate.
 o setBoundaryModeR(int)
Sets the boundary mode for the R coordinate in this texture object.

Constructors

 o Texture3D
 public Texture3D()
Constructs a texture object using default values.

 o Texture3D
 public Texture3D(int mipmapMode,
                  int format,
                  int width,
                  int height,
                  int depth)
Constructs an empty Texture3D object with specified mipmapMode format, width, height, and depth. Image at level 0 must be set by the application using 'setImage' method. If mipmapMode is set to MULTI_LEVEL_MIPMAP, images for ALL levels must be set.

Parameters:
mipmapMode - type of mipmap for this Texture: One of BASE_LEVEL, MULTI_LEVEL_MIPMAP.
format - data format of Textures saved in this object. One of INTENSITY, LUMINANCE, ALPHA, LUMINANCE_ALPHA, RGB, RGBA.
width - width of image at level 0. Must be power of 2.
height - height of image at level 0. Must be power of 2.
depth - depth of image at level 0. Must be power of 2.
Throws: IllegalArgumentException
if width or height are NOT power of 2 OR invalid format/mipmapMode is specified.

Methods

 o setBoundaryModeR
 public final void setBoundaryModeR(int boundaryModeR)
Sets the boundary mode for the R coordinate in this texture object.

Parameters:
boundaryModeR - the boundary mode for the R coordinate, one of: CLAMP or WRAP.
Throws: RestrictedAccessException
if the method is called when this object is part of live or compiled scene graph.
 o getBoundaryModeR
 public final int getBoundaryModeR()
Retrieves the boundary mode for the R coordinate.

Returns:
the current boundary mode for the R coordinate.
Throws: RestrictedAccessException
if the method is called when this object is part of live or compiled scene graph.

All Packages  Class Hierarchy  This Package  Previous  Next  Index