Java Doc for ImageComponent3DRetained.java in  » 6.0-JDK-Modules » java-3d » javax » media » j3d » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » 6.0 JDK Modules » java 3d » javax.media.j3d 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


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
 intgetDepth()
     Retrieves the depth of this 3D image component object.
 BufferedImage[]getImage()
     Retrieves a copy of the images in this ImageComponent3D object.
 RenderedImagegetImage(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.
 voidset(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.
 voidset(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.
 voidsetDepth(int depth)
    
 voidsetSubImage(int index, RenderedImage image, int width, int height, int srcX, int srcY, int dstX, int dstY)
    
 voidupdateData(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.



Method Detail
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).



Fields inherited from javax.media.j3d.ImageComponentRetained
final static int IMAGE_CHANGED(Code)(Java Doc)
final static int IMAGE_DATA_TYPE_BYTE_ARRAY(Code)(Java Doc)
final static int IMAGE_DATA_TYPE_BYTE_BUFFER(Code)(Java Doc)
final static int IMAGE_DATA_TYPE_INT_ARRAY(Code)(Java Doc)
final static int IMAGE_DATA_TYPE_INT_BUFFER(Code)(Java Doc)
final static int IMAGE_SIZE_512X512(Code)(Java Doc)
final static int SUBIMAGE_CHANGED(Code)(Java Doc)
final static int TYPE_BYTE_ABGR(Code)(Java Doc)
final static int TYPE_BYTE_BGR(Code)(Java Doc)
final static int TYPE_BYTE_GRAY(Code)(Java Doc)
final static int TYPE_BYTE_LA(Code)(Java Doc)
final static int TYPE_BYTE_RGB(Code)(Java Doc)
final static int TYPE_BYTE_RGBA(Code)(Java Doc)
final static int TYPE_INT_ARGB(Code)(Java Doc)
final static int TYPE_INT_BGR(Code)(Java Doc)
final static int TYPE_INT_RGB(Code)(Java Doc)
final static int TYPE_USHORT_GRAY(Code)(Java Doc)
boolean abgrSupported(Code)(Java Doc)
boolean byReference(Code)(Java Doc)
int depth(Code)(Java Doc)
Object evaluateExtLock(Code)(Java Doc)
GeometryLock geomLock(Code)(Java Doc)
int height(Code)(Java Doc)
ImageData imageData(Code)(Java Doc)
boolean imageTypeIsSupported(Code)(Java Doc)
boolean npotSupported(Code)(Java Doc)
int numXTiles(Code)(Java Doc)
int numYTiles(Code)(Java Doc)
int tileh(Code)(Java Doc)
int tilew(Code)(Java Doc)
ArrayList userList(Code)(Java Doc)
int width(Code)(Java Doc)
boolean yUp(Code)(Java Doc)

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.NodeComponentRetained
int changedFrequent(Code)(Java Doc)
int compChanged(Code)(Java Doc)
boolean duplicateOnCloneTree(Code)(Java Doc)
NodeComponentRetained mirror(Code)(Java Doc)
int refCnt(Code)(Java Doc)
int refCount(Code)(Java Doc)
ArrayList users(Code)(Java Doc)

Methods inherited from javax.media.j3d.NodeComponentRetained
void addAMirrorUser(Shape3DRetained ms)(Code)(Java Doc)
synchronized void addUser(NodeRetained node)(Code)(Java Doc)
void clearLive(int refCount)(Code)(Java Doc)
protected Object clone()(Code)(Java Doc)
void copyMirrorUsers(NodeComponentRetained node)(Code)(Java Doc)
void createMirrorObject()(Code)(Java Doc)
synchronized void decRefCnt()(Code)(Java Doc)
void doSetLive(boolean inBackgroundGroup, int refCount)(Code)(Java Doc)
boolean getDuplicateOnCloneTree()(Code)(Java Doc)
boolean getInImmCtx()(Code)(Java Doc)
synchronized void incRefCnt()(Code)(Java Doc)
void initMirrorObject()(Code)(Java Doc)
synchronized void notifyUsers()(Code)(Java Doc)
void removeAMirrorUser(Shape3DRetained ms)(Code)(Java Doc)
void removeMirrorUsers(NodeComponentRetained node)(Code)(Java Doc)
synchronized void removeUser(NodeRetained node)(Code)(Java Doc)
protected void set(NodeComponentRetained nc)(Code)(Java Doc)
void setDuplicateOnCloneTree(boolean duplicate)(Code)(Java Doc)
void setFrequencyChangeMask(int bit, int mask)(Code)(Java Doc)
void setInImmCtx(boolean inCtx)(Code)(Java Doc)
void setLive(boolean inBackgroundGroup, int refCount)(Code)(Java Doc)
void updateMirrorObject(int component, Object obj)(Code)(Java Doc)

Fields inherited from javax.media.j3d.SceneGraphObjectRetained
final static int DONT_MERGE(Code)(Java Doc)
final static int MERGE(Code)(Java Doc)
final static int MERGE_DONE(Code)(Java Doc)
boolean inBackgroundGroup(Code)(Java Doc)
boolean inSetLive(Code)(Java Doc)
int mergeFlag(Code)(Java Doc)
boolean onUpdateList(Code)(Java Doc)
SceneGraphObject source(Code)(Java Doc)

Methods inherited from javax.media.j3d.SceneGraphObjectRetained
void clearLive(VirtualUniverse univ, int index, boolean sharedGroup, HashKey[] keys)(Code)(Java Doc)
void clearLive()(Code)(Java Doc)
protected Object clone()(Code)(Java Doc)
void compile(CompileState compState)(Code)(Java Doc)
void doSetLive(boolean inBackgroundGroup)(Code)(Java Doc)
void doSetLive(SetLiveState s)(Code)(Java Doc)
SceneGraphObject getSource()(Code)(Java Doc)
VirtualUniverse getVirtualUniverse()(Code)(Java Doc)
void handleFrequencyChange(int bit)(Code)(Java Doc)
boolean isInSetLive()(Code)(Java Doc)
boolean isStatic()(Code)(Java Doc)
void markAsLive()(Code)(Java Doc)
void merge(CompileState compState)(Code)(Java Doc)
void mergeTransform(TransformGroupRetained xform)(Code)(Java Doc)
void setCompiled()(Code)(Java Doc)
void setLive(boolean inBackgroundGroup)(Code)(Java Doc)
void setLive(SetLiveState s)(Code)(Java Doc)
void setSource(SceneGraphObject source)(Code)(Java Doc)
void traverse(boolean sameLevel, int level)(Code)(Java Doc)

Fields inherited from javax.media.j3d.IndexedObject
int[][] listIdx(Code)(Java Doc)

Methods inherited from javax.media.j3d.IndexedObject
synchronized int getIdxUsed(VirtualUniverse u)(Code)(Java Doc)
abstract VirtualUniverse getVirtualUniverse()(Code)(Java Doc)
void incIdxUsed()(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.