|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.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 groupMethod Detail |
---|
public boolean containsTexCoordIndices()
ObjFace
containsTexCoordIndices
in interface ObjFace
public boolean containsNormalIndices()
ObjFace
containsNormalIndices
in interface ObjFace
public int getVertexIndex(int number)
ObjFace
getVertexIndex
in interface ObjFace
number
- The number of the vertex
public int getTexCoordIndex(int number)
ObjFace
getTexCoordIndex
in interface ObjFace
number
- The number of the texture coordinate
public int getNormalIndex(int number)
ObjFace
getNormalIndex
in interface ObjFace
number
- The number of the normal
public int getNumVertices()
ObjFace
getNumVertices
in interface ObjFace
public ObjGroup getGroup()
ObjFace
getGroup
in interface ObjFace
public ObjGroup getMaterialGroup()
ObjFace
getMaterialGroup
in interface ObjFace
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |