Class Composite

java.lang.Object
  extended by Model
      extended by Composite

public class Composite
extends Model

Represents a conglomeration of several models into a single model.


Field Summary
 
Fields inherited from class Model
EMPTY
 
Constructor Summary
Composite(Model[] models)
          Constructs a model representing the union of all the given models in the array.
 
Method Summary
 void draw(Graphics3D g)
          Draws all the models contained in this composite model.
 
Methods inherited from class Model
color, rotateX, rotateY, rotateZ, scale, transform, translate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Composite

public Composite(Model[] models)
Constructs a model representing the union of all the given models in the array.

Method Detail

draw

public void draw(Graphics3D g)
Draws all the models contained in this composite model.

Specified by:
draw in class Model