j3d.org Code

org.j3d.loaders.discreet
Class KeyframeBlock

java.lang.Object
  extended by org.j3d.loaders.discreet.KeyframeBlock

public class KeyframeBlock
extends java.lang.Object

Representation of a collection of keyframes for animating the object.

A keyframe consists of

 KEYFRAMER CHUNK 0xB000
     MESH INFORMATION BLOCK 0xB002
     SPOT LIGHT INFORMATION BLOCK 0xB007
     FRAMES (START AND END) 0xB008
 

Version:
$Revision: 1.2 $
Author:
Justin Couch

Field Summary
 KeyframeAmbientBlock[] ambientInfo
          Information about the ambient light tracks
 int animationLength
          The length of this animation in frames
 KeyframeCameraBlock[] cameraInfo
          Information about the camera tracks
 KeyframeCameraTargetBlock[] cameraTargetInfo
          Information about the camera target track
 int currentFrame
          The current frame number.
 int endFrame
          The last frame number for this animation.
 java.lang.String filename
          A string referencing the external keyframes
 KeyframeFrameBlock[] frames
          The listing of frames for this animation.
 KeyframeLightBlock[] lightInfo
          Information about the light tracks
 int numAmbients
          The number of valid ambient light blocks
 int numCameras
          number of valid camera blocks to read
 int numCameraTargets
          Number of valid camera targets to read
 int numFrames
          The number of valid frames in this block
 int numLights
          number of valid light blocks to read
 int numSpotlights
          Number of valid spotlights to read
 int numSpotlightTargets
          Number of valid spotlight targets to read
 int revision
          The revision information
 KeyframeSpotlightBlock[] spotlightInfo
          Information about spotlight tracks
 KeyframeSpotlightTargetBlock[] spotlightTargetInfo
          Information about the spotlight target tracks
 int startFrame
          The start frame number for this animation.
 
Constructor Summary
KeyframeBlock()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

revision

public int revision
The revision information


filename

public java.lang.String filename
A string referencing the external keyframes


animationLength

public int animationLength
The length of this animation in frames


currentFrame

public int currentFrame
The current frame number. Used to determine which single frame will be rendered or will be active when entering the Keyframer.


startFrame

public int startFrame
The start frame number for this animation.


endFrame

public int endFrame
The last frame number for this animation.


frames

public KeyframeFrameBlock[] frames
The listing of frames for this animation. Null if none set.


numFrames

public int numFrames
The number of valid frames in this block


cameraInfo

public KeyframeCameraBlock[] cameraInfo
Information about the camera tracks


numCameras

public int numCameras
number of valid camera blocks to read


cameraTargetInfo

public KeyframeCameraTargetBlock[] cameraTargetInfo
Information about the camera target track


numCameraTargets

public int numCameraTargets
Number of valid camera targets to read


lightInfo

public KeyframeLightBlock[] lightInfo
Information about the light tracks


numLights

public int numLights
number of valid light blocks to read


spotlightInfo

public KeyframeSpotlightBlock[] spotlightInfo
Information about spotlight tracks


numSpotlights

public int numSpotlights
Number of valid spotlights to read


spotlightTargetInfo

public KeyframeSpotlightTargetBlock[] spotlightTargetInfo
Information about the spotlight target tracks


numSpotlightTargets

public int numSpotlightTargets
Number of valid spotlight targets to read


ambientInfo

public KeyframeAmbientBlock[] ambientInfo
Information about the ambient light tracks


numAmbients

public int numAmbients
The number of valid ambient light blocks

Constructor Detail

KeyframeBlock

public KeyframeBlock()

j3d.org Code

Latest Info from http://code.j3d.org/
Copyright © 2001 - j3d.org