org.jagatoo.loaders.models.tds.chunks.processors
Class ChunkProcessor

java.lang.Object
  extended by org.jagatoo.loaders.models.tds.chunks.processors.ChunkProcessor
Direct Known Subclasses:
AmbientProcessor, DiffuseProcessor, FaceArrayProcessor, HFramesProcessor, HierarchyHeaderProcessor, HierarchyProcessor, HLinkProcessor, InstanceNameProcessor, MagicProcessor, MaterialProcessor, MeshMaterialProcessor, MeshMatrixProcessor, NamedObjectProcessor, NodeIDProcessor, PivotProcessor, PointArrayProcessor, ShininessProcessor, ShininessStrengthProcessor, SmoothGroupProcessor, SpecularProcessor, TexCoordProcessor, TexMapProcessor, TransformTrackProcessor, TransparencyProcessor, TwoSideProcessor

public abstract class ChunkProcessor
extends java.lang.Object

An object to process a single chunk from the 3DS file


Constructor Summary
ChunkProcessor()
           
 
Method Summary
static ChunkProcessor getChunkProcessor(int id)
           
static ChunkProcessor getChunkProcessor(TDSChunkType chunkType)
           
abstract  void process(TDSFile file, AppearanceFactory appFactory, GeometryFactory geomFactory, NodeFactory nodeFactory, AnimationFactory animFactory, SpecialItemsHandler siHandler, ModelContext context, int length)
           
protected static void storeChunkProcessorSingleton(TDSChunkType ct, ChunkProcessor cp)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChunkProcessor

public ChunkProcessor()
Method Detail

storeChunkProcessorSingleton

protected static final void storeChunkProcessorSingleton(TDSChunkType ct,
                                                         ChunkProcessor cp)

getChunkProcessor

public static final ChunkProcessor getChunkProcessor(int id)

getChunkProcessor

public static final ChunkProcessor getChunkProcessor(TDSChunkType chunkType)

process

public abstract void process(TDSFile file,
                             AppearanceFactory appFactory,
                             GeometryFactory geomFactory,
                             NodeFactory nodeFactory,
                             AnimationFactory animFactory,
                             SpecialItemsHandler siHandler,
                             ModelContext context,
                             int length)
                      throws java.io.IOException
Throws:
java.io.IOException