edu.cmu.sun.components
Class BoxComponent

java.lang.Object
  extended by Component3D
      extended by edu.cmu.sun.components.BoxComponent

public class BoxComponent
extends Component3D

This is a simple 3D box. It wraps a Box Shape3D object, and alighns the box to the upper left. It also fixes a bug in the underlying Box implementation where the width, height, and depth of the box are twice their specified valye.

Author:
Braden Kowitz

Field Summary
(package private)  Box boxShape
           
 
Constructor Summary
BoxComponent(float width, float height, float depth, Appearance appearance)
          Createa a new Box that is upper-left-front aligned.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

boxShape

Box boxShape
Constructor Detail

BoxComponent

public BoxComponent(float width,
                    float height,
                    float depth,
                    Appearance appearance)
Createa a new Box that is upper-left-front aligned.

Parameters:
width - With (in meters) of the box.
height - Height (in meters) of the box
depth - Depth (in meters) of the box
appearance - The appearance that is applied to the underlying Box Shape3D