01: /*
02: * $Header: /cvs/j3dfly/J3dFly/src/org/jdesktop/j3dfly/utils/vpbehaviors/SweptVolumeCollision.java,v 1.1 2005/04/20 21:05:14 paulby Exp $
03: *
04: * Sun Public License Notice
05: *
06: * The contents of this file are subject to the Sun Public License Version
07: * 1.0 (the "License"). You may not use this file except in compliance with
08: * the License. A copy of the License is available at http://www.sun.com/
09: *
10: * The Original Code is Java 3D(tm) Fly Through.
11: * The Initial Developer of the Original Code is Paul Byrne.
12: * Portions created by Paul Byrne are Copyright (C) 2002.
13: * All Rights Reserved.
14: *
15: * Contributor(s): Paul Byrne.
16: *
17: **/
18: package org.jdesktop.j3dfly.utils.vpbehaviors;
19:
20: import java.util.ArrayList;
21: import java.util.Iterator;
22:
23: /**
24: * Encapsulates all the collisions from one check
25: *
26: * @author Paul Byrne
27: * @version 1.4, 01/18/02
28: */
29: public class SweptVolumeCollision extends java.lang.Object {
30:
31: private ArrayList collisions;
32:
33: public SweptVolumeCollision() {
34: collisions = new ArrayList(5);
35: }
36:
37: protected void addRayCollision(RayCollision collision) {
38: collisions.add(collision);
39: }
40:
41: /**
42: * Returns an iterator over the set of RayCollisions
43: */
44: public Iterator getRayCollisions() {
45: return collisions.iterator();
46: }
47:
48: }
|