com.microcrowd.loader.java3d.max3ds
Class ChunkMap

java.lang.Object
  extended by java.util.AbstractMap
      extended by java.util.HashMap
          extended by com.microcrowd.loader.java3d.max3ds.ChunkMap
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.util.Map

public class ChunkMap
extends java.util.HashMap

A Hashmap with the chunk names as values with keys being the chunk id.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
java.util.AbstractMap.SimpleEntry, java.util.AbstractMap.SimpleImmutableEntry
 
Field Summary
static java.lang.Integer AMBIENT_COLOR
          ID of the chunk that will be used to represent the ambient color.
static java.lang.Integer ATTENUATED
          Signifies that the light is attenuated
static java.lang.Integer BOUNDING_BOX
           
static java.lang.Integer CAMERA
          Represent a camera for viewing
static java.lang.Integer COLOR
           
static java.lang.Integer COORDINATE_AXES
          Local coordinate system of the mesh.
static java.lang.Integer DIFFUSE_COLOR
          ID of the chunk that will be used to represent the diffuse color.
static java.lang.Integer EDITOR
           
static java.lang.Integer FACES_DESCRIPTION
          reference coordinates into the vertex list which represent shape vertex coordinates.
static java.lang.Integer FACES_MATERIAL
          Key mapping faces material chunk as a child of this chunk
static java.lang.Integer FRAMES_CHUNK
          Constant designating a chunk as a frames chunk
static java.lang.Integer HIERARCHY_INFO
          Indicates a hierarchy info chunk
static java.lang.Integer KEYFRAMER
           
static java.lang.Integer LIGHT
          Represent a light
static java.lang.Integer MATERIAL
           
static java.lang.Integer MATERIAL_NAME
          These are the chunk ids for colors
static java.lang.Integer MESH
          Represent a mesh object for shapes.
static java.lang.Integer MESH_INFO
          Constant designating a chunk as a mesh info chunk
static java.lang.Integer MULTIPLIER
           
static java.lang.Integer NAME_AND_FLAGS
          Key for the name and flags chunk
static java.lang.Integer NAMED_OBJECT
           
static java.lang.Integer PIVOT
          Key for the pivot chunk
static java.lang.Integer POSITION
          Indicates a position track chunk
static java.lang.Integer RANGE_END
           
static java.lang.Integer RANGE_START
           
static java.lang.Integer ROTATION
          Indicates a rotation track chunk
static java.lang.Integer SCALE
           
static java.lang.Integer SCALE_TRACK
          Indicates a scale track chunk
static java.lang.Integer SHININESS
          ID of the chunk that will be used to represent the shinines.
static java.lang.Integer SMOOTH
          Key mapping smoothing chunk as a child of this chunk
static java.lang.Integer SPECULAR_COLOR
          ID of the chunk that will be used to represent the specular color.
static java.lang.Integer SPOT_LIGHT_INFO
           
static java.lang.Integer SPOTLIGHT
           
static int TEXBLUR
           
static java.lang.Integer TEXTURE
          ID of the chunk that will be used to represent the texture.
static java.lang.Integer TEXTURE_COORDINATES
          reference coordinates into the vertex list which represent texture coordinates.
static java.lang.Integer TEXTURE_NAME
          the id of a texture name chunk.
static int TEXTURE_TILING
           
static java.lang.Integer TRANSPARENCY
          ID of the chunk that will be used to represent the transparency.
static java.lang.Integer TWO_SIDED
          ID of the chunk that will be used to represent the two sided.
static java.lang.Integer VERSION
           
static java.lang.Integer VERTEX_LIST
          The vertex list from which vertices of a face array will be used.
 
Constructor Summary
ChunkMap(Chunk mainChunk)
          singleton constructor.
 
Method Summary
 Chunk get(java.lang.Integer chunkID)
           
 
Methods inherited from class java.util.HashMap
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Field Detail

FRAMES_CHUNK

public static final java.lang.Integer FRAMES_CHUNK
Constant designating a chunk as a frames chunk


MESH_INFO

public static final java.lang.Integer MESH_INFO
Constant designating a chunk as a mesh info chunk


SPOT_LIGHT_INFO

public static final java.lang.Integer SPOT_LIGHT_INFO

NAME_AND_FLAGS

public static final java.lang.Integer NAME_AND_FLAGS
Key for the name and flags chunk


PIVOT

public static final java.lang.Integer PIVOT
Key for the pivot chunk


POSITION

public static final java.lang.Integer POSITION
Indicates a position track chunk


SCALE_TRACK

public static final java.lang.Integer SCALE_TRACK
Indicates a scale track chunk


ROTATION

public static final java.lang.Integer ROTATION
Indicates a rotation track chunk


BOUNDING_BOX

public static final java.lang.Integer BOUNDING_BOX

HIERARCHY_INFO

public static final java.lang.Integer HIERARCHY_INFO
Indicates a hierarchy info chunk


ATTENUATED

public static final java.lang.Integer ATTENUATED
Signifies that the light is attenuated


RANGE_START

public static final java.lang.Integer RANGE_START

RANGE_END

public static final java.lang.Integer RANGE_END

MULTIPLIER

public static final java.lang.Integer MULTIPLIER

SPOTLIGHT

public static final java.lang.Integer SPOTLIGHT

COLOR

public static final java.lang.Integer COLOR

VERSION

public static final java.lang.Integer VERSION

EDITOR

public static final java.lang.Integer EDITOR

KEYFRAMER

public static final java.lang.Integer KEYFRAMER

MATERIAL_NAME

public static final java.lang.Integer MATERIAL_NAME
These are the chunk ids for colors


AMBIENT_COLOR

public static final java.lang.Integer AMBIENT_COLOR
ID of the chunk that will be used to represent the ambient color.


DIFFUSE_COLOR

public static final java.lang.Integer DIFFUSE_COLOR
ID of the chunk that will be used to represent the diffuse color.


SPECULAR_COLOR

public static final java.lang.Integer SPECULAR_COLOR
ID of the chunk that will be used to represent the specular color.


SHININESS

public static final java.lang.Integer SHININESS
ID of the chunk that will be used to represent the shinines.


TRANSPARENCY

public static final java.lang.Integer TRANSPARENCY
ID of the chunk that will be used to represent the transparency.


TWO_SIDED

public static final java.lang.Integer TWO_SIDED
ID of the chunk that will be used to represent the two sided.


TEXTURE

public static final java.lang.Integer TEXTURE
ID of the chunk that will be used to represent the texture.


MESH

public static final java.lang.Integer MESH
Represent a mesh object for shapes.


CAMERA

public static final java.lang.Integer CAMERA
Represent a camera for viewing


LIGHT

public static final java.lang.Integer LIGHT
Represent a light


TEXTURE_NAME

public static final java.lang.Integer TEXTURE_NAME
the id of a texture name chunk.


TEXTURE_TILING

public static final int TEXTURE_TILING
See Also:
Constant Field Values

TEXBLUR

public static final int TEXBLUR
See Also:
Constant Field Values

VERTEX_LIST

public static final java.lang.Integer VERTEX_LIST
The vertex list from which vertices of a face array will be used.


TEXTURE_COORDINATES

public static final java.lang.Integer TEXTURE_COORDINATES
reference coordinates into the vertex list which represent texture coordinates.


COORDINATE_AXES

public static final java.lang.Integer COORDINATE_AXES
Local coordinate system of the mesh.


FACES_DESCRIPTION

public static final java.lang.Integer FACES_DESCRIPTION
reference coordinates into the vertex list which represent shape vertex coordinates.


MATERIAL

public static final java.lang.Integer MATERIAL

SCALE

public static final java.lang.Integer SCALE

NAMED_OBJECT

public static final java.lang.Integer NAMED_OBJECT

FACES_MATERIAL

public static final java.lang.Integer FACES_MATERIAL
Key mapping faces material chunk as a child of this chunk


SMOOTH

public static final java.lang.Integer SMOOTH
Key mapping smoothing chunk as a child of this chunk

Constructor Detail

ChunkMap

public ChunkMap(Chunk mainChunk)
singleton constructor.

Method Detail

get

public Chunk get(java.lang.Integer chunkID)


Copyright © 2000-2011 Microcrowd. All Rights Reserved.