|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.md5importer.model.mesh.primitive.Vertex
public class Vertex
Vertex defines the concrete implementation of a vertex.
Vertex cannot be cloned directly. The cloning process
of Vertex can only be initiated by the cloning process
of the parent IMesh.
This class is used internally by MD5Importer only.
| Constructor Summary | |
|---|---|
Vertex()
Constructor of Vertex. |
|
Vertex(int index)
Constructor of Vertex. |
|
| Method Summary | |
|---|---|
IVertex |
clone(IWeight[] clonedWeights)
Clone this vertex. |
java.lang.Class |
getClassTag()
|
int |
getIndex()
Retrieve the index value of this vertex. |
com.jme.math.Vector3f |
getNormal()
Retrieve the normal of this vertex. |
com.jme.math.Vector3f |
getPosition()
Retrieve the position of this vertex. |
com.jme.math.Vector2f |
getTextureCoords()
Retrieve the texture coordinates of this vertex. |
int |
getUsedTimes()
Retrieve the number of times this vertex has been used. |
void |
incrementUsedTimes()
Increment the number of times this vertex has been used by a triangle |
void |
processPosition()
Process the vertex position. |
void |
read(com.jme.util.export.JMEImporter im)
|
void |
resetInformation()
Reset the normal and position information of this vertex. |
void |
setNormal(com.jme.math.Vector3f normal)
Set the normal vector of this vertex. |
void |
setNormalReference(com.jme.math.Vector3f normal)
Set this vertex to directly use the given reference as normal. |
void |
setTextureCoords(float u,
float v)
Set the texture coordinates of this vertex. |
void |
setWeights(IWeight... weights)
Set weights that affects this vertex |
void |
write(com.jme.util.export.JMEExporter ex)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Vertex()
Vertex.
public Vertex(int index)
Vertex.
index - The Integer index value.| Method Detail |
|---|
public void processPosition()
IVertex
processPosition in interface IVertexpublic void resetInformation()
IVertex
resetInformation in interface IVertexpublic void incrementUsedTimes()
IVertex
incrementUsedTimes in interface IVertex
public void setTextureCoords(float u,
float v)
IVertex
setTextureCoords in interface IVertexu - The u value.v - The un-inverted v value.public void setWeights(IWeight... weights)
IVertex
setWeights in interface IVertexweights - The variable argument of IWeight.public void setNormal(com.jme.math.Vector3f normal)
IVertex
setNormal in interface IVertexnormal - The normal Vector3f to be set.public void setNormalReference(com.jme.math.Vector3f normal)
IVertex
setNormalReference in interface IVertexnormal - The Vector3f normal reference.public com.jme.math.Vector2f getTextureCoords()
IVertex
getTextureCoords in interface IVertexVector2f texture coordinates.public int getUsedTimes()
IVertex
getUsedTimes in interface IVertexInteger number of used times.public com.jme.math.Vector3f getPosition()
IVertex
getPosition in interface IVertexVector3f position.public com.jme.math.Vector3f getNormal()
IVertex
getNormal in interface IVertexVector3f.public int getIndex()
IVertex
getIndex in interface IVertexInteger index.public java.lang.Class getClassTag()
getClassTag in interface com.jme.util.export.Savable
public void write(com.jme.util.export.JMEExporter ex)
throws java.io.IOException
write in interface com.jme.util.export.Savablejava.io.IOException
public void read(com.jme.util.export.JMEImporter im)
throws java.io.IOException
read in interface com.jme.util.export.Savablejava.io.IOExceptionpublic IVertex clone(IWeight[] clonedWeights)
IVertex
clone in interface IVertexVertex
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||