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

java.lang.Object
  extended by com.microcrowd.loader.java3d.max3ds.chunks.Chunk
      extended by com.microcrowd.loader.java3d.max3ds.chunks.LightChunk

public class LightChunk
extends Chunk

Lights to be placed in a scene. Only point lights and target spot lights are supported. All the default parameters are used for lights as well. Only position is specified.


Constructor Summary
LightChunk()
           
 
Method Summary
 void initialize(ChunkChopper chopper)
          Gets the data put into the chopper by the subchunks and creates a light, adding it to the scene as a named object.
 void loadData(ChunkChopper chopper)
          This is called by the chunk chopper before any of the chunk's subchunks are loaded.
 
Methods inherited from class com.microcrowd.loader.java3d.max3ds.chunks.Chunk
addSubChunk, getDescription, getName, getSubChunk, setDescription, setName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LightChunk

public LightChunk()
Method Detail

loadData

public void loadData(ChunkChopper chopper)
This is called by the chunk chopper before any of the chunk's subchunks are loaded. Any data loaded that may need to be used later by superchunks should be stored in the chunk chopper via ChunkChopper.pushData(java.lang.Object, java.lang.Object)

Overrides:
loadData in class Chunk
Parameters:
chopper - used to store the position of the light.

initialize

public void initialize(ChunkChopper chopper)
Gets the data put into the chopper by the subchunks and creates a light, adding it to the scene as a named object.

Overrides:
initialize in class Chunk
Parameters:
chopper - the ChunkChopper containing sub chunk data.


Copyright © 2000-2011 Microcrowd. All Rights Reserved.