|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.media.j3d.Bounds
public abstract class Bounds
The abstract base class for bounds objects. Bounds objects define a convex, closed volume that is used for various intersection and culling operations.
Field Summary | |
---|---|
(package private) int |
boundId
|
(package private) static int |
BOUNDING_BOX
|
(package private) static int |
BOUNDING_POLYTOPE
|
(package private) static int |
BOUNDING_SPHERE
|
(package private) boolean |
boundsIsEmpty
|
(package private) boolean |
boundsIsInfinite
|
(package private) static boolean |
debug
|
(package private) static double |
EPSILON
|
Constructor Summary | |
---|---|
Bounds()
Constructs a new Bounds object. |
Method Summary | |
---|---|
abstract java.lang.Object |
clone()
Makes a copy of a bounds object. |
(package private) boolean |
closest_point(Point3d g,
Vector4d[] planes,
Point3d new_point)
computes the closest point from the given point to a set of planes (polytope) |
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. |
(package private) abstract Bounds |
copy(Bounds region)
|
abstract boolean |
equals(java.lang.Object bounds)
Indicates whether the specified bounds object is
equal to this Bounds object. |
(package private) abstract Point3d |
getCenter()
Returns the center of the bounds |
(package private) abstract int |
getPickType()
|
(package private) void |
getWithLock(Bounds b)
|
abstract int |
hashCode()
Returns a hash code for this Bounds object based on the data values in this object. |
(package private) boolean |
intersect_ptope_abox(BoundingPolytope polyTope,
BoundingBox box)
|
(package private) boolean |
intersect_ptope_ptope(BoundingPolytope poly1,
BoundingPolytope poly2)
|
(package private) boolean |
intersect_ptope_sphere(BoundingPolytope polyTope,
BoundingSphere sphere)
|
abstract boolean |
intersect(Bounds boundsObject)
Test for intersection with another bounds object. |
abstract boolean |
intersect(Bounds[] boundsObjects)
Test for intersection with another bounds object. |
(package private) abstract boolean |
intersect(Bounds boundsObject,
Point4d position)
Test for intersection with another bounds object Test for intersection with another bounds object |
abstract boolean |
intersect(Point3d point)
Test for intersection with a point. |
(package private) abstract boolean |
intersect(Point3d start,
Point3d end,
Point4d position)
Test for intersection with a segment |
(package private) abstract boolean |
intersect(Point3d point,
Point4d position)
Test for intersection with a point |
abstract boolean |
intersect(Point3d origin,
Vector3d direction)
Test for intersection with a ray. |
(package private) abstract boolean |
intersect(Point3d origin,
Vector3d direction,
Point4d position)
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. |
(package private) void |
setWithLock(Bounds b)
|
private void |
test_point(Vector4d[] planes,
Point3d new_point)
|
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 |
Field Detail |
---|
static final double EPSILON
static final boolean debug
static final int BOUNDING_BOX
static final int BOUNDING_SPHERE
static final int BOUNDING_POLYTOPE
boolean boundsIsEmpty
boolean boundsIsInfinite
int boundId
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
abstract boolean intersect(Point3d origin, Vector3d direction, Point4d position)
origin
- is a the starting point of the raydirection
- is the direction of the rayposition
- is a point defining the location of the pick w= distance to pick
abstract boolean intersect(Point3d point, Point4d position)
point
- is a point defining a position in 3-spaceposition
- is a point defining the location of the pick w= distance to pick
abstract boolean intersect(Point3d start, Point3d end, Point4d position)
start
- is a point defining the start of the line segmentend
- is a point defining the end of the line segmentposition
- is a point defining the location of the pick w= distance to pick
abstract boolean intersect(Bounds boundsObject, Point4d position)
boundsObject
- is another bounds object
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
abstract Point3d getCenter()
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.abstract Bounds copy(Bounds region)
private void test_point(Vector4d[] planes, Point3d new_point)
boolean closest_point(Point3d g, Vector4d[] planes, Point3d new_point)
g
- the pointplanes
- array of bounding planesnew_point
- point on planes closest gboolean intersect_ptope_sphere(BoundingPolytope polyTope, BoundingSphere sphere)
boolean intersect_ptope_abox(BoundingPolytope polyTope, BoundingBox box)
boolean intersect_ptope_ptope(BoundingPolytope poly1, BoundingPolytope poly2)
void setWithLock(Bounds b)
void getWithLock(Bounds b)
abstract int getPickType()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |