org.jagatoo.loaders.models.tds.internal
Class ModelContext

java.lang.Object
  extended by org.jagatoo.loaders.models.tds.internal.ModelContext

public class ModelContext
extends java.lang.Object

A set of data pertaining to the model being built. This is all made public for convienience. Since it represents no real world object and is literally a data store this seems feasible. Not very convincing huh?


Field Summary
 boolean animationFound
           
 java.util.ArrayList<java.lang.Object> animControllers
           
 NamedObject appearance
           
 java.util.HashMap<java.lang.String,NamedObject> appearanceMap
           
 java.lang.String appName
           
 NamedObject coloringAttributes
           
 FaceCullMode faceCullMode
           
 java.util.HashMap<FaceCullMode,NamedObject> faceCullPolyAttribsCache
           
 Face[] faces
           
 boolean facesCreated
           
 int father
           
 int framesCount
           
 NamedObject geometry
           
 java.lang.String instanceName
           
 java.util.HashMap<java.lang.String,ModelContext> instanceTable
           
 NamedObject material
           
 boolean meshDataBegun
           
 java.util.ArrayList<NamedObject> nestedNodes
           
 int nodeID
           
 java.util.HashMap<java.lang.Integer,NamedObject> nodeIDMap
           
 java.lang.String nodeName
           
 int numberOfFaces
           
 int numberOfVerts
           
 java.lang.String objectName
           
 java.util.HashMap<java.lang.String,NamedObject> objectTable
           
 RotTransform orientation
           
 org.openmali.vecmath2.Point3f pivot
           
 java.util.ArrayList<NamedObject> rootNodes
           
 ScaleTransform scale
           
 NamedObject shape
           
 java.util.ArrayList<Face>[] sharedFaces
           
 float shininess
           
 Surface[] surfaces
           
 NamedObject textureAttributes
           
 org.openmali.vecmath2.TexCoord2f[] textureCoords
           
 int totalFaces
           
 int totalVerts
           
 PosTransform translation
           
 float transparency
           
 java.util.HashSet<NamedObject> unanimatedNodes
           
 org.openmali.vecmath2.Point3f[] vertexCoords
           
 
Constructor Summary
ModelContext()
           
 
Method Summary
 void applyAppearanceAttributes(NodeFactory nodeFactory)
           
 void composeAppearance(AppearanceFactory appFactory)
           
 void createUnsmoothedFaces(GeometryFactory geomFactory, NodeFactory nodeFactory)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

totalVerts

public int totalVerts

totalFaces

public int totalFaces

transparency

public float transparency

objectName

public java.lang.String objectName

shape

public NamedObject shape

vertexCoords

public org.openmali.vecmath2.Point3f[] vertexCoords

sharedFaces

public java.util.ArrayList<Face>[] sharedFaces

surfaces

public Surface[] surfaces

textureCoords

public org.openmali.vecmath2.TexCoord2f[] textureCoords

numberOfVerts

public int numberOfVerts

objectTable

public java.util.HashMap<java.lang.String,NamedObject> objectTable

nodeIDMap

public java.util.HashMap<java.lang.Integer,NamedObject> nodeIDMap

unanimatedNodes

public java.util.HashSet<NamedObject> unanimatedNodes

rootNodes

public java.util.ArrayList<NamedObject> rootNodes

nestedNodes

public java.util.ArrayList<NamedObject> nestedNodes

animControllers

public java.util.ArrayList<java.lang.Object> animControllers

instanceTable

public java.util.HashMap<java.lang.String,ModelContext> instanceTable

faces

public Face[] faces

numberOfFaces

public int numberOfFaces

geometry

public NamedObject geometry

orientation

public RotTransform orientation

scale

public ScaleTransform scale

translation

public PosTransform translation

instanceName

public java.lang.String instanceName

nodeName

public java.lang.String nodeName

nodeID

public int nodeID

father

public int father

appearanceMap

public java.util.HashMap<java.lang.String,NamedObject> appearanceMap

faceCullPolyAttribsCache

public java.util.HashMap<FaceCullMode,NamedObject> faceCullPolyAttribsCache

textureAttributes

public NamedObject textureAttributes

coloringAttributes

public NamedObject coloringAttributes

faceCullMode

public FaceCullMode faceCullMode

material

public NamedObject material

shininess

public float shininess

appName

public java.lang.String appName

appearance

public NamedObject appearance

meshDataBegun

public boolean meshDataBegun

facesCreated

public boolean facesCreated

animationFound

public boolean animationFound

pivot

public org.openmali.vecmath2.Point3f pivot

framesCount

public int framesCount
Constructor Detail

ModelContext

public ModelContext()
Method Detail

composeAppearance

public void composeAppearance(AppearanceFactory appFactory)

applyAppearanceAttributes

public void applyAppearanceAttributes(NodeFactory nodeFactory)

createUnsmoothedFaces

public void createUnsmoothedFaces(GeometryFactory geomFactory,
                                  NodeFactory nodeFactory)