|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.javagl.utils.obj.impl.DefaultObjFace
public class DefaultObjFace
Default implementation of an ObjFace
| Constructor Summary | |
|---|---|
DefaultObjFace(int[] vertexIndices,
int[] texCoordIndices,
int[] normalIndices,
ObjGroup group,
ObjGroup materialGroup)
Creates a Face from the given parameters |
|
| Method Summary | |
|---|---|
boolean |
containsNormalIndices()
Returns whether this face contains normal indices |
boolean |
containsTexCoordIndices()
Returns whether this face contains texture coordinate indices |
ObjGroup |
getGroup()
Returns the group that this face belongs to |
ObjGroup |
getMaterialGroup()
Returns the material group that this face belongs to |
int |
getNormalIndex(int number)
Returns the index of the normal with the given number. |
int |
getNumVertices()
Returns the number of vertices this face consists of. |
int |
getTexCoordIndex(int number)
Returns the index of the texture coordinate with the given number. |
int |
getVertexIndex(int number)
Returns the index of the vertex with the given number. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultObjFace(int[] vertexIndices,
int[] texCoordIndices,
int[] normalIndices,
ObjGroup group,
ObjGroup materialGroup)
vertexIndices - The vertex indicestexCoordIndices - The texture coordinate indicesnormalIndices - The normal indicesgroup - The groupmaterialGroup - The material group| Method Detail |
|---|
public boolean containsTexCoordIndices()
ObjFace
containsTexCoordIndices in interface ObjFacepublic boolean containsNormalIndices()
ObjFace
containsNormalIndices in interface ObjFacepublic int getVertexIndex(int number)
ObjFace
getVertexIndex in interface ObjFacenumber - The number of the vertex
public int getTexCoordIndex(int number)
ObjFace
getTexCoordIndex in interface ObjFacenumber - The number of the texture coordinate
public int getNormalIndex(int number)
ObjFace
getNormalIndex in interface ObjFacenumber - The number of the normal
public int getNumVertices()
ObjFace
getNumVertices in interface ObjFacepublic ObjGroup getGroup()
ObjFace
getGroup in interface ObjFacepublic ObjGroup getMaterialGroup()
ObjFace
getMaterialGroup in interface ObjFacepublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||