Aviatrix3D
2.1.0

org.j3d.aviatrix3d.pipeline.graphics
Class ViewportCollection

java.lang.Object
  extended by org.j3d.aviatrix3d.pipeline.graphics.ViewportCollection

public class ViewportCollection
extends java.lang.Object

Data holder that passes the information about what is to be rendered from a single layer (with multiple viewports, potentially) from the output of the GraphicsCullStage through to the GraphicsSortStage.

Version:
$Revision: 3.2 $
Author:
Justin Couch

Field Summary
 int numViewports
          The number of valid viewports to render in this layer
 ViewportLayerCollection[] viewports
          Listing of valid viewports to render from this latyer
 
Constructor Summary
ViewportCollection()
          Create a default bucket for handling a layer that defaults to having a single scene.
ViewportCollection(int layerCount)
          Create a bucket for handling a layer that can hold the given number of scenes to be rendered.
 
Method Summary
 void ensureCapacity(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

viewports

public ViewportLayerCollection[] viewports
Listing of valid viewports to render from this latyer


numViewports

public int numViewports
The number of valid viewports to render in this layer

Constructor Detail

ViewportCollection

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


ViewportCollection

public ViewportCollection(int layerCount)
                   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

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

ensureCapacity

public void ensureCapacity(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.1.0

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