Logo Search packages:      
Sourcecode: java3ds-fileloader version File versions  Download package

com::microcrowd::loader::java3d::max3ds::chunks::Chunk Class Reference

Inheritance diagram for com::microcrowd::loader::java3d::max3ds::chunks::Chunk:

com::microcrowd::loader::java3d::max3ds::chunks::AxisChunk com::microcrowd::loader::java3d::max3ds::chunks::BooleanChunk com::microcrowd::loader::java3d::max3ds::chunks::BoundingBoxChunk com::microcrowd::loader::java3d::max3ds::chunks::CameraChunk com::microcrowd::loader::java3d::max3ds::chunks::ColorChunk com::microcrowd::loader::java3d::max3ds::chunks::FacesDescriptionChunk com::microcrowd::loader::java3d::max3ds::chunks::FacesMaterialChunk com::microcrowd::loader::java3d::max3ds::chunks::FloatChunk com::microcrowd::loader::java3d::max3ds::chunks::FramesChunk com::microcrowd::loader::java3d::max3ds::chunks::FramesDescriptionChunk com::microcrowd::loader::java3d::max3ds::chunks::HierarchyInfoChunk com::microcrowd::loader::java3d::max3ds::chunks::KeyFramerInfoChunk com::microcrowd::loader::java3d::max3ds::chunks::LightChunk com::microcrowd::loader::java3d::max3ds::chunks::MaterialChunk com::microcrowd::loader::java3d::max3ds::chunks::NamedObjectChunk com::microcrowd::loader::java3d::max3ds::chunks::PercentageChunk com::microcrowd::loader::java3d::max3ds::chunks::PivotChunk com::microcrowd::loader::java3d::max3ds::chunks::PositionChunk com::microcrowd::loader::java3d::max3ds::chunks::RotationChunk com::microcrowd::loader::java3d::max3ds::chunks::ScaleChunk com::microcrowd::loader::java3d::max3ds::chunks::SmoothingChunk com::microcrowd::loader::java3d::max3ds::chunks::SpotLightChunk com::microcrowd::loader::java3d::max3ds::chunks::StringChunk com::microcrowd::loader::java3d::max3ds::chunks::TextureChunk com::microcrowd::loader::java3d::max3ds::chunks::Vertex2ListChunk com::microcrowd::loader::java3d::max3ds::chunks::Vertex3ListChunk

List of all members.


Detailed Description

The base class for all chunks. Chunks are flyweights and should be managed by ChunkChopper Every chunk should know how many bytes of data(or be able figure out) to read before its subchunks are found. Chunks that only have subchunks need not overrided loadData. Chunks may store data for later use in loadData with pushData If a chunk needs to initialize components with from subchunks, that data can be retrieved with ChunkChopper#popData inside the initialize method. loadData is called at the beginning of the loading process, before any data or subchunks have been loaded(the chunk itself must load its data).

During loadData, if the length of data before subchunks is unknown, ChunkChopper#getChunkBytes may be called and all the data for the chunk(including subchunks) will be read and returned.

Definition at line 43 of file Chunk.java.


Public Member Functions

void addSubChunk (Integer id, Chunk subChunk)
 Chunk ()
 Chunk (String chunkName)
final String getDescription ()
final String getName ()
Chunk getSubChunk (Integer id)
void initialize (ChunkChopper chopper)
void loadData (ChunkChopper chopper)
final void setDescription (String desc)
final void setName (String name)
String toString ()

Private Attributes

String description
String name
HashMap subChunkMap = new HashMap()

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index