All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class javax.media.j3d.Bounds

java.lang.Object
   |
   +----javax.media.j3d.Bounds

public abstract class Bounds
extends Object
implements Cloneable
Abstract class for bounding objects. Sub-classes are BoundingSphere, BoundingBox and BoundingPolytope


Constructor Index

 o Bounds()

Method Index

 o clone()
Makes a copy of a bounds object.
 o combine(Bounds)
Combines this bounding object with a bounding object so that the resulting bounding object encloses the original bounding object and the given bounds object.
 o combine(Bounds[])
Combines this bounding object with an array of bounding objects so that the resulting bounding object encloses the original bounding object and the given array of bounds object.
 o combine(Point3d)
Combines this bounding object with a point
 o combine(Point3d[])
Combines this bounding object with an array of points
 o intersect(Bounds)
Test for intersection with another bounds object
 o intersect(Bounds[])
Test for intersection with another bounds object
 o intersect(Point3d)
Test for intersection with a point
 o intersect(Point3d, Point3d)
Test for intersection with a ray
 o isEmpty()
Tests if any objects are in a bounding object
 o set(Bounds)
Sets the position of this bounding object from a point.
 o transform(Bounds, Transform3D)
Modifies the bounding object so that it bounds the volume generated by transforming the given bounding object.
 o transform(Transform3D)
This transforms this bounding object by the given matrix

Constructors

 o Bounds
 public Bounds()

Methods

 o clone
 public abstract Object clone()
Makes a copy of a bounds object.

Overrides:
clone in class Object
 o intersect
 public abstract boolean intersect(Point3d origin,
                                   Point3d direction)
Test for intersection with a ray

Parameters:
1 - origin is a the starting point of the ray
2 - direction is the direction of the ray
Returns:
true or false indicating if an intersection occured
 o intersect
 public abstract boolean intersect(Point3d point)
Test for intersection with a point

Parameters:
point - is a point defining a position in 3-space
Returns:
true or false indicating if an intersection occured
 o intersect
 public abstract boolean intersect(Bounds boundsObject)
Test for intersection with another bounds object

Parameters:
boundsObject - is another bounds object
Returns:
true or false indicating if an intersection occured
 o intersect
 public abstract boolean intersect(Bounds boundsObjects[])
Test for intersection with another bounds object

Parameters:
boundsObjects - is an array of bounding objects
Returns:
true or false indicating if an intersection occured
 o combine
 public abstract void combine(Bounds boundsObject)
Combines this bounding object with a bounding object so that the resulting bounding object encloses the original bounding object and the given bounds object.

Parameters:
boundsObject - is another bounds object
 o combine
 public abstract void combine(Bounds boundsObjects[])
Combines this bounding object with an array of bounding objects so that the resulting bounding object encloses the original bounding object and the given array of bounds object.

Parameters:
boundsObjects - is an array of bounds objects
 o combine
 public abstract void combine(Point3d point)
Combines this bounding object with a point

Parameters:
point - is a 3d point in space
 o combine
 public abstract void combine(Point3d points[])
Combines this bounding object with an array of points

Parameters:
points - is an array of 3d points in space
 o transform
 public abstract void transform(Transform3D trans)
This transforms this bounding object by the given matrix

 o transform
 public abstract void transform(Bounds bounds,
                                Transform3D trans)
Modifies the bounding object so that it bounds the volume generated by transforming the given bounding object.

Parameters:
boundsObject - is the bounding object to be transformed
matrix - is a transformation matrix
 o isEmpty
 public abstract boolean isEmpty()
Tests if any objects are in a bounding object

 o set
 public abstract void set(Bounds boundsObject)
Sets the position of this bounding object from a point.

Parameters:
center - a Point defining the new center of the bounding object

All Packages  Class Hierarchy  This Package  Previous  Next  Index