j3d.org Code

org.j3d.loaders.discreet
Class ObjectBlock

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

public class ObjectBlock
extends java.lang.Object

Representation of a collection of triangle meshes that form a single block of data in the file.

Version:
$Revision: 1.2 $
Author:
Justin Couch

Field Summary
 CameraBlock[] cameras
          Cameras (viewpoints) registered with this object
 LightBlock[] lights
          Set of lights surrounding this mesh
 TriangleMesh[] meshes
          Array of mesh instances forming this block.
 java.lang.String name
          A name or label associated with this block.
 int numCameras
          The number of valid camera objects
 int numLights
          Listing of lights effecting this object
 int numMeshes
          Number of valid items in the mesh list
 int objectId
          The ID associated with this block.
 
Constructor Summary
ObjectBlock()
          Construct a new instance with meshes initialised to a size of 8.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

objectId

public int objectId
The ID associated with this block. Needed for dealing with keyframes.


name

public java.lang.String name
A name or label associated with this block.


meshes

public TriangleMesh[] meshes
Array of mesh instances forming this block.


numMeshes

public int numMeshes
Number of valid items in the mesh list


lights

public LightBlock[] lights
Set of lights surrounding this mesh


numLights

public int numLights
Listing of lights effecting this object


cameras

public CameraBlock[] cameras
Cameras (viewpoints) registered with this object


numCameras

public int numCameras
The number of valid camera objects

Constructor Detail

ObjectBlock

public ObjectBlock()
Construct a new instance with meshes initialised to a size of 8.


j3d.org Code

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