edu.cmu.sun.components
Class BoxComponent
java.lang.Object
Component3D
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
boxShape
Box boxShape
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 boxdepth - Depth (in meters) of the boxappearance - The appearance that is applied to the underlying Box Shape3D