|
j3d.org Aviatrix3D | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.j3d.aviatrix3d.SceneGraphObject
org.j3d.aviatrix3d.NodeComponent
org.j3d.aviatrix3d.TextureComponent
org.j3d.aviatrix3d.TextureComponent2D
org.j3d.aviatrix3d.ImageTextureComponent2D
Wraps a 2D image.
Field Summary |
Fields inherited from class org.j3d.aviatrix3d.TextureComponent2D |
height |
Fields inherited from class org.j3d.aviatrix3d.TextureComponent |
data, format, FORMAT_BGR, FORMAT_BGRA, FORMAT_INTENSITY_ALPHA, FORMAT_RGB, FORMAT_RGBA, FORMAT_SINGLE_COMPONENT, invertY, numLevels, size, type, TYPE_BYTE, TYPE_INT, width |
Fields inherited from class org.j3d.aviatrix3d.NodeComponent |
liveCount |
Fields inherited from class org.j3d.aviatrix3d.SceneGraphObject |
alive, updateHandler, WRITE_TIMING_MSG |
Constructor Summary | |
ImageTextureComponent2D()
Constructs an image with default values. |
|
ImageTextureComponent2D(boolean yUp)
Constructs an image with default values. |
|
ImageTextureComponent2D(int format,
int width,
int height,
java.awt.image.RenderedImage srcImage)
Constructs an Image2D using the specified format, width, height and rendered image. |
|
ImageTextureComponent2D(int format,
int width,
int height,
java.awt.image.RenderedImage srcImage,
boolean yUp)
Constructs an Image2D using the specified format, width, height and rendered image. |
|
ImageTextureComponent2D(int format,
java.awt.image.RenderedImage srcImage)
Constructs an Image2D using the specified format and rendered image. |
|
ImageTextureComponent2D(int format,
java.awt.image.RenderedImage[] srcImages)
Constructs an Image2D using the specified format and an array of rendered images. |
|
ImageTextureComponent2D(int format,
java.awt.image.RenderedImage[] srcImages,
boolean yUp)
Constructs an Image2D using the specified format and rendered images. |
|
ImageTextureComponent2D(int format,
java.awt.image.RenderedImage srcImage,
boolean yUp)
Constructs an Image2D using the specified format and rendered image. |
Method Summary | |
protected java.nio.ByteBuffer |
convertImage(int level)
Convenience method to convert a buffered image into a NIO array of the corresponding type. |
void |
updateSubImage(int srcX,
int srcY,
int destX,
int destY,
int widht,
int height,
int lvl,
java.awt.image.RenderedImage img)
Update a sub-section of the image data with the new pixel values. |
Methods inherited from class org.j3d.aviatrix3d.TextureComponent2D |
getHeight |
Methods inherited from class org.j3d.aviatrix3d.TextureComponent |
clearData, getData, getFormat, getNumLevels, getWidth, isYUp |
Methods inherited from class org.j3d.aviatrix3d.NodeComponent |
addParent, getParents, hasChanged, numParents, removeParent, renderState, restoreState |
Methods inherited from class org.j3d.aviatrix3d.SceneGraphObject |
checkForCyclicChild, checkForCyclicParent, dataChanged, getUserData, isLive, setLive, setUpdateHandler, setUserData |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ImageTextureComponent2D()
public ImageTextureComponent2D(boolean yUp)
yUp
- Change the image aroud the Y axis if neededpublic ImageTextureComponent2D(int format, int width, int height, java.awt.image.RenderedImage srcImage)
format
- The image format. RGB, RGBA currentlywidth
- The width of the imageheight
- The height of the imagesrcImage
- The image datapublic ImageTextureComponent2D(int format, int width, int height, java.awt.image.RenderedImage srcImage, boolean yUp)
format
- The image format. RGB, RGBA currentlywidth
- The width of the imageheight
- The height of the imagesrcImage
- The image datayUp
- Change the image aroud the Y axis if neededpublic ImageTextureComponent2D(int format, java.awt.image.RenderedImage srcImage)
format
- The image format. RGB, RGBA currentlypublic ImageTextureComponent2D(int format, java.awt.image.RenderedImage[] srcImages)
format
- The image format. RGB, RGBA currentlysrcImages
- The image data. They must all be of the same typepublic ImageTextureComponent2D(int format, java.awt.image.RenderedImage srcImage, boolean yUp)
format
- The image format. RGB, RGBA currentlyyUp
- Change the image aroud the Y axis if neededpublic ImageTextureComponent2D(int format, java.awt.image.RenderedImage[] srcImages, boolean yUp)
format
- The image format. RGB, RGBA currentlysrcImages
- The image datayUp
- Change the image aroud the Y axis if neededMethod Detail |
public void updateSubImage(int srcX, int srcY, int destX, int destY, int widht, int height, int lvl, java.awt.image.RenderedImage img) throws InvalidWriteTimingException
updateSubImage
in interface ImageTextureComponent
srcX
- The starting X offset in the existing image spacesrcY
- The starting Y offset in the existing image spacedestX
- The starting X offset in the existing image spacedestY
- The starting Y offset in the existing image spaceheight
- The height of the section to replaceimg
- The image to take data fromwidht
- The width of the section to replace
InvalidWriteTimingException
- An attempt was made to write outside
of the NodeUpdateListener callback methodprotected java.nio.ByteBuffer convertImage(int level)
convertImage
in class TextureComponent
level
- Which image level needs to be converted
|
j3d.org Aviatrix3D | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |