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.
-
BoundingBox()
- Constructs and initializes a cube where -1 <= x,y,z <= 1.
-
BoundingBox(Bounds)
- Constructs a BoundingBox from a bounding object.
-
BoundingBox(Bounds[])
- Constructs a BoundingBox from an array of bounding objects.
-
BoundingBox(Point3d, Point3d)
- Constructs and initializes a BoundingBox given min,max in x,y,z.
-
clone()
- Creates a copy of this bounding box.
-
combine(Bounds)
-
Combines this bounding box with a bounding object
-
combine(Bounds[])
-
Combines this bounding box with an array of bounding objects
-
combine(Point3d)
-
Combines this bounding box with a point
-
combine(Point3d[])
-
Combines this bounding box with an array of points
-
getLower(Point3d)
- Gets the lower corner of this bounding box.
-
getUpper(Point3d)
- Gets the upper corner of this bounding box.
-
intersect(Bounds)
-
Test for intersection with another bounds object
-
intersect(Bounds, BoundingBox)
-
Test for intersection with another bounding box
-
intersect(Bounds[])
-
Test for intersection with an array of bounds objects
-
intersect(Bounds[], BoundingBox)
-
Test for intersection with an array of bounds objects
-
intersect(Point3d)
-
Test for intersection with a point
-
intersect(Point3d, Point3d)
-
Test for intersection with a ray
-
set(Bounds)
- Sets the the value of this BoundingBox
-
setLower(double, double, double)
- Sets the lower corner of this bounding box.
-
setLower(Point3d)
- Sets the lower corner of this bounding box.
-
setUpper(double, double, double)
- Sets the upper corner of this bounding box.
-
setUpper(Point3d)
- Sets the upper corner of this bounding box.
-
transform(BoundingSphere, Transform3D)
-
This transforms a bounding sphere by the given transform
( this needs to be removed it is so apps will still run)
-
transform(Transform3D)
-
This transforms the bounding box by the given matrix
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
BoundingBox
public BoundingBox()
- Constructs and initializes a cube where -1 <= x,y,z <= 1.
- Returns:
- a new BoundingBox
BoundingBox
public BoundingBox(Bounds boundsObject)
- Constructs a BoundingBox from a bounding object.
- Parameters:
- boundsObject - is a bounds object
- Returns:
- a new BoundingBox
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
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
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
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
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
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
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
set
public void set(Bounds boundsObject)
- Sets the the value of this BoundingBox
- Parameters:
- boundsObject - is another bounds object
- Overrides:
- set in class Bounds
clone
public Object clone()
- Creates a copy of this bounding box.
- Returns:
- a new bounding box
- Overrides:
- clone in class Bounds
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
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
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
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
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
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
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
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
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
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
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
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