|
deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.deegree.rendering.r3d.opengl.rendering.dem.texturing.TextureTile
public class TextureTile
The TextureTile define the parameters necessary to create, request and render a texture to the DEM.
Texture are created and rendered with following options:
| Constructor Summary | |
|---|---|
TextureTile(double minX,
double minY,
double maxX,
double maxY,
float metersPerPixel,
int textureWidth,
int textureHeight,
PooledByteBuffer pooledBuffer,
boolean hasAlpha,
boolean enableCaching)
Construct a new texture tile. |
|
TextureTile(double minX,
double minY,
double maxX,
double maxY,
int textureWidth,
int textureHeight,
ByteBuffer imageData,
boolean hasAlpha,
boolean enableCaching)
Construct a new texture tile. |
|
| Method Summary | |
|---|---|
void |
disable(javax.media.opengl.GL gl,
int refID)
Remove the texture from the context. |
void |
dispose()
Clean up all reference to the byte buffer. |
int |
enable(javax.media.opengl.GL gl,
int refID)
|
boolean |
enableCaching()
|
boolean |
equals(Object other)
|
int |
getHeight()
|
int |
getId()
|
ByteBuffer |
getImageData()
|
double |
getMaxX()
|
double |
getMaxY()
|
double |
getMetersPerPixel()
|
double |
getMinX()
|
double |
getMinY()
|
int |
getWidth()
|
int |
hashCode()
Implementation as proposed by Joshua Block in Effective Java (Addison-Wesley 2001), which supplies an even distribution and is relatively fast. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TextureTile(double minX,
double minY,
double maxX,
double maxY,
int textureWidth,
int textureHeight,
ByteBuffer imageData,
boolean hasAlpha,
boolean enableCaching)
minX - minY - maxX - maxY - textureWidth - textureHeight - imageData - hasAlpha - enableCaching -
public TextureTile(double minX,
double minY,
double maxX,
double maxY,
float metersPerPixel,
int textureWidth,
int textureHeight,
PooledByteBuffer pooledBuffer,
boolean hasAlpha,
boolean enableCaching)
minX - minY - maxX - maxY - metersPerPixel - the resolution of a pixel in meters.textureWidth - textureHeight - pooledBuffer - hasAlpha - enableCaching - true if the gpu cache of the TextureManager and / or the memory cache of the
TextureTileManager should be used.| Method Detail |
|---|
public void dispose()
public boolean enableCaching()
public ByteBuffer getImageData()
public double getMinX()
public double getMinY()
public double getMaxX()
public double getMaxY()
public double getMetersPerPixel()
public int getWidth()
public int getHeight()
public int enable(javax.media.opengl.GL gl,
int refID)
gl - context to load this texture to.refID - of the enabling fragment.
public void disable(javax.media.opengl.GL gl,
int refID)
gl - refID - of the fragment which needed this texture tile.public String toString()
toString in class Objectpublic int getId()
public int hashCode()
Combining the hash code(s) computed above: result = 37 * result + code;
hashCode in class ObjectObject.hashCode()public boolean equals(Object other)
equals in class Object
|
deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||