org.deegree.rendering.r3d.model.geometry
Class TexturedGeometry
java.lang.Object
org.deegree.rendering.r3d.model.geometry.SimpleAccessGeometry
org.deegree.rendering.r3d.model.geometry.TexturedGeometry
- All Implemented Interfaces:
- java.io.Serializable, MemoryAware, QualityModelPart
public class TexturedGeometry
- extends SimpleAccessGeometry
The RenderableTexturedGeometry class TODO add class documentation here.
- Version:
- $Revision: 15598 $, $Date: 2009-01-12 15:03:49 +0100 (Mo, 12 Jan 2009) $
- Author:
- Rutger Bezema, last edited by: $Author: rbezema $
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
TexturedGeometry
public TexturedGeometry(float[] geometry,
SimpleGeometryStyle style,
java.lang.String texture,
float[] textureCoordinates)
- Parameters:
geometry - style - texture - to usetextureCoordinates - of this data
TexturedGeometry
public TexturedGeometry(float[] geometry,
java.lang.String texture,
float[] textureCoordinates)
- Parameters:
geometry - texture - textureCoordinates -
TexturedGeometry
public TexturedGeometry(float[] geometry,
int[] innerRings,
java.lang.String texture,
float[] textureCoordinates)
- Parameters:
geometry - innerRings - texture - textureCoordinates -
getTexture
public final java.lang.String getTexture()
- Returns:
- the texture
setTexture
public final void setTexture(java.lang.String texture)
- Parameters:
texture - the texture to set
getTextureCoordinates
public final float[] getTextureCoordinates()
- Returns:
- the textureCoordinates
setTextureCoordinates
public final void setTextureCoordinates(float[] textureCoordinates)
- Parameters:
textureCoordinates - the textureCoordinates to set
getTextureCoordinate
public float[] getTextureCoordinate(int location)
- Parameters:
location - of the x ordinate of the requested texture coordinate.
- Returns:
- a copy of the coordinate at the given location (location, location +1)
- Throws:
java.lang.IndexOutOfBoundsException - is outside the coordinate array
getTextureCoordinateForVertex
public float[] getTextureCoordinateForVertex(int vertex)
- Parameters:
vertex - the vertex index(starting at 0), e.g. if you would like to get the texture coordinates for the second
vertex the vertex index would be 1
- Returns:
- a copy of the texture coordinates for the given vertex.
- Throws:
java.lang.IndexOutOfBoundsException - is outside the coordinate array
toString
public java.lang.String toString()
- Overrides:
toString in class SimpleAccessGeometry
sizeOf
public long sizeOf()
- Specified by:
sizeOf in interface MemoryAware- Overrides:
sizeOf in class SimpleAccessGeometry
- Returns:
- the bytes this geometry occupies
Copyright © 2011. All Rights Reserved.