|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.media.j3d.SceneGraphObject | +--javax.media.j3d.NodeComponent | +--javax.media.j3d.Texture | +--javax.media.j3d.Texture3D
Texture3D is a subclass of Texture class. It extends Texture class by adding a third coordinate, constructor and a mutator method for setting a 3D texture image. If 3D texture mapping is not supported on a particular Canvas3D, 3D texture mapping is ignored for that canvas.
Canvas3D.queryProperties()
Field Summary |
Constructor Summary | |
Texture3D()
Constructs a Texture3D object with default parameters. |
|
Texture3D(int mipmapMode,
int format,
int width,
int height,
int depth)
Constructs an empty Texture3D object with specified mipmapMode format, width, height, and depth. |
|
Texture3D(int mipmapMode,
int format,
int width,
int height,
int depth,
int boundaryWidth)
Constructs an empty Texture3D object with specified mipmapMode format, width, height, depth, and boundaryWidth. |
Method Summary | |
NodeComponent |
cloneNodeComponent()
Deprecated. replaced with cloneNodeComponent(boolean forceDuplicate) |
void |
duplicateNodeComponent(NodeComponent originalNodeComponent)
Deprecated. replaced with duplicateNodeComponent( NodeComponent originalNodeComponent, boolean forceDuplicate) |
int |
getBoundaryModeR()
Retrieves the boundary mode for the R coordinate. |
int |
getDepth()
Retrieves the depth of this Texture3D object. |
void |
setBoundaryModeR(int boundaryModeR)
Sets the boundary mode for the R coordinate in this texture object. |
Methods inherited from class javax.media.j3d.NodeComponent |
cloneNodeComponent, duplicateNodeComponent, getDuplicateOnCloneTree, setDuplicateOnCloneTree |
Methods inherited from class javax.media.j3d.SceneGraphObject |
clearCapability, clearCapabilityIsFrequent, duplicateSceneGraphObject, getCapability, getCapabilityIsFrequent, getUserData, isCompiled, isLive, setCapability, setCapabilityIsFrequent, setUserData, updateNodeReferences |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Texture3D()
Note that the default constructor creates a texture object with a width, height, and depth of 0 and is, therefore, not useful.
public Texture3D(int mipmapMode, int format, int width, int height, int depth)
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.
java.lang.IllegalArgumentException
- if width or height are NOT
power of 2 OR invalid format/mipmapMode is specified.public Texture3D(int mipmapMode, int format, int width, int height, int depth, int boundaryWidth)
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.boundaryWidth
- width of the boundary.
java.lang.IllegalArgumentException
- if width or height are NOT
power of 2 OR invalid format/mipmapMode is specified, or
if the boundaryWidth < 0Method Detail |
public void setBoundaryModeR(int boundaryModeR)
boundaryModeR
- the boundary mode for the R coordinate,
one of: CLAMP, WRAP, CLAMP_TO_EDGE, or CLAMP_TO_BOUNDARY
RestrictedAccessException
- if the method is called
when this object is part of live or compiled scene graph.
java.lang.IllegalArgumentException
- if boundaryModeR
is a value other than CLAMP
, WRAP
,
CLAMP_TO_EDGE
, or CLAMP_TO_BOUNDARY
.public int getBoundaryModeR()
RestrictedAccessException
- if the method is called
when this object is part of live or compiled scene graph.public int getDepth()
CapabilityNotSetException
- if appropriate capability is
not set and this object is part of live or compiled scene graphpublic NodeComponent cloneNodeComponent()
cloneNodeComponent
in class NodeComponent
public void duplicateNodeComponent(NodeComponent originalNodeComponent)
duplicateNodeComponent
in class NodeComponent
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |