|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.media.j3d.Bounds
The abstract base class for bounds objects. Bounds objects define a convex, closed volume that is used for various intersection and culling operations.
Constructor Summary | |
Bounds()
Constructs a new Bounds object. |
Method Summary | |
abstract java.lang.Object |
clone()
Makes a copy of a bounds object. |
abstract Bounds |
closestIntersection(Bounds[] boundsObjects)
Finds closest bounding object that intersects this bounding object. |
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. |
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. |
abstract void |
combine(Point3d point)
Combines this bounding object with a point. |
abstract void |
combine(Point3d[] points)
Combines this bounding object with an array of points. |
abstract boolean |
equals(java.lang.Object bounds)
Indicates whether the specified bounds object is
equal to this Bounds object. |
abstract int |
hashCode()
Returns a hash code for this Bounds object based on the data values in this object. |
abstract boolean |
intersect(Bounds boundsObject)
Test for intersection with another bounds object. |
abstract boolean |
intersect(Bounds[] boundsObjects)
Test for intersection with another bounds object. |
abstract boolean |
intersect(Point3d point)
Test for intersection with a point. |
abstract boolean |
intersect(Point3d origin,
Vector3d direction)
Test for intersection with a ray. |
abstract boolean |
isEmpty()
Tests whether the bounds is empty. |
abstract void |
set(Bounds boundsObject)
Sets the value of this Bounds object. |
abstract void |
transform(Bounds bounds,
Transform3D trans)
Modifies the bounding object so that it bounds the volume generated by transforming the given bounding object. |
abstract void |
transform(Transform3D trans)
Transforms this bounding object by the given matrix. |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Bounds()
Method Detail |
public abstract java.lang.Object clone()
clone
in class java.lang.Object
public abstract boolean equals(java.lang.Object bounds)
bounds
object is
equal to this Bounds object. They are equal if both the
specified bounds
object and this Bounds are
instances of the same Bounds subclass and all of the data
members of bounds
are equal to the corresponding
data members in this Bounds.
equals
in class java.lang.Object
bounds
- the object with which the comparison is made.
bounds
;
otherwise falsepublic abstract int hashCode()
hashCode
in class java.lang.Object
public abstract boolean intersect(Point3d origin, Vector3d direction)
origin
- the starting point of the raydirection
- the direction of the ray
public abstract boolean intersect(Point3d point)
point
- a point defining a position in 3-space
public abstract boolean intersect(Bounds boundsObject)
boundsObject
- another bounds object
public abstract boolean intersect(Bounds[] boundsObjects)
boundsObjects
- an array of bounding objects
public abstract Bounds closestIntersection(Bounds[] boundsObjects)
boundsObjects
- an array of bounds objects
public abstract void combine(Bounds boundsObject)
boundsObject
- another bounds objectpublic abstract void combine(Bounds[] boundsObjects)
boundsObjects
- an array of bounds objectspublic abstract void combine(Point3d point)
point
- a 3d point in spacepublic abstract void combine(Point3d[] points)
points
- an array of 3d points in spacepublic abstract void transform(Transform3D trans)
trans
- the transformation matrixpublic abstract void transform(Bounds bounds, Transform3D trans)
bounds
- the bounding object to be transformedtrans
- the transformation matrixpublic abstract boolean isEmpty()
public abstract void set(Bounds boundsObject)
boundsObject
- another bounds object.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |