org.openmali.vecmath2
Class Vertex3f

java.lang.Object
  extended by org.openmali.vecmath2.Vertex3f

public class Vertex3f
extends java.lang.Object

This class represents vertices. A Vertex is composed of coordinates, normals, colors and texture-coordinates.


Field Summary
static int COLORS
           
static int COORDINATES
           
static int NORMALS
           
static int TEXTURE_COORDINATES
           
static int VERTEX_ATTRIBUTES
           
 
Constructor Summary
Vertex3f()
           
Vertex3f(int features)
           
 
Method Summary
 void addFeature(int feature)
           
 void get(Tuple3f coord, Vector3f normal)
           
 void get(Tuple3f coord, Vector3f normal, Colorf color)
           
 void get(Tuple3f coord, Vector3f normal, Colorf color, TexCoord2f texCoord)
           
 void get(Tuple3f coord, Vector3f normal, Colorf color, TexCoord3f texCoord)
           
 void get(Tuple3f coord, Vector3f normal, Colorf color, TexCoord4f texCoord)
           
 Colorf getColor()
           
 void getColor(Colorf color)
           
 Tuple3f getCoord()
           
 void getCoord(Tuple3f coord)
           
 int getFeatures()
           
 Vector3f getNormal()
           
 void getNormal(Vector3f normal)
           
 TexCoord2f getTexCoord2()
           
 void getTexCoord2(TexCoord2f texCoord)
           
 TexCoord3f getTexCoord3()
           
 void getTexCoord3(TexCoord3f texCoord)
           
 TexCoord4f getTexCoord4()
           
 void getTexCoord4(TexCoord4f texCoord)
           
 int getTexCoordSize()
           
 boolean hasFeature(int feature)
           
 void set(Tuple3f coord, Vector3f normal)
           
 void set(Tuple3f coord, Vector3f normal, Colorf color)
           
 void set(Tuple3f coord, Vector3f normal, Colorf color, TexCoord2f texCoord)
           
 void set(Tuple3f coord, Vector3f normal, Colorf color, TexCoord3f texCoord)
           
 void set(Tuple3f coord, Vector3f normal, Colorf color, TexCoord4f texCoord)
           
 void setColor(Colorf color)
           
 void setCoord(Tuple3f coord)
           
 void setFeatures(int features)
           
 void setNormal(Vector3f normal)
           
 void setTexCoord2(TexCoord2f texCoord)
           
 void setTexCoord3(TexCoord3f texCoord)
           
 void setTexCoord4(TexCoord4f texCoord)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COORDINATES

public static final int COORDINATES
See Also:
Constant Field Values

NORMALS

public static final int NORMALS
See Also:
Constant Field Values

COLORS

public static final int COLORS
See Also:
Constant Field Values

TEXTURE_COORDINATES

public static final int TEXTURE_COORDINATES
See Also:
Constant Field Values

VERTEX_ATTRIBUTES

public static final int VERTEX_ATTRIBUTES
See Also:
Constant Field Values
Constructor Detail

Vertex3f

public Vertex3f(int features)

Vertex3f

public Vertex3f()
Method Detail

setFeatures

public void setFeatures(int features)

getFeatures

public int getFeatures()

addFeature

public void addFeature(int feature)

hasFeature

public boolean hasFeature(int feature)

getTexCoordSize

public final int getTexCoordSize()

setCoord

public void setCoord(Tuple3f coord)

getCoord

public void getCoord(Tuple3f coord)

getCoord

public Tuple3f getCoord()

setNormal

public void setNormal(Vector3f normal)

getNormal

public void getNormal(Vector3f normal)

getNormal

public Vector3f getNormal()

setColor

public void setColor(Colorf color)

getColor

public void getColor(Colorf color)

getColor

public Colorf getColor()

setTexCoord2

public void setTexCoord2(TexCoord2f texCoord)

getTexCoord2

public void getTexCoord2(TexCoord2f texCoord)

getTexCoord2

public TexCoord2f getTexCoord2()

setTexCoord3

public void setTexCoord3(TexCoord3f texCoord)

getTexCoord3

public void getTexCoord3(TexCoord3f texCoord)

getTexCoord3

public TexCoord3f getTexCoord3()

setTexCoord4

public void setTexCoord4(TexCoord4f texCoord)

getTexCoord4

public void getTexCoord4(TexCoord4f texCoord)

getTexCoord4

public TexCoord4f getTexCoord4()

set

public void set(Tuple3f coord,
                Vector3f normal)

get

public void get(Tuple3f coord,
                Vector3f normal)

set

public void set(Tuple3f coord,
                Vector3f normal,
                Colorf color)

get

public void get(Tuple3f coord,
                Vector3f normal,
                Colorf color)

set

public void set(Tuple3f coord,
                Vector3f normal,
                Colorf color,
                TexCoord2f texCoord)

get

public void get(Tuple3f coord,
                Vector3f normal,
                Colorf color,
                TexCoord2f texCoord)

set

public void set(Tuple3f coord,
                Vector3f normal,
                Colorf color,
                TexCoord3f texCoord)

get

public void get(Tuple3f coord,
                Vector3f normal,
                Colorf color,
                TexCoord3f texCoord)

set

public void set(Tuple3f coord,
                Vector3f normal,
                Colorf color,
                TexCoord4f texCoord)

get

public void get(Tuple3f coord,
                Vector3f normal,
                Colorf color,
                TexCoord4f texCoord)