| java.lang.Object javax.media.j3d.Bounds javax.media.j3d.BoundingBox
All known Subclasses: com.db.server.ExtendedBoundingBox,
BoundingBox | public class BoundingBox extends Bounds (Code) | | This class defines an axis aligned bounding box which is used for
bounding regions.
|
Field Summary | |
Point3d | lower The corner of the bounding box with the numerically smallest
values. | Point3d | upper The corner of the bounding box with the numerically largest
values. |
Constructor Summary | |
public | BoundingBox(Point3d lower, Point3d upper) Constructs and initializes a BoundingBox given min,max in x,y,z. | public | BoundingBox() Constructs and initializes a 2X bounding box about the
origin. | public | BoundingBox(Bounds boundsObject) Constructs a BoundingBox from a bounding object. | public | BoundingBox(Bounds[] bounds) Constructs a BoundingBox from an array of bounding objects. |
Method Summary | |
boolean | checkBoundsIsNaN() | public Object | clone() Creates a copy of this bounding box. | public Bounds | closestIntersection(Bounds[] boundsObjects) Finds closest bounding object that intersects this bounding box. | public void | combine(Bounds boundsObject) Combines this bounding box with a bounding object so that the
resulting bounding box encloses the original bounding box and the
specified bounds object. | public void | combine(Bounds[] bounds) Combines this bounding box with an array of bounding objects
so that the resulting bounding box encloses the original bounding
box and the array of bounding objects. | public void | combine(Point3d point) Combines this bounding box with a point so that the resulting
bounding box encloses the original bounding box and the point. | public void | combine(Point3d[] points) Combines this bounding box with an array of points so that the
resulting bounding box encloses the original bounding box and the
array of points. | Bounds | copy(Bounds r) | public boolean | equals(Object bounds) Indicates whether the specified bounds object is
equal to this BoundingBox object. | Point3d | getCenter() | public void | getLower(Point3d p1) Gets the lower corner of this bounding box. | int | getPickType() | public void | getUpper(Point3d p1) Gets the upper corner of this bounding box. | public int | hashCode() Returns a hash code value for this BoundingBox object
based on the data values in this object. | boolean | intersect(Point3d origin, Vector3d direction, Point4d position) Test for intersection with a ray. | boolean | intersect(Point3d point, Point4d position) Test for intersection with a point. | boolean | intersect(Point3d start, Point3d end, Point4d position) Test for intersection with a segment. | public boolean | intersect(Point3d origin, Vector3d direction) Test for intersection with a ray. | boolean | intersect(Point3d origin, Vector3d direction, Point3d intersect) A protected intersect method that returns the point of intersection. | public boolean | intersect(Point3d point) Test for intersection with a point. | boolean | intersect(Bounds boundsObject, Point4d position) Test for intersection with another bounds object. | public boolean | intersect(Bounds boundsObject) Test for intersection with another bounds object. | public boolean | intersect(Bounds[] boundsObjects) Test for intersection with an array of bounds objects. | public boolean | intersect(Bounds boundsObject, BoundingBox newBoundBox) Test for intersection with another bounding box. | public boolean | intersect(Bounds[] boundsObjects, BoundingBox newBoundBox) Test for intersection with an array of bounds objects. | boolean | intersect(CachedFrustum frustum) Tests for intersection of box and frustum. | public boolean | isEmpty() Tests whether the bounding box is empty. | public void | set(Bounds boundsObject) | public void | setLower(double xmin, double ymin, double zmin) Sets the lower corner of this bounding box. | public void | setLower(Point3d p1) Sets the lower corner of this bounding box. | public void | setUpper(double xmax, double ymax, double zmax) Sets the upper corner of this bounding box. | public void | setUpper(Point3d p1) Sets the upper corner of this bounding box. | public String | toString() Returns a string representation of this class. | public void | transform(Bounds boundsObject, Transform3D matrix) Modifies the bounding box so that it bounds the volume
generated by transforming the given bounding object. | public void | transform(Transform3D matrix) Transforms this bounding box by the given matrix. | void | translate(BoundingBox bbox, Vector3d value) |
lower | Point3d lower(Code) | | The corner of the bounding box with the numerically smallest
values.
|
upper | Point3d upper(Code) | | The corner of the bounding box with the numerically largest
values.
|
BoundingBox | public BoundingBox(Point3d lower, Point3d upper)(Code) | | Constructs and initializes a BoundingBox given min,max in x,y,z.
Parameters: lower - the "small" corner Parameters: upper - the "large" corner |
BoundingBox | public BoundingBox()(Code) | | Constructs and initializes a 2X bounding box about the
origin. The lower corner is initialized to (-1.0d, -1.0d, -1.0d)
and the opper corner is initialized to (1.0d, 1.0d, 1.0d).
|
BoundingBox | public BoundingBox(Bounds boundsObject)(Code) | | Constructs a BoundingBox from a bounding object.
Parameters: boundsObject - a bounds object |
BoundingBox | public BoundingBox(Bounds[] bounds)(Code) | | Constructs a BoundingBox from an array of bounding objects.
Parameters: bounds - an array of bounding objects |
checkBoundsIsNaN | boolean checkBoundsIsNaN()(Code) | | |
clone | public Object clone()(Code) | | Creates a copy of this bounding box.
a new bounding box |
closestIntersection | public Bounds closestIntersection(Bounds[] boundsObjects)(Code) | | Finds closest bounding object that intersects this bounding box.
Parameters: boundsObjects - an array of bounds objects closest bounding object |
combine | public void combine(Bounds boundsObject)(Code) | | Combines this bounding box with a bounding object so that the
resulting bounding box encloses the original bounding box and the
specified bounds object.
Parameters: boundsObject - another bounds object |
combine | public void combine(Bounds[] bounds)(Code) | | Combines this bounding box with an array of bounding objects
so that the resulting bounding box encloses the original bounding
box and the array of bounding objects.
Parameters: bounds - an array of bounds objects |
combine | public void combine(Point3d point)(Code) | | Combines this bounding box with a point so that the resulting
bounding box encloses the original bounding box and the point.
Parameters: point - a 3d point in space |
combine | public void combine(Point3d[] points)(Code) | | Combines this bounding box with an array of points so that the
resulting bounding box encloses the original bounding box and the
array of points.
Parameters: points - an array of 3d points in space |
copy | Bounds copy(Bounds r)(Code) | | if the passed the "region" is same type as this object
then do a copy, otherwise clone the Bounds and
return
|
equals | public boolean equals(Object bounds)(Code) | | Indicates whether the specified bounds object is
equal to this BoundingBox object. They are equal if the
specified bounds object is an instance of
BoundingBox and all of the data
members of bounds are equal to the corresponding
data members in this BoundingBox.
Parameters: bounds - the object with which the comparison is made. true if this BoundingBox is equal to bounds ;otherwise false since: Java 3D 1.2 |
getCenter | Point3d getCenter()(Code) | | |
getLower | public void getLower(Point3d p1)(Code) | | Gets the lower corner of this bounding box.
Parameters: p1 - a Point to receive the lower corner of the bounding box |
getPickType | int getPickType()(Code) | | |
getUpper | public void getUpper(Point3d p1)(Code) | | Gets the upper corner of this bounding box.
Parameters: p1 - a Point to receive the upper corner of the bounding box |
hashCode | public int hashCode()(Code) | | Returns a hash code value for this BoundingBox object
based on the data values in this object. Two different
BoundingBox objects with identical data values (i.e.,
BoundingBox.equals returns true) will return the same hash
code value. Two BoundingBox objects with different data
members may return the same hash code value, although this is
not likely.
a hash code value for this BoundingBox object. since: Java 3D 1.2 |
intersect | boolean intersect(Point3d origin, Vector3d direction, Point4d position)(Code) | | Test for intersection with a ray.
Parameters: origin - the starting point of the ray Parameters: direction - the direction of the ray Parameters: position3 - a point defining the location of the pick w= distance to pick true or false indicating if an intersection occured |
intersect | boolean intersect(Point3d point, Point4d position)(Code) | | Test for intersection with a point.
Parameters: point - the pick point Parameters: position - a point defining the location of the pick w= distance to pick true or false indicating if an intersection occured |
intersect | boolean intersect(Point3d start, Point3d end, Point4d position)(Code) | | Test for intersection with a segment.
Parameters: start - a point defining the start of the line segment Parameters: end - a point defining the end of the line segment Parameters: position - a point defining the location of the pick w= distance to pick true or false indicating if an intersection occured |
intersect | public boolean intersect(Point3d origin, Vector3d direction)(Code) | | Test for intersection with a ray.
Parameters: origin - the starting point of the ray Parameters: direction - the direction of the ray true or false indicating if an intersection occured |
intersect | boolean intersect(Point3d origin, Vector3d direction, Point3d intersect)(Code) | | A protected intersect method that returns the point of intersection.
Used by Picking methods to sort or return closest picked item.
|
intersect | public boolean intersect(Point3d point)(Code) | | Test for intersection with a point.
Parameters: point - a point defining a position in 3-space true or false indicating if an intersection occured |
intersect | boolean intersect(Bounds boundsObject, Point4d position)(Code) | | Test for intersection with another bounds object.
Parameters: boundsObject - another bounds object true or false indicating if an intersection occured |
intersect | public boolean intersect(Bounds boundsObject)(Code) | | Test for intersection with another bounds object.
Parameters: boundsObject - another bounds object true or false indicating if an intersection occured |
intersect | public boolean intersect(Bounds[] boundsObjects)(Code) | | Test for intersection with an array of bounds objects.
Parameters: boundsObjects - an array of bounding objects true or false indicating if an intersection occured |
intersect | public boolean intersect(Bounds boundsObject, BoundingBox newBoundBox)(Code) | | Test for intersection with another bounding box.
Parameters: boundsObject - another bounding object Parameters: newBoundBox - the new bounding box which is the intersection ofthe boundsObject and this BoundingBox true or false indicating if an intersection occured |
intersect | public boolean intersect(Bounds[] boundsObjects, BoundingBox newBoundBox)(Code) | | Test for intersection with an array of bounds objects.
Parameters: boundsObjects - an array of bounds objects Parameters: newBoundBox - the new bounding box which is the intersection ofthe boundsObject and this BoundingBox true or false indicating if an intersection occured |
intersect | boolean intersect(CachedFrustum frustum)(Code) | | Tests for intersection of box and frustum.
Parameters: frustum - true if they intersect |
isEmpty | public boolean isEmpty()(Code) | | Tests whether the bounding box is empty. A bounding box is
empty if it is null (either by construction or as the result of
a null intersection) or if its volume is negative. A bounding box
with a volume of zero is not empty.
true if the bounding box is empty; otherwise, it returns false |
set | public void set(Bounds boundsObject)(Code) | | Sets the the value of this BoundingBox
Parameters: boundsObject - another bounds object |
setLower | public void setLower(double xmin, double ymin, double zmin)(Code) | | Sets the lower corner of this bounding box.
Parameters: xmin - minimum x value of boundining box Parameters: ymin - minimum y value of boundining box Parameters: zmin - minimum z value of boundining box |
setLower | public void setLower(Point3d p1)(Code) | | Sets the lower corner of this bounding box.
Parameters: p1 - a Point defining the new lower corner of the bounding box |
setUpper | public void setUpper(double xmax, double ymax, double zmax)(Code) | | Sets the upper corner of this bounding box.
Parameters: xmax - max x value of boundining box Parameters: ymax - max y value of boundining box Parameters: zmax - max z value of boundining box |
setUpper | public void setUpper(Point3d p1)(Code) | | Sets the upper corner of this bounding box.
Parameters: p1 - a Point defining the new upper corner of the bounding box |
toString | public String toString()(Code) | | Returns a string representation of this class.
|
transform | public void transform(Bounds boundsObject, Transform3D matrix)(Code) | | Modifies the bounding box so that it bounds the volume
generated by transforming the given bounding object.
Parameters: boundsObject - the bounding object to be transformed Parameters: matrix - a transformation matrix |
transform | public void transform(Transform3D matrix)(Code) | | Transforms this bounding box by the given matrix.
Parameters: matrix - a transformation matrix |
Methods inherited from javax.media.j3d.Bounds | abstract public Object clone()(Code)(Java Doc) abstract public Bounds closestIntersection(Bounds[] boundsObjects)(Code)(Java Doc) boolean closest_point(Point3d g, Vector4d[] planes, Point3d new_point)(Code)(Java Doc) abstract public void combine(Bounds boundsObject)(Code)(Java Doc) abstract public void combine(Bounds[] boundsObjects)(Code)(Java Doc) abstract public void combine(Point3d point)(Code)(Java Doc) abstract public void combine(Point3d[] points)(Code)(Java Doc) abstract Bounds copy(Bounds region)(Code)(Java Doc) abstract public boolean equals(Object bounds)(Code)(Java Doc) abstract Point3d getCenter()(Code)(Java Doc) abstract int getPickType()(Code)(Java Doc) synchronized void getWithLock(Bounds b)(Code)(Java Doc) abstract public int hashCode()(Code)(Java Doc) abstract public boolean intersect(Point3d origin, Vector3d direction)(Code)(Java Doc) abstract public boolean intersect(Point3d point)(Code)(Java Doc) abstract boolean intersect(Point3d origin, Vector3d direction, Point4d position)(Code)(Java Doc) abstract boolean intersect(Point3d point, Point4d position)(Code)(Java Doc) abstract boolean intersect(Point3d start, Point3d end, Point4d position)(Code)(Java Doc) abstract boolean intersect(Bounds boundsObject, Point4d position)(Code)(Java Doc) abstract public boolean intersect(Bounds boundsObject)(Code)(Java Doc) abstract public boolean intersect(Bounds[] boundsObjects)(Code)(Java Doc) boolean intersect_ptope_abox(BoundingPolytope polyTope, BoundingBox box)(Code)(Java Doc) boolean intersect_ptope_ptope(BoundingPolytope poly1, BoundingPolytope poly2)(Code)(Java Doc) boolean intersect_ptope_sphere(BoundingPolytope polyTope, BoundingSphere sphere)(Code)(Java Doc) abstract public boolean isEmpty()(Code)(Java Doc) abstract public void set(Bounds boundsObject)(Code)(Java Doc) synchronized void setWithLock(Bounds b)(Code)(Java Doc) abstract public void transform(Transform3D trans)(Code)(Java Doc) abstract public void transform(Bounds bounds, Transform3D trans)(Code)(Java Doc)
|
|
|