javax.media.j3d
Class Texture3DRetained
java.lang.Object
javax.media.j3d.IndexedObject
javax.media.j3d.SceneGraphObjectRetained
javax.media.j3d.NodeComponentRetained
javax.media.j3d.TextureRetained
javax.media.j3d.Texture3DRetained
- All Implemented Interfaces:
- java.lang.Cloneable
class Texture3DRetained
- extends TextureRetained
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.
Fields inherited from class javax.media.j3d.TextureRetained |
anisotropicFilterDegree, anisotropicFilterMode, BASE_LEVEL_CHANGED, baseLevel, boundaryColor, boundaryModeS, boundaryModeT, boundaryWidth, COLOR_CHANGED, enable, ENABLE_CHANGED, filter4FuncPts, format, height, IMAGE_CHANGED, images, IMAGES_CHANGED, imageUpdateInfo, imageUpdatePruneMask, isAlphaNeedUpdate, isDirty, LOD_OFFSET_CHANGED, lodOffset, MAG_FILTER, magFilter, MAX_LEVEL_CHANGED, MAX_LOD_CHANGED, maximumLevel, maximumLod, maxLevels, MIN_FILTER, MIN_LOD_CHANGED, minFilter, minimumLod, mipmapMode, numFaces, numSharpenTextureFuncPts, objectId, resourceCreationMask, resourceInReloadList, resourceLock, resourceLodUpdatedMask, resourceUpdatedMask, sharpenTextureFuncPts, STATE_CHANGED, UPDATE_IMAGE, userSpecifiedEnable, width |
Method Summary |
(package private) void |
bindTexture(Context ctx,
int objectId,
boolean enable)
This method updates the native context. |
(package private) void |
freeTextureId(int id)
|
(package private) int |
getBoundaryModeR()
Retrieves the boundary mode for the R coordinate. |
(package private) int |
getDepth()
|
(package private) int |
getTextureId()
|
(package private) void |
initBoundaryModeR(int boundaryModeR)
Sets the boundary mode for the R coordinate in this texture object. |
(package private) void |
reloadTextureImage(Canvas3D cv,
int face,
int level,
ImageComponentRetained image,
int numLevels)
reloadTextureImage is used to load a particular level of image
This method needs to take care of RenderedImage as well as
BufferedImage |
(package private) void |
reloadTextureSubImage(Canvas3D cv,
int level,
int face,
ImageComponentUpdateInfo info,
ImageComponentRetained image)
update a subregion of the texture image
This method needs to take care of RenderedImage as well as
BufferedImage |
(package private) void |
setDepth(int depth)
|
(package private) void |
updateTextureAnisotropicFilter(Context ctx,
float degree)
|
(package private) void |
updateTextureBoundary(Canvas3D cv)
|
(package private) void |
updateTextureBoundary(Context ctx,
int boundaryModeS,
int boundaryModeT,
int boundaryModeR,
float boundaryRed,
float boundaryGreen,
float boundaryBlue,
float boundaryAlpha)
|
(package private) void |
updateTextureDimensions(Canvas3D cv)
load level 0 explicitly with null pointer to enable
mipmapping when level 0 is not the base level |
(package private) void |
updateTextureFilter4Func(Context ctx,
int numFilter4FuncPts,
float[] filter4FuncPts)
|
(package private) void |
updateTextureFilterModes(Context ctx,
int minFilter,
int magFilter)
|
(package private) void |
updateTextureImage(Canvas3D cv,
int face,
int numLevels,
int level,
int textureFormat,
int imageFormat,
int width,
int height,
int depth,
int boundaryWidth,
int imageDataType,
java.lang.Object imageData)
|
(package private) void |
updateTextureLodOffset(Context ctx,
float lodOffsetX,
float lodOffsetY,
float lodOffsetZ)
|
(package private) void |
updateTextureLodRange(Context ctx,
int baseLevel,
int maximumLevel,
float minimumLod,
float maximumLod)
|
(package private) void |
updateTextureSharpenFunc(Context ctx,
int numSharpenTextureFuncPts,
float[] sharpenTextureFuncPts)
|
(package private) void |
updateTextureSubImage(Canvas3D cv,
int face,
int level,
int xoffset,
int yoffset,
int zoffset,
int textureFormat,
int imageFormat,
int imgXOffset,
int imgYOffset,
int imgZOffset,
int tilew,
int tileh,
int width,
int height,
int depth,
int imageDataType,
java.lang.Object imageData)
|
Methods inherited from class javax.media.j3d.TextureRetained |
addImageUpdateInfo, bindTexture, checkImageSize, checkSizes, clearLive, createMirrorObject, decTextureBinRefCount, getAnisotropicFilterDegree, getAnisotropicFilterMode, getBaseLevel, getBoundaryColor, getBoundaryModeS, getBoundaryModeT, getBoundaryWidth, getEnable, getFilter4Func, getFilter4Func, getFilter4FuncPointsCount, getFormat, getHeight, getImage, getImages, getLodOffset, getMagFilter, getMaximumLevel, getMaximumLOD, getMinFilter, getMinimumLOD, getMipMapMode, getSharpenTextureFunc, getSharpenTextureFunc, getSharpenTextureFunc, getSharpenTextureFuncPointsCount, getTextureBinRefCount, getWidth, handleFrequencyChange, incTextureBinRefCount, initAnisotropicFilterDegree, initAnisotropicFilterMode, initBaseLevel, initBoundaryColor, initBoundaryColor, initBoundaryModeS, initBoundaryModeT, initEnable, initFilter4Func, initialize, initImage, initImages, initLodOffset, initMagFilter, initMaximumLevel, initMaximumLOD, initMinFilter, initMinimumLOD, initMipMapMode, initMirrorObject, initSharpenTextureFunc, initSharpenTextureFunc, initSharpenTextureFunc, isUseAsRaster, notifyImageComponentImageChanged, numMipMapLevels, pruneImageUpdateInfo, reloadTexture, reloadTextureSharedContext, sendMessage, setBaseLevel, setEnable, setImage, setImages, setLive, setLodOffset, setMaximumLevel, setMaximumLOD, setMinimumLOD, setUseAsRaster, updateMirrorObject, updateNative, updateResourceCreationMask, updateTexture, updateTextureBoundary, updateTextureFields, updateTextureImage, updateTextureLOD, updateTextureSubImage, useAutoMipMapGeneration, validate |
Methods inherited from class javax.media.j3d.NodeComponentRetained |
addAMirrorUser, addUser, clone, copyMirrorUsers, decRefCnt, doSetLive, getDuplicateOnCloneTree, getInImmCtx, incRefCnt, notifyUsers, removeAMirrorUser, removeMirrorUsers, removeUser, set, setDuplicateOnCloneTree, setFrequencyChangeMask, setInImmCtx |
Methods inherited from class javax.media.j3d.SceneGraphObjectRetained |
clearLive, clearLive, compile, doSetLive, doSetLive, getSource, getVirtualUniverse, isInSetLive, isStatic, markAsLive, merge, mergeTransform, setCompiled, setLive, setLive, setSource, traverse |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
boundaryModeR
int boundaryModeR
depth
int depth
Texture3DRetained
Texture3DRetained()
setDepth
final void setDepth(int depth)
getDepth
final int getDepth()
initBoundaryModeR
final void initBoundaryModeR(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.
getBoundaryModeR
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.
bindTexture
void bindTexture(Context ctx,
int objectId,
boolean enable)
- This method updates the native context.
- Overrides:
bindTexture
in class TextureRetained
updateTextureBoundary
void updateTextureBoundary(Context ctx,
int boundaryModeS,
int boundaryModeT,
int boundaryModeR,
float boundaryRed,
float boundaryGreen,
float boundaryBlue,
float boundaryAlpha)
updateTextureFilterModes
void updateTextureFilterModes(Context ctx,
int minFilter,
int magFilter)
- Overrides:
updateTextureFilterModes
in class TextureRetained
updateTextureSharpenFunc
void updateTextureSharpenFunc(Context ctx,
int numSharpenTextureFuncPts,
float[] sharpenTextureFuncPts)
- Overrides:
updateTextureSharpenFunc
in class TextureRetained
updateTextureFilter4Func
void updateTextureFilter4Func(Context ctx,
int numFilter4FuncPts,
float[] filter4FuncPts)
- Overrides:
updateTextureFilter4Func
in class TextureRetained
updateTextureAnisotropicFilter
void updateTextureAnisotropicFilter(Context ctx,
float degree)
- Overrides:
updateTextureAnisotropicFilter
in class TextureRetained
updateTextureImage
void updateTextureImage(Canvas3D cv,
int face,
int numLevels,
int level,
int textureFormat,
int imageFormat,
int width,
int height,
int depth,
int boundaryWidth,
int imageDataType,
java.lang.Object imageData)
updateTextureSubImage
void updateTextureSubImage(Canvas3D cv,
int face,
int level,
int xoffset,
int yoffset,
int zoffset,
int textureFormat,
int imageFormat,
int imgXOffset,
int imgYOffset,
int imgZOffset,
int tilew,
int tileh,
int width,
int height,
int depth,
int imageDataType,
java.lang.Object imageData)
getTextureId
int getTextureId()
- Overrides:
getTextureId
in class TextureRetained
freeTextureId
void freeTextureId(int id)
- Overrides:
freeTextureId
in class TextureRetained
updateTextureDimensions
void updateTextureDimensions(Canvas3D cv)
- Description copied from class:
TextureRetained
- load level 0 explicitly with null pointer to enable
mipmapping when level 0 is not the base level
- Overrides:
updateTextureDimensions
in class TextureRetained
updateTextureBoundary
void updateTextureBoundary(Canvas3D cv)
- Overrides:
updateTextureBoundary
in class TextureRetained
updateTextureLodRange
void updateTextureLodRange(Context ctx,
int baseLevel,
int maximumLevel,
float minimumLod,
float maximumLod)
- Overrides:
updateTextureLodRange
in class TextureRetained
updateTextureLodOffset
void updateTextureLodOffset(Context ctx,
float lodOffsetX,
float lodOffsetY,
float lodOffsetZ)
- Overrides:
updateTextureLodOffset
in class TextureRetained
reloadTextureImage
void reloadTextureImage(Canvas3D cv,
int face,
int level,
ImageComponentRetained image,
int numLevels)
- Description copied from class:
TextureRetained
- reloadTextureImage is used to load a particular level of image
This method needs to take care of RenderedImage as well as
BufferedImage
- Overrides:
reloadTextureImage
in class TextureRetained
reloadTextureSubImage
void reloadTextureSubImage(Canvas3D cv,
int level,
int face,
ImageComponentUpdateInfo info,
ImageComponentRetained image)
- Description copied from class:
TextureRetained
- update a subregion of the texture image
This method needs to take care of RenderedImage as well as
BufferedImage
- Overrides:
reloadTextureSubImage
in class TextureRetained
Copyright 1996-2008 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.