|
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
A component that contains image data to be used in textures.
Field Summary | |
protected java.nio.ByteBuffer[] |
data
Buffer to hold the data |
protected int |
format
The format |
static int |
FORMAT_BGR
Specifies the image is in Windows BGR format |
static int |
FORMAT_BGRA
Specifies the image is in Windows BGRA format |
static int |
FORMAT_INTENSITY_ALPHA
Specifies the image is in 2-component Intensity-Alpha format |
static int |
FORMAT_RGB
Specifies the image is in RGB format |
static int |
FORMAT_RGBA
Specifies the image is in RGBA format |
static int |
FORMAT_SINGLE_COMPONENT
Specifies the image is in 1-component Intensity or Alpha format |
protected boolean |
invertY
Flag describing whether the Y axis should be inverted before use. |
protected int |
numLevels
The number of levels in this component. |
protected int |
size
The size of the data buffer |
protected int |
type
The type of the data |
static int |
TYPE_BYTE
Specifies the data is in byte format |
static int |
TYPE_INT
Specifies the data is in int format |
protected int |
width
The 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 | |
TextureComponent(int numLevels)
Constructs an image with default values. |
Method Summary | |
protected void |
clearData(int level)
Clear the storage used for this object. |
abstract void |
clearLocalData()
Clear local data stored in this node. |
protected abstract java.nio.ByteBuffer |
convertImage(int level)
Convenience method to convert a buffered image into a NIO array of the corresponding type. |
protected java.nio.ByteBuffer |
getData(int level)
Get the underlying data object. |
int |
getFormat(int level)
Get the format of this image. |
int |
getNumLevels()
Get the number of levels in this component. |
int |
getWidth()
Get the width of this image. |
boolean |
isYUp()
Get the current value of the Y-axis inversion flag. |
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 |
Field Detail |
public static final int FORMAT_RGB
public static final int FORMAT_RGBA
public static final int FORMAT_BGR
public static final int FORMAT_BGRA
public static final int FORMAT_INTENSITY_ALPHA
public static final int FORMAT_SINGLE_COMPONENT
public static final int TYPE_BYTE
public static final int TYPE_INT
protected int width
protected int format
protected int size
protected int type
protected java.nio.ByteBuffer[] data
protected boolean invertY
protected int numLevels
Constructor Detail |
public TextureComponent(int numLevels)
numLevels
- The number of mipmap levels to createMethod Detail |
public int getNumLevels()
public int getWidth()
public int getFormat(int level)
public boolean isYUp()
public abstract void clearLocalData()
protected java.nio.ByteBuffer getData(int level)
level
- Which image level needs to be converted
protected void clearData(int level)
level
- Which image level needs to be convertedprotected abstract java.nio.ByteBuffer convertImage(int level)
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 |