unc.cdva.renderingengine
Class DisplayList

java.lang.Object
  extended by unc.cdva.renderingengine.DisplayList

public class DisplayList
extends java.lang.Object

Bean class that stores the objects that have to be displayed on screen and the transformation that will be applyed

Author:
Guillaume Conte

Constructor Summary
DisplayList()
          Init an empty display list
 
Method Summary
 void addObject(PdsBean transformation, Object3D object)
          Add an object and its transformations to the display list
 void clear()
          Empty the display list
 java.util.Vector<Object3D> getObjects()
           
 java.util.Vector<PdsBean> getTransformations()
           
 java.util.Iterator<Object3D> iteratorObjects()
          Get an iterator of the objects
 java.util.Iterator<PdsBean> iteratorTransformations()
          Get an iterator of the transformations
 void setObjects(java.util.Vector<Object3D> objects)
           
 void setTransformations(java.util.Vector<PdsBean> transformations)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DisplayList

public DisplayList()
Init an empty display list

Method Detail

addObject

public void addObject(PdsBean transformation,
                      Object3D object)
Add an object and its transformations to the display list

Parameters:
transformation - transformations that have to be applyied to the object
object - the object

clear

public void clear()
Empty the display list


getObjects

public java.util.Vector<Object3D> getObjects()
Returns:
the objects

getTransformations

public java.util.Vector<PdsBean> getTransformations()
Returns:
the transformations

setObjects

public void setObjects(java.util.Vector<Object3D> objects)
Parameters:
objects - the objects to set

setTransformations

public void setTransformations(java.util.Vector<PdsBean> transformations)
Parameters:
transformations - the transformations to set

iteratorTransformations

public java.util.Iterator<PdsBean> iteratorTransformations()
Get an iterator of the transformations

Returns:
iterator of the transformations

iteratorObjects

public java.util.Iterator<Object3D> iteratorObjects()
Get an iterator of the objects

Returns:
iterator of the object