org.deegree.rendering.r3d.opengl.tesselation
Class TexturedVertex

java.lang.Object
  extended by org.deegree.rendering.r3d.opengl.tesselation.Vertex
      extended by org.deegree.rendering.r3d.opengl.tesselation.TexturedVertex

public class TexturedVertex
extends Vertex

The TexturedVertex a textured vertex.

Version:
$Revision: 30126 $, $Date: 2011-03-22 11:11:00 +0100 (Tue, 22 Mar 2011) $
Author:
Rutger Bezema, last edited by: $Author: aschmitz $

Constructor Summary
TexturedVertex(float[] coordinates, float[] normal, float[] textureCoordinates)
          Construct a textured vertex with given color and normal.
 
Method Summary
 float[] getTextureCoords()
           
 String toString()
           
 
Methods inherited from class org.deegree.rendering.r3d.opengl.tesselation.Vertex
getCoords, getCoordsAsDouble, getNormal, getNormalizedNormal, hasNormal
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TexturedVertex

public TexturedVertex(float[] coordinates,
                      float[] normal,
                      float[] textureCoordinates)
Construct a textured vertex with given color and normal.

Parameters:
coordinates - of the vertex may not be null and must have a length of 3
normal - if null 1,0,0 will be used.
textureCoordinates - of the vertex may not be null and must have a length of 2
Method Detail

getTextureCoords

public float[] getTextureCoords()
Returns:
the u and v (x,y) texture coordinates of this vertex.

toString

public String toString()
Overrides:
toString in class Vertex


Copyright © 2011. All Rights Reserved.