|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.media.j3d.Bounds
Abstract class for bounding objects. Sub-classes are BoundingSphere, BoundingBox and BoundingPolytope
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 which 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 |
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)
This transforms this bounding object by the given matrix |
Methods inherited from class java.lang.Object |
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public Bounds()
Method Detail |
public abstract java.lang.Object clone()
public abstract boolean intersect(Point3d origin, Vector3d direction)
public abstract boolean intersect(Point3d point)
point
- is a point defining a position in 3-spacepublic abstract boolean intersect(Bounds boundsObject)
boundsObject
- is another bounds objectpublic abstract boolean intersect(Bounds[] boundsObjects)
boundsObjects
- is an array of bounding objectspublic abstract Bounds closestIntersection(Bounds[] boundsObjects)
boundsObjects
- is an array of bounds objectspublic abstract void combine(Bounds boundsObject)
boundsObject
- is another bounds objectpublic abstract void combine(Bounds[] boundsObjects)
boundsObjects
- is an array of bounds objectspublic abstract void combine(Point3d point)
point
- is a 3d point in spacepublic abstract void combine(Point3d[] points)
points
- is an array of 3d points in spacepublic abstract void transform(Transform3D trans)
public abstract void transform(Bounds bounds, Transform3D trans)
boundsObject
- is the bounding object to be transformedmatrix
- is a transformation matrixpublic abstract boolean isEmpty()
public abstract void set(Bounds boundsObject)
boundsObject
- is another bounds object.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |