Aviatrix3D
2.0 Dev

org.j3d.aviatrix3d.pipeline.graphics
Class ViewportLayerCollection

java.lang.Object
  extended byorg.j3d.aviatrix3d.pipeline.graphics.ViewportLayerCollection

public class ViewportLayerCollection
extends java.lang.Object

Data holder that passes the information about what is to be rendered from a single viewport that has one or more layers.

Version:
$Revision: 3.3 $
Author:
Justin Couch

Field Summary
 MultipassRenderBucket[] multipass
          Listing of valid scenes to render from this latyer
 int numBuckets
          The total number of buckets to render
 int numMultipass
          The number of multipass scenes total, in all render buckets
 int numScenes
          The number of valid scenes to render in this layer
 SceneRenderBucket[] scenes
          Listing of valid scenes to render from this latyer
 boolean[] useNormalScene
          Indication of whether to use normal (true) or multipass (false) scene at the given layer index.
 
Constructor Summary
ViewportLayerCollection()
          Create a default bucket for handling a layer that defaults to having a single scene.
ViewportLayerCollection(int sceneCount)
          Create a bucket for handling a layer that can hold the given number of scenes to be rendered.
 
Method Summary
 void ensureMultipassCapacity(int size)
          Ensure that there are enough items in the scenes array for the given number of scenes to be processed.
 void ensureSceneCapacity(int size)
          Ensure that there are enough items in the scenes array for the given number of scenes to be processed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

scenes

public SceneRenderBucket[] scenes
Listing of valid scenes to render from this latyer


numScenes

public int numScenes
The number of valid scenes to render in this layer


multipass

public MultipassRenderBucket[] multipass
Listing of valid scenes to render from this latyer


numMultipass

public int numMultipass
The number of multipass scenes total, in all render buckets


useNormalScene

public boolean[] useNormalScene
Indication of whether to use normal (true) or multipass (false) scene at the given layer index.


numBuckets

public int numBuckets
The total number of buckets to render

Constructor Detail

ViewportLayerCollection

public ViewportLayerCollection()
Create a default bucket for handling a layer that defaults to having a single scene.

By default the multipass buckets are not allocated.


ViewportLayerCollection

public ViewportLayerCollection(int sceneCount)
                        throws java.lang.IllegalArgumentException
Create a bucket for handling a layer that can hold the given number of scenes to be rendered. If the value is <= 0 an exception is generated

By default the multipass buckets are not allocated.

Parameters:
sceneCount - The number of scenes to be handled
Throws:
java.lang.IllegalArgumentException - The size was non-positive
Method Detail

ensureSceneCapacity

public void ensureSceneCapacity(int size)
Ensure that there are enough items in the scenes array for the given number of scenes to be processed. This will resize the array and initialise more bucket instances as needed.

Parameters:
size - The minimum size needed

ensureMultipassCapacity

public void ensureMultipassCapacity(int size)
Ensure that there are enough items in the scenes array for the given number of scenes to be processed. This will resize the array and initialise more bucket instances as needed.

Parameters:
size - The minimum size needed

Aviatrix3D
2.0 Dev

Latest Info from http://aviatrix3d.j3d.org/
Copyright © 2003 - 2005 j3d.org