|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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,
double dataMinX,
double dataMinY,
double dataMaxX,
double dataMaxY,
int textureWidth,
int textureHeight,
ByteBuffer imageData,
boolean hasAlpha,
boolean enableCaching)
|
|
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)
|
double |
getDataMaxX()
|
double |
getDataMaxY()
|
double |
getDataMinX()
|
double |
getDataMinY()
|
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, double dataMinX, double dataMinY, double dataMaxX, double dataMaxY, int textureWidth, int textureHeight, ByteBuffer imageData, boolean hasAlpha, boolean enableCaching)
minX
- minY
- maxX
- maxY
- dataMinX
- dataMinY
- dataMaxX
- dataMaxY
- textureWidth
- textureHeight
- imageData
- hasAlpha
- enableCaching
- Method Detail |
---|
public void dispose()
public boolean enableCaching()
public ByteBuffer getImageData()
public double getMinX()
public double getMinY()
public double getMaxX()
public double getMaxY()
public final double getDataMinX()
public final double getDataMinY()
public final double getDataMaxX()
public final double getDataMaxY()
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 Object
public int getId()
public int hashCode()
Combining the hash code(s) computed above: result = 37 * result + code;
hashCode
in class Object
Object.hashCode()
public boolean equals(Object other)
equals
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |