de.javagl.utils.obj
Interface ObjTarget

All Known Implementing Classes:
DefaultObj

public interface ObjTarget

Interface for all classes that may receive the data that is read from an OBJ file.


Method Summary
 void addFace(ObjFace face)
          Add the given face to this ObjTarget
 void addGroup(ObjGroup group)
          Add the given group to this ObjTarget
 void addMaterialGroup(ObjGroup group)
          Add the given material group to this ObjTarget
 void addNormal(FloatTuple normal)
          Add the given normal to this ObjTarget
 void addTexCoord(FloatTuple texCoord)
          Add the given texture coordinate to this ObjTarget
 void addVertex(FloatTuple vertex)
          Add the given vertex to this ObjTarget
 void setMtlFileName(String mtlFileName)
          Set the given MTL file name that was read from the 'mtllib' line of the OBJ file.
 

Method Detail

addVertex

void addVertex(FloatTuple vertex)
Add the given vertex to this ObjTarget

Parameters:
vertex - The vertex to add.

addTexCoord

void addTexCoord(FloatTuple texCoord)
Add the given texture coordinate to this ObjTarget

Parameters:
texCoord - The texture coordinate to add.

addNormal

void addNormal(FloatTuple normal)
Add the given normal to this ObjTarget

Parameters:
normal - The normal to add.

addFace

void addFace(ObjFace face)
Add the given face to this ObjTarget

Parameters:
face - The face to add.

addGroup

void addGroup(ObjGroup group)
Add the given group to this ObjTarget

Parameters:
group - The group to add.

addMaterialGroup

void addMaterialGroup(ObjGroup group)
Add the given material group to this ObjTarget

Parameters:
group - The material group to add.

setMtlFileName

void setMtlFileName(String mtlFileName)
Set the given MTL file name that was read from the 'mtllib' line of the OBJ file.

Parameters:
mtlFileName - The name of the MTL file