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

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

public class CameraChunk
extends Chunk

Loads percentage values from binary data representing them.


Constructor Summary
CameraChunk()
           
 
Method Summary
 void loadData(ChunkChopper chopper)
          Reads the position and target vectors and subtracts them to get an axis of rotation.
 
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
 

Constructor Detail

CameraChunk

public CameraChunk()
Method Detail

loadData

public void loadData(ChunkChopper chopper)
Reads the position and target vectors and subtracts them to get an axis of rotation. Translate a transform to position and rotate on the axis of rotation to point at the target. The angle between the z axis and the axis of rotation is the angle used to rotate. The translated and rotated vector is stored it the chopper as a named object since camera chunks are named.

Overrides:
loadData in class Chunk
Parameters:
chopper - may contain data loaded by subchunks.


Copyright © 2000-2011 Microcrowd. All Rights Reserved.