| java.lang.Object javax.media.j3d.IndexedObject javax.media.j3d.SceneGraphObjectRetained javax.media.j3d.NodeComponentRetained javax.media.j3d.ImageComponentRetained javax.media.j3d.ImageComponent3DRetained
ImageComponent3DRetained | class ImageComponent3DRetained extends ImageComponentRetained (Code) | | This class defines a 3D array of pixels.
This is used for texture images.
|
Method Summary | |
int | getDepth() Retrieves the depth of this 3D image component object. | BufferedImage[] | getImage() Retrieves a copy of the images in this ImageComponent3D object. | RenderedImage | getImage(int index) Retrieves a copy of one of the images in this ImageComponent3D object. | RenderedImage[] | getRenderedImage() Retrieves a copy of the images in this ImageComponent3D object. | void | set(int index, BufferedImage image) Copies the specified BufferedImage to this 3D image component
object at the specified index.
Parameters: index - the image index Parameters: images - BufferedImage object containing the image.The format and size must be the same as the current format in thisImageComponent3D object. | void | set(int index, RenderedImage image) Copies the specified BufferedImage to this 3D image component
object at the specified index.
Parameters: index - the image index Parameters: images - BufferedImage object containing the image.The format and size must be the same as the current format in thisImageComponent3D object. | void | setDepth(int depth) | void | setSubImage(int index, RenderedImage image, int width, int height, int srcX, int srcY, int dstX, int dstY) | void | updateData(ImageComponent3D.Updater updater, int index, int x, int y, int width, int height) Update data.
x and y specifies the x & y offset of the image data in
ImageComponent. |
getDepth | int getDepth()(Code) | | Retrieves the depth of this 3D image component object.
the format of this 3D image component object |
getImage | BufferedImage[] getImage()(Code) | | Retrieves a copy of the images in this ImageComponent3D object.
a new array of new BufferedImage objects created from theimages in this ImageComponent3D object |
getImage | RenderedImage getImage(int index)(Code) | | Retrieves a copy of one of the images in this ImageComponent3D object.
Parameters: index - the index of the image to retrieve a new BufferedImage objects created from theimage at the specified index in this ImageComponent3D object |
getRenderedImage | RenderedImage[] getRenderedImage()(Code) | | Retrieves a copy of the images in this ImageComponent3D object.
a new array of new BufferedImage objects created from theimages in this ImageComponent3D object |
set | void set(int index, BufferedImage image)(Code) | | Copies the specified BufferedImage to this 3D image component
object at the specified index.
Parameters: index - the image index Parameters: images - BufferedImage object containing the image.The format and size must be the same as the current format in thisImageComponent3D object. The index must not exceed the depth of thisImageComponent3D object. |
set | void set(int index, RenderedImage image)(Code) | | Copies the specified BufferedImage to this 3D image component
object at the specified index.
Parameters: index - the image index Parameters: images - BufferedImage object containing the image.The format and size must be the same as the current format in thisImageComponent3D object. The index must not exceed the depth of thisImageComponent3D object.void set(int index, NioImageBuffer nioImage) {int width = nioImage.getWidth();int height = nioImage.getHeight();if (!byReference) {throw new IllegalArgumentException(J3dI18N.getString("Need_New_Message_XXXXXImageComponent2D7")); }if (!yUp) {throw new IllegalArgumentException(J3dI18N.getString("Need_New_Message_XXXXXImageComponent2D8")); }if (width != this.width) {throw new IllegalArgumentException(J3dI18N.getString("ImageComponent3D2"));}if (height != this.height) {throw new IllegalArgumentException(J3dI18N.getString("ImageComponent3D4"));}geomLock.getLock();setImageClass(nioImage);// This is a byRef image. setRefImage(nioImage,0); if(imageData == null) {// Only do this once, on the first image // Reset this flag to true, incase it was set to false due to// the previous image type.abgrSupported = true;imageTypeIsSupported = isImageTypeSupported(nioImage);// TODO : Need to handle null ....imageData = createNioImageBufferDataObject(null);}else {//if(getImageType() != evaluateImageType(image)) {// TODO need to throw illegal state exception//}}if (imageTypeIsSupported) {// TODO : Need to handle this ..... case .... // copySupportedImageToImageData(image, index, imageData);} else {// System.err.println("Image format is unsupported -- illogical case");throw new AssertionError();} geomLock.unLock();if (source.isLive()) {// send a IMAGE_CHANGED message in order to// notify all the users of the changesendMessage(IMAGE_CHANGED, null);} } |
setDepth | void setDepth(int depth)(Code) | | |
setSubImage | void setSubImage(int index, RenderedImage image, int width, int height, int srcX, int srcY, int dstX, int dstY)(Code) | | |
updateData | void updateData(ImageComponent3D.Updater updater, int index, int x, int y, int width, int height)(Code) | | Update data.
x and y specifies the x & y offset of the image data in
ImageComponent. It assumes that the origin is (0, 0).
|
Methods inherited from javax.media.j3d.ImageComponentRetained | synchronized void addUser(NodeComponentRetained node)(Code)(Java Doc) void convertImageDataFromABGRToRGBA()(Code)(Java Doc) void copyImageByBlock(BufferedImage bi, int depthIndex, ImageData data)(Code)(Java Doc) void copyImageLineByLine(BufferedImage bi, int srcX, int srcY, int dstX, int dstY, int depthIndex, int copyWidth, int copyHeight, ImageData data)(Code)(Java Doc) void copySupportedImageToImageData(RenderedImage ri, int srcX, int srcY, int dstX, int dstY, int depthIndex, int copyWidth, int copyHeight, ImageData data)(Code)(Java Doc) void copySupportedImageToImageData(RenderedImage ri, int depthIndex, ImageData data)(Code)(Java Doc) void copyToRefImage(int depth)(Code)(Java Doc) void copyToRefImageWithFormatConversion(int depth)(Code)(Java Doc) void copyUnsupportedImageToImageData(RenderedImage ri, int depthIndex, ImageData data)(Code)(Java Doc) void copyUnsupportedImageToImageData(BufferedImage bi, int srcX, int srcY, int dstX, int dstY, int depthIndex, int copyWidth, int copyHeight, ImageData data)(Code)(Java Doc) void copyUnsupportedImageToImageData(RenderedImage ri, int srcX, int srcY, int dstX, int dstY, int depthIndex, int copyWidth, int copyHeight, ImageData data)(Code)(Java Doc) void copyUnsupportedNioImageToImageData(NioImageBuffer nioImage, int srcX, int srcY, int dstX, int dstY, int copyWidth, int copyHeight, ImageData iData)(Code)(Java Doc) void createBlankImageData()(Code)(Java Doc) ImageData createNioImageBufferDataObject(NioImageBuffer nioImageBuffer)(Code)(Java Doc) ImageData createRenderedImageDataObject(RenderedImage byRefImage, int dataWidth, int dataHeight)(Code)(Java Doc) ImageData createRenderedImageDataObject(RenderedImage byRefImage)(Code)(Java Doc) void evaluateExtABGR(int ext)(Code)(Java Doc) void evaluateExtNonPowerOfTwo(int ext)(Code)(Java Doc) void evaluateExtensions(Canvas3D canvas)(Code)(Java Doc) int evaluateImageType(RenderedImage ri)(Code)(Java Doc) static Object getDataElementBuffer(java.awt.image.Raster ras)(Code)(Java Doc) int getFormat()(Code)(Java Doc) int getHeight()(Code)(Java Doc) ImageComponent.ImageClass getImageClass()(Code)(Java Doc) ImageData getImageData(boolean npotSupportNeeded)(Code)(Java Doc) int getImageDataTypeIntValue()(Code)(Java Doc) ImageFormatType getImageFormatType()(Code)(Java Doc) int getImageFormatTypeIntValue(boolean powerOfTwoData)(Code)(Java Doc) int getImageType()(Code)(Java Doc) int getNumberOfComponents()(Code)(Java Doc) Object getRefImage(int index)(Code)(Java Doc) int getUnitsPerPixel()(Code)(Java Doc) boolean getUsedByOffScreen()(Code)(Java Doc) int getWidth()(Code)(Java Doc) void handleFrequencyChange(int bit)(Code)(Java Doc) boolean is3ByteRGB(RenderedImage ri)(Code)(Java Doc) boolean is4ByteRGBA(RenderedImage ri)(Code)(Java Doc) boolean isByReference()(Code)(Java Doc) boolean isImageTypeSupported()(Code)(Java Doc) boolean isImageTypeSupported(NioImageBuffer nioImgBuf)(Code)(Java Doc) boolean isImageTypeSupported(RenderedImage ri)(Code)(Java Doc) boolean isSubImageTypeEqual(RenderedImage ri)(Code)(Java Doc) boolean isYUp()(Code)(Java Doc) void processParams(int format, int width, int height, int depth)(Code)(Java Doc) synchronized void removeUser(NodeComponentRetained node)(Code)(Java Doc) final void sendMessage(int attrMask, Object attr)(Code)(Java Doc) void setByReference(boolean byReference)(Code)(Java Doc) void setEnforceNonPowerOfTwoSupport(boolean npot)(Code)(Java Doc) void setFormat(int format)(Code)(Java Doc) void setImageClass(RenderedImage image)(Code)(Java Doc) void setImageClass(NioImageBuffer image)(Code)(Java Doc) void setImageFormatType(ImageFormatType ift)(Code)(Java Doc) void setLive(boolean inBackgroundGroup, int refCount)(Code)(Java Doc) void setNumberOfComponents(int numberOfComponents)(Code)(Java Doc) void setRefImage(Object image, int index)(Code)(Java Doc) void setUnitsPerPixel(int ipp)(Code)(Java Doc) void setUsedByOffScreen(boolean used)(Code)(Java Doc) void setYUp(boolean yUp)(Code)(Java Doc) synchronized void updateMirrorObject(int component, Object value)(Code)(Java Doc) boolean useBilinearFilter()(Code)(Java Doc)
|
Fields inherited from javax.media.j3d.IndexedObject | int[][] listIdx(Code)(Java Doc)
|
|
|