| java.lang.Object javax.media.j3d.Bounds
All known Subclasses: javax.media.j3d.BoundingBox, javax.media.j3d.BoundingSphere, javax.media.j3d.BoundingPolytope,
Bounds | abstract public class Bounds extends Object implements Cloneable(Code) | | 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 | |
public | Bounds() Constructs a new Bounds object. |
Method Summary | |
abstract public Object | clone() Makes a copy of a bounds object. | abstract public Bounds | closestIntersection(Bounds[] boundsObjects) Finds closest bounding object that intersects this bounding object. | boolean | closest_point(Point3d g, Vector4d[] planes, Point3d new_point) | abstract public 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 public 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 public void | combine(Point3d point) Combines this bounding object with a point. | abstract public void | combine(Point3d[] points) Combines this bounding object with an array of points. | abstract Bounds | copy(Bounds region) | abstract public boolean | equals(Object bounds) Indicates whether the specified bounds object is
equal to this Bounds object. | abstract Point3d | getCenter() | abstract int | getPickType() | synchronized void | getWithLock(Bounds b) | abstract public int | hashCode() Returns a hash code for this Bounds object based on the
data values in this object. | abstract public boolean | intersect(Point3d origin, Vector3d direction) Test for intersection with a ray. | abstract public boolean | intersect(Point3d point) Test for intersection with a point. | abstract boolean | intersect(Point3d origin, Vector3d direction, Point4d position) | abstract boolean | intersect(Point3d point, Point4d position) | abstract boolean | intersect(Point3d start, Point3d end, Point4d position) | abstract boolean | intersect(Bounds boundsObject, Point4d position) | abstract public boolean | intersect(Bounds boundsObject) Test for intersection with another bounds object. | abstract public boolean | intersect(Bounds[] boundsObjects) Test for intersection with another bounds object. | boolean | intersect_ptope_abox(BoundingPolytope polyTope, BoundingBox box) | boolean | intersect_ptope_ptope(BoundingPolytope poly1, BoundingPolytope poly2) | boolean | intersect_ptope_sphere(BoundingPolytope polyTope, BoundingSphere sphere) | abstract public boolean | isEmpty() Tests whether the bounds is empty. | abstract public void | set(Bounds boundsObject) Sets the value of this Bounds object. | synchronized void | setWithLock(Bounds b) | abstract public void | transform(Transform3D trans) Transforms this bounding object by the given matrix. | abstract public void | transform(Bounds bounds, Transform3D trans) Modifies the bounding object so that it bounds the volume
generated by transforming the given bounding object. |
BOUNDING_BOX | final static int BOUNDING_BOX(Code) | | |
BOUNDING_POLYTOPE | final static int BOUNDING_POLYTOPE(Code) | | |
BOUNDING_SPHERE | final static int BOUNDING_SPHERE(Code) | | |
EPSILON | final static double EPSILON(Code) | | |
boundsIsEmpty | boolean boundsIsEmpty(Code) | | |
boundsIsInfinite | boolean boundsIsInfinite(Code) | | |
debug | final static boolean debug(Code) | | |
Bounds | public Bounds()(Code) | | Constructs a new Bounds object.
|
clone | abstract public Object clone()(Code) | | Makes a copy of a bounds object.
|
closestIntersection | abstract public Bounds closestIntersection(Bounds[] boundsObjects)(Code) | | Finds closest bounding object that intersects this bounding object.
Parameters: boundsObjects - an array of bounds objects closest bounding object |
closest_point | boolean closest_point(Point3d g, Vector4d[] planes, Point3d new_point)(Code) | | computes the closest point from the given point to a set of planes
(polytope)
Parameters: g - the point Parameters: planes - array of bounding planes Parameters: new_point - point on planes closest g |
combine | abstract public void combine(Bounds boundsObject)(Code) | | Combines this bounding object with a bounding object so that the
resulting bounding object encloses the original bounding object and the
given bounds object.
Parameters: boundsObject - another bounds object |
combine | abstract public void combine(Bounds[] boundsObjects)(Code) | | 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.
Parameters: boundsObjects - an array of bounds objects |
combine | abstract public void combine(Point3d point)(Code) | | Combines this bounding object with a point.
Parameters: point - a 3d point in space |
combine | abstract public void combine(Point3d[] points)(Code) | | Combines this bounding object with an array of points.
Parameters: points - an array of 3d points in space |
equals | abstract public boolean equals(Object bounds)(Code) | | Indicates whether the specified 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.
Parameters: bounds - the object with which the comparison is made. true if this Bounds object is equal to bounds ;otherwise false since: Java 3D 1.2 |
getCenter | abstract Point3d getCenter()(Code) | | Returns the center of the bounds
bounds center |
getPickType | abstract int getPickType()(Code) | | |
hashCode | abstract public int hashCode()(Code) | | Returns a hash code for this Bounds object based on the
data values in this object. Two different Bounds objects of
the same type with identical data values (i.e., Bounds.equals
returns true) will return the same hash code. Two Bounds
objects with different data members may return the same hash code
value, although this is not likely.
a hash code for this Bounds object. since: Java 3D 1.2 |
intersect | abstract 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 | abstract 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 | abstract boolean intersect(Point3d origin, Vector3d direction, Point4d position)(Code) | | Test for intersection with a ray
Parameters: origin - is a the starting point of the ray Parameters: direction - is the direction of the ray Parameters: position - is a point defining the location of the pick w= distance to pick true or false indicating if an intersection occured |
intersect | abstract boolean intersect(Point3d point, Point4d position)(Code) | | Test for intersection with a point
Parameters: point - is a point defining a position in 3-space Parameters: position - is a point defining the location of the pick w= distance to pick true or false indicating if an intersection occured |
intersect | abstract boolean intersect(Point3d start, Point3d end, Point4d position)(Code) | | Test for intersection with a segment
Parameters: start - is a point defining the start of the line segment Parameters: end - is a point defining the end of the line segment Parameters: position - is a point defining the location of the pick w= distance to pick true or false indicating if an intersection occured |
intersect | abstract boolean intersect(Bounds boundsObject, Point4d position)(Code) | | Test for intersection with another bounds object
Test for intersection with another bounds object
Parameters: boundsObject - is another bounds object true or false indicating if an intersection occured |
intersect | abstract 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 occurred |
intersect | abstract 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 |
isEmpty | abstract public boolean isEmpty()(Code) | | Tests whether the bounds is empty. A bounds is
empty if it is null (either by construction or as the result of
a null intersection) or if its volume is negative. A bounds
with a volume of zero is not empty.
true if the bounds is empty; otherwise, it returns false |
set | abstract public void set(Bounds boundsObject)(Code) | | Sets the value of this Bounds object.
Parameters: boundsObject - another bounds object. |
transform | abstract public void transform(Transform3D trans)(Code) | | Transforms this bounding object by the given matrix.
Parameters: trans - the transformation matrix |
transform | abstract public void transform(Bounds bounds, Transform3D trans)(Code) | | Modifies the bounding object so that it bounds the volume
generated by transforming the given bounding object.
Parameters: bounds - the bounding object to be transformed Parameters: trans - the transformation matrix |
|
|