net.java.joglutils.msg.misc
Class PrimitiveVertex

java.lang.Object
  extended by net.java.joglutils.msg.misc.PrimitiveVertex
All Implemented Interfaces:
Cloneable
Direct Known Subclasses:
PickedPoint

public class PrimitiveVertex
extends Object
implements Cloneable

Represents a vertex on a primitive, including pieces of relevant information such as location, surface normal and texture coordinates.


Constructor Summary
PrimitiveVertex()
           
 
Method Summary
 Object clone()
           
 PrimitiveVertex copy()
          Performs a "deep copy" of this PrimitiveVertex so that it shares none of its contents with this one.
 Vec4f getColor()
          Returns the color in this PrimitiveVertex, or null if it is not known.
 Vec3f getCoord()
          Returns the coordinate in this PrimitiveVertex, or null if it is not known.
 Vec3f getNormal()
          Returns the normal in this PrimitiveVertex, or null if it is not known.
 Vec2f getTexCoord()
          Returns the texture coordinate in this PrimitiveVertex, or null if it is not known.
 void setColor(Vec4f color)
          Sets the color in this PrimitiveVertex.
 void setCoord(Vec3f coord)
          Sets the coordinate in this PrimitiveVertex.
 void setNormal(Vec3f normal)
          Sets the normal in this PrimitiveVertex.
 void setTexCoord(Vec2f texCoord)
          Sets the texture coordinate in this PrimitiveVertex.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrimitiveVertex

public PrimitiveVertex()
Method Detail

clone

public Object clone()
Overrides:
clone in class Object

copy

public PrimitiveVertex copy()
Performs a "deep copy" of this PrimitiveVertex so that it shares none of its contents with this one.


setCoord

public void setCoord(Vec3f coord)
Sets the coordinate in this PrimitiveVertex. Refers to the passed vector by reference.


getCoord

public Vec3f getCoord()
Returns the coordinate in this PrimitiveVertex, or null if it is not known.


setTexCoord

public void setTexCoord(Vec2f texCoord)
Sets the texture coordinate in this PrimitiveVertex. Refers to the passed vector by reference.


getTexCoord

public Vec2f getTexCoord()
Returns the texture coordinate in this PrimitiveVertex, or null if it is not known.


setColor

public void setColor(Vec4f color)
Sets the color in this PrimitiveVertex. Refers to the passed vector by reference.


getColor

public Vec4f getColor()
Returns the color in this PrimitiveVertex, or null if it is not known.


setNormal

public void setNormal(Vec3f normal)
Sets the normal in this PrimitiveVertex. Refers to the passed vector by reference.


getNormal

public Vec3f getNormal()
Returns the normal in this PrimitiveVertex, or null if it is not known.