| java.lang.Object javax.media.j3d.Bounds javax.media.j3d.BoundingSphere
All known Subclasses: com.db.server.ExtendedBoundingSphere,
BoundingSphere | public class BoundingSphere extends Bounds (Code) | | This class defines a spherical bounding region which is defined by a
center point and a radius.
|
Constructor Summary | |
public | BoundingSphere(Point3d center, double radius) Constructs and initializes a BoundingSphere from a center and radius. | public | BoundingSphere() Constructs and initializes a BoundingSphere with radius = 1 at 0 0 0. | public | BoundingSphere(Bounds boundsObject) Constructs and initializes a BoundingSphere from a bounding object. | public | BoundingSphere(Bounds[] boundsObjects) Constructs and initializes a BoundingSphere from an array of bounding objects. |
Method Summary | |
boolean | checkBoundsIsNaN() | public Object | clone() Creates a copy of the bounding sphere. | public Bounds | closestIntersection(Bounds[] boundsObjects) Finds closest bounding object that intersects this bounding sphere. | public void | combine(Bounds boundsObject) Combines this bounding sphere with a bounding object so that the
resulting bounding sphere encloses the original bounding sphere and the
given bounds object. | public void | combine(Bounds[] boundsObjects) Combines this bounding sphere with an array of bounding objects so that the
resulting bounding sphere encloses the original bounding sphere and the
given array of bounds object. | public void | combine(Point3d point) Combines this bounding sphere with a point. | public void | combine(Point3d[] points) Combines this bounding sphere with an array of points. | Bounds | copy(Bounds r) | public boolean | equals(Object bounds) Indicates whether the specified bounds object is
equal to this BoundingSphere object. | public void | getCenter(Point3d center) Returns the position of this bounding sphere as a point. | Point3d | getCenter() | int | getPickType() | public double | getRadius() Returns the radius of this bounding sphere as a double. | public int | hashCode() Returns a hash code value for this BoundingSphere object
based on the data values in this object. | boolean | intersect(Point3d origin, Vector3d direction, Point4d position) | boolean | intersect(Point3d point, Point4d position) | boolean | intersect(Point3d start, Point3d end, Point4d position) | public boolean | intersect(Point3d origin, Vector3d direction) Test for intersection with a ray. | boolean | intersect(Point3d origin, Vector3d direction, Point3d intersectPoint) Returns the position of the intersect point if the ray intersects with
the sphere. | 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 another bounds object. | public boolean | intersect(Bounds boundsObject, BoundingSphere newBoundSphere) Test for intersection with another bounds object. | public boolean | intersect(Bounds[] boundsObjects, BoundingSphere newBoundSphere) Test for intersection with an array of bounds objects. | boolean | intersect(CachedFrustum frustum) Intersects this bounding sphere with preprocessed frustum. | boolean | intersect(Vector4d[] planes) | public boolean | isEmpty() Tests whether the bounding sphere is empty. | public void | set(Bounds boundsObject) Sets the value of this BoundingSphere. | public void | setCenter(Point3d center) Sets the position of this bounding sphere from a point. | public void | setRadius(double r) Sets the radius of this bounding sphere from a double. | public String | toString() Returns a string representation of this class. | public void | transform(Bounds boundsObject, Transform3D matrix) Modifies the bounding sphere so that it bounds the volume
generated by transforming the given bounding object. | public void | transform(Transform3D trans) Transforms this bounding sphere by the given matrix. |
allocBoxVerts | boolean allocBoxVerts(Code) | | |
boxVerts | Point3d boxVerts(Code) | | |
center | Point3d center(Code) | | The center of the bounding sphere.
|
radius | double radius(Code) | | The radius of the bounding sphere.
|
BoundingSphere | public BoundingSphere(Point3d center, double radius)(Code) | | Constructs and initializes a BoundingSphere from a center and radius.
Parameters: center - the center of the bounding sphere Parameters: radius - the radius of the bounding sphere |
BoundingSphere | public BoundingSphere()(Code) | | Constructs and initializes a BoundingSphere with radius = 1 at 0 0 0.
|
BoundingSphere | public BoundingSphere(Bounds boundsObject)(Code) | | Constructs and initializes a BoundingSphere from a bounding object.
Parameters: boundsObject - a bounds object |
BoundingSphere | public BoundingSphere(Bounds[] boundsObjects)(Code) | | Constructs and initializes a BoundingSphere from an array of bounding objects.
Parameters: boundsObjects - an array of bounds objects |
checkBoundsIsNaN | boolean checkBoundsIsNaN()(Code) | | |
clone | public Object clone()(Code) | | Creates a copy of the bounding sphere.
a BoundingSphere |
closestIntersection | public Bounds closestIntersection(Bounds[] boundsObjects)(Code) | | Finds closest bounding object that intersects this bounding sphere.
Parameters: boundsObjects - an array of bounds objects closest bounding object |
combine | public void combine(Bounds boundsObject)(Code) | | Combines this bounding sphere with a bounding object so that the
resulting bounding sphere encloses the original bounding sphere and the
given bounds object.
Parameters: boundsObject - another bounds object |
combine | public void combine(Bounds[] boundsObjects)(Code) | | Combines this bounding sphere with an array of bounding objects so that the
resulting bounding sphere encloses the original bounding sphere and the
given array of bounds object.
Parameters: boundsObjects - an array of bounds objects |
combine | public void combine(Point3d point)(Code) | | Combines this bounding sphere with a point.
Parameters: point - a 3D point in space |
combine | public void combine(Point3d[] points)(Code) | | Combines this bounding sphere with an 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 BoundingSphere object. They are equal if the
specified bounds object is an instance of
BoundingSphere and all of the data
members of bounds are equal to the corresponding
data members in this BoundingSphere.
Parameters: bounds - the object with which the comparison is made. true if this BoundingSphere is equal to bounds ;otherwise false since: Java 3D 1.2 |
getCenter | public void getCenter(Point3d center)(Code) | | Returns the position of this bounding sphere as a point.
Parameters: center - a Point to receive the center of the bounding sphere |
getCenter | Point3d getCenter()(Code) | | |
getPickType | int getPickType()(Code) | | |
getRadius | public double getRadius()(Code) | | Returns the radius of this bounding sphere as a double.
the radius of the bounding sphere |
hashCode | public int hashCode()(Code) | | Returns a hash code value for this BoundingSphere object
based on the data values in this object. Two different
BoundingSphere objects with identical data values (i.e.,
BoundingSphere.equals returns true) will return the same hash
code value. Two BoundingSphere objects with different data
members may return the same hash code value, although this is
not likely.
a hash code value for this BoundingSphere 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 intersectPoint)(Code) | | Returns the position of the intersect point if the ray intersects with
the sphere.
|
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 another bounds object.
Parameters: boundsObjects - an array of bounding objects true or false indicating if an intersection occured |
intersect | public boolean intersect(Bounds boundsObject, BoundingSphere newBoundSphere)(Code) | | Test for intersection with another bounds object.
Parameters: boundsObject - another bounds object Parameters: newBoundSphere - the new bounding sphere which is the intersection ofthe boundsObject and this BoundingSphere true or false indicating if an intersection occured |
intersect | public boolean intersect(Bounds[] boundsObjects, BoundingSphere newBoundSphere)(Code) | | Test for intersection with an array of bounds objects.
Parameters: boundsObjects - an array of bounds objects Parameters: newBoundSphere - the new bounding sphere which is the intersection ofthe boundsObject and this BoundingSphere true or false indicating if an intersection occured |
intersect | boolean intersect(CachedFrustum frustum)(Code) | | Intersects this bounding sphere with preprocessed frustum.
true if the bounding sphere and frustum intersect. |
intersect | boolean intersect(Vector4d[] planes)(Code) | | This intersects this bounding sphere with 6 frustum plane equations
returns true if the bounding sphere and frustum intersect. |
isEmpty | public boolean isEmpty()(Code) | | Tests whether the bounding sphere is empty. A bounding sphere 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 sphere
with a volume of zero is not empty.
true if the bounding sphere is empty;otherwise, it returns false |
set | public void set(Bounds boundsObject)(Code) | | Sets the value of this BoundingSphere.
Parameters: boundsObject - another bounds object |
setCenter | public void setCenter(Point3d center)(Code) | | Sets the position of this bounding sphere from a point.
Parameters: center - a Point defining the new center of the bounding sphere |
setRadius | public void setRadius(double r)(Code) | | Sets the radius of this bounding sphere from a double.
Parameters: r - the new radius for the bounding sphere |
toString | public String toString()(Code) | | Returns a string representation of this class.
|
transform | public void transform(Bounds boundsObject, Transform3D matrix)(Code) | | Modifies the bounding sphere 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 trans)(Code) | | Transforms this bounding sphere by the given 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)
|
|
|