All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class java.media.j3d.BoundingBox

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

public class BoundingBox
extends Bounds
An axis aligned bounding box.


Constructor Index

 o BoundingBox()
Constructs and initializes a cube where -1 <= x,y,z <= 1.
 o BoundingBox(Bounds)
Constructs a BoundingBox from a bounding object.
 o BoundingBox(Bounds[])
Constructs a BoundingBox from an array of bounding objects.
 o BoundingBox(Point3d, Point3d)
Constructs and initializes a BoundingBox given min,max in x,y,z.

Method Index

 o clone()
Creates a copy of this bounding box.
 o combine(Bounds)
Combines this bounding box with a bounding object
 o combine(Bounds[])
Combines this bounding box with an array of bounding objects
 o combine(Point3d)
Combines this bounding box with a point
 o combine(Point3d[])
Combines this bounding box with an array of points
 o getLower(Point3d)
Gets the lower corner of this bounding box.
 o getUpper(Point3d)
Gets the upper corner of this bounding box.
 o intersect(Bounds)
Test for intersection with another bounds object
 o intersect(Bounds, BoundingBox)
Test for intersection with another bounding box
 o intersect(Bounds[])
Test for intersection with an array of bounds objects
 o intersect(Bounds[], BoundingBox)
Test for intersection with an array of bounds objects
 o intersect(Point3d)
Test for intersection with a point
 o intersect(Point3d, Point3d)
Test for intersection with a ray
 o set(Bounds)
Sets the the value of this BoundingBox
 o setLower(double, double, double)
Sets the lower corner of this bounding box.
 o setLower(Point3d)
Sets the lower corner of this bounding box.
 o setUpper(double, double, double)
Sets the upper corner of this bounding box.
 o setUpper(Point3d)
Sets the upper corner of this bounding box.
 o transform(BoundingSphere, Transform3D)
This transforms a bounding sphere by the given transform ( this needs to be removed it is so apps will still run)
 o transform(Transform3D)
This transforms the bounding box by the given matrix

Constructors

 o BoundingBox
 public BoundingBox(Point3d lower,
                    Point3d upper)
Constructs and initializes a BoundingBox given min,max in x,y,z.

Parameters:
lower - the "small" corner
upper - the "large" corner
Returns:
a new BoundingBox
 o BoundingBox
 public BoundingBox()
Constructs and initializes a cube where -1 <= x,y,z <= 1.

Returns:
a new BoundingBox
 o BoundingBox
 public BoundingBox(Bounds boundsObject)
Constructs a BoundingBox from a bounding object.

Parameters:
boundsObject - is a bounds object
Returns:
a new BoundingBox
 o BoundingBox
 public BoundingBox(Bounds bounds[])
Constructs a BoundingBox from an array of bounding objects.

Parameters:
bounds - an array of bounding objects
Returns:
a new BoundingBox

Methods

 o getLower
 public void getLower(Point3d p1)
Gets the lower corner of this bounding box.

Parameters:
p1 - a Point to receive the lower corner of the bounding box
 o setLower
 public void setLower(double xmin,
                      double ymin,
                      double zmin)
Sets the lower corner of this bounding box.

Parameters:
xmin - minimum x value of boundining box
ymin - minimum y value of boundining box
zmin - minimum z value of boundining box
 o setLower
 public void setLower(Point3d p1)
Sets the lower corner of this bounding box.

Parameters:
p1 - a Point defining the new lower corner of the bounding box
 o getUpper
 public void getUpper(Point3d p1)
Gets the upper corner of this bounding box.

Parameters:
p1 - a Poitn to receive the upper corner of the bounding box
 o setUpper
 public void setUpper(double xmax,
                      double ymax,
                      double zmax)
Sets the upper corner of this bounding box.

Parameters:
xmax - max x value of boundining box
ymax - max y value of boundining box
zmax - max z value of boundining box
 o setUpper
 public void setUpper(Point3d p1)
Sets the upper corner of this bounding box.

Parameters:
p1 - a Point defining the new upper corner of the bounding box
 o set
 public void set(Bounds boundsObject)
Sets the the value of this BoundingBox

Parameters:
boundsObject - is another bounds object
Overrides:
set in class Bounds
 o clone
 public Object clone()
Creates a copy of this bounding box.

Returns:
a new bounding box
Overrides:
clone in class Bounds
 o combine
 public void combine(Bounds boundsObject)
Combines this bounding box with a bounding object

Parameters:
boundsObject - is another bounds object
Overrides:
combine in class Bounds
 o combine
 public void combine(Bounds boundsObjects[])
Combines this bounding box with an array of bounding objects

Parameters:
boundsObjects - is an array of bounds objects
Overrides:
combine in class Bounds
 o combine
 public void combine(Point3d point)
Combines this bounding box with a point

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

Parameters:
points - is an array of 3d points in space
Overrides:
combine in class Bounds
 o transform
 public void transform(BoundingSphere bounds,
                       Transform3D trans)
This transforms a bounding sphere by the given transform ( this needs to be removed it is so apps will still run)

Overrides:
transform in class Bounds
 o transform
 public void transform(Transform3D matrix)
This transforms the bounding box by the given matrix

Parameters:
matrix - is a transformation matrix
Overrides:
transform in class Bounds
 o intersect
 public 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
Overrides:
intersect in class Bounds
 o intersect
 public 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
Overrides:
intersect in class Bounds
 o intersect
 public 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
Overrides:
intersect in class Bounds
 o intersect
 public boolean intersect(Bounds boundsObjects[])
Test for intersection with an array of bounds objects

Parameters:
boundsObjects - is an array of bounding objects
Returns:
true or false indicating if an intersection occured
Overrides:
intersect in class Bounds
 o intersect
 public boolean intersect(Bounds boundsObject,
                          BoundingBox newBoundBox)
Test for intersection with another bounding box

Parameters:
boundsObject - is another bounding object
newBoundBox - is the new bounding box which is the intersection of the boundsObject and this BoundingBox
Returns:
true or false indicating if an intersection occured
 o intersect
 public boolean intersect(Bounds boundsObjects[],
                          BoundingBox newBoundBox)
Test for intersection with an array of bounds objects

Parameters:
boundsObjects - is an array of bounds objects
newBoundBox - is the new bounding box which is the intersection of the boundsObject and this BoundingBox
Returns:
true or false indicating if an intersection occured

All Packages  Class Hierarchy  This Package  Previous  Next  Index