org.auxilum.opengl.importing.milkshape
Class MilkShapeModel

java.lang.Object
  extended byorg.auxilum.opengl.importing.milkshape.MilkShapeModel
All Implemented Interfaces:
Model

public class MilkShapeModel
extends java.lang.Object
implements Model


Constructor Summary
MilkShapeModel(java.lang.String milkshapeAsciiFile, java.lang.String modelName)
          Constructor that takes a MilkShape ASCII file as it's argument
 
Method Summary
 boolean getDoRender()
           
 Material[] getMaterials()
           
 int getMeshCount()
          Returns the number of meshes in this model
 Mesh[] getMeshes()
          Returns the meshes that this model consists of
 java.lang.String getName()
          Returns the unique name of this model
 float[] getPosition()
           
 void setDoRender(boolean doRender)
           
 void setPosition(float[] position)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MilkShapeModel

public MilkShapeModel(java.lang.String milkshapeAsciiFile,
                      java.lang.String modelName)
Constructor that takes a MilkShape ASCII file as it's argument

Method Detail

setPosition

public void setPosition(float[] position)
Specified by:
setPosition in interface Model

getPosition

public float[] getPosition()
Specified by:
getPosition in interface Model

setDoRender

public void setDoRender(boolean doRender)
Specified by:
setDoRender in interface Model

getDoRender

public boolean getDoRender()
Specified by:
getDoRender in interface Model

getName

public java.lang.String getName()
Description copied from interface: Model
Returns the unique name of this model

Specified by:
getName in interface Model

getMeshCount

public int getMeshCount()
Returns the number of meshes in this model


getMeshes

public Mesh[] getMeshes()
Returns the meshes that this model consists of

Specified by:
getMeshes in interface Model

getMaterials

public Material[] getMaterials()
Specified by:
getMaterials in interface Model