org.jagatoo.loaders.models.ac3d
Class AC3DModelPrototype

java.lang.Object
  extended by org.jagatoo.loaders.models.ac3d.AC3DModelPrototype

public class AC3DModelPrototype
extends java.lang.Object

Representation of the AC3D model

Version:
1.1
Author:
Jeremy, Amos Wenger (aka BlueSky) [code cleaning], Marvin Froehlich (aka Qudus) [code cleaning]

Constructor Summary
AC3DModelPrototype(AC3DHeader header)
          Constructs a default AC3DModel
 
Method Summary
 void addMaterial(AC3DMaterial newMaterial)
          Adds an AC3DMaterial to the model
 void addObject(AC3DObject object)
          Adds an object to the model
 AC3DHeader getHeader()
           
 AC3DMaterial getMaterial(int index)
           
 java.util.ArrayList<AC3DMaterial> getMaterials()
           
 java.util.ArrayList<AC3DObject> getObjects()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AC3DModelPrototype

public AC3DModelPrototype(AC3DHeader header)
Constructs a default AC3DModel

Parameters:
header - the AC3DHeader to set as this model's header
Method Detail

getHeader

public AC3DHeader getHeader()
Returns:
the AC3DHeader of this model

addObject

public void addObject(AC3DObject object)
Adds an object to the model

Parameters:
object - The AC3DObject to add to this model

getObjects

public java.util.ArrayList<AC3DObject> getObjects()
Returns:
The AC3DObjects

addMaterial

public void addMaterial(AC3DMaterial newMaterial)
Adds an AC3DMaterial to the model

Parameters:
newMaterial - The AC3DMaterial to add to this model

getMaterials

public java.util.ArrayList<AC3DMaterial> getMaterials()
Returns:
The AC3DMaterials

getMaterial

public AC3DMaterial getMaterial(int index)
Returns:
The AC3DMaterial with the given index.