com.microcrowd.loader.java3d.max3ds.chunks
Class ColorChunk

java.lang.Object
  extended by com.microcrowd.loader.java3d.max3ds.chunks.Chunk
      extended by com.microcrowd.loader.java3d.max3ds.chunks.ColorChunk
Direct Known Subclasses:
GlobalColorChunk

public class ColorChunk
extends Chunk

Loads colors from binary data representing them.


Field Summary
protected  int currentColorType
           
 
Constructor Summary
ColorChunk()
           
 
Method Summary
protected  int getColorType(ChunkChopper chopper)
          Gets the color type for this chunk.
 void loadData(ChunkChopper chopper)
          Based on the color type retrieved from getColorType(com.microcrowd.loader.java3d.max3ds.ChunkChopper) loads an rgb or float color and pushes it onto the chunk chopper.
 
Methods inherited from class com.microcrowd.loader.java3d.max3ds.chunks.Chunk
addSubChunk, getDescription, getName, getSubChunk, initialize, setDescription, setName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

currentColorType

protected int currentColorType
Constructor Detail

ColorChunk

public ColorChunk()
Method Detail

loadData

public void loadData(ChunkChopper chopper)
Based on the color type retrieved from getColorType(com.microcrowd.loader.java3d.max3ds.ChunkChopper) loads an rgb or float color and pushes it onto the chunk chopper.

Overrides:
loadData in class Chunk
Parameters:
chopper - the chopper that will store the color data.

getColorType

protected int getColorType(ChunkChopper chopper)
Gets the color type for this chunk.

Parameters:
chopper - with the information the chunk may use to determine color type
Returns:
the color type for the chunk retrieved from the chopper using this chunks id.


Copyright © 2000-2011 Microcrowd. All Rights Reserved.