|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectunc.cdva.graphics.models.ObjData
public class ObjData
The data that has been read from the Wavefront .obj file. This is kept seperate from the actual rendering with the hope the data might be used for some other rendering engine in the future.
Constructor Summary | |
---|---|
ObjData(java.io.InputStream inObject,
java.io.InputStream inMaterial)
Create a new set of OBJ data by reading it in from the specified input stream. |
Method Summary | |
---|---|
Face |
getFace(int index)
Get the data for specific face |
int |
getFaceCount()
Get the number of faces found in the model file |
Material |
getMaterial(int materialId)
Get the material for material id |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ObjData(java.io.InputStream inObject, java.io.InputStream inMaterial) throws java.io.IOException
inObject
- The input stream from which to read the
OBJ datainMaterial
- The input stream from which to read the
material data
java.io.IOException
- Indicates a failure to read from the
streamMethod Detail |
---|
public int getFaceCount()
public Face getFace(int index)
index
- The index of the face whose data should be
retrieved
public Material getMaterial(int materialId)
materialId
- The material index of the face whose data
should be retrieved
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |