public abstract class Bounds extends Object implements Cloneable
Constructor and Description |
---|
Bounds()
Constructs a new Bounds object.
|
Modifier and Type | Method and Description |
---|---|
abstract 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(Object bounds)
Indicates whether the specified
bounds object is
equal to this Bounds object. |
abstract void |
getCenter(Point3d center)
Gets the centroid of this bounding region.
|
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.
|
public abstract Object clone()
public abstract boolean equals(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.public abstract int hashCode()
public abstract boolean intersect(Point3d origin, Vector3d direction)
origin
- the starting point of the raydirection
- the direction of the raypublic abstract boolean intersect(Point3d point)
point
- a point defining a position in 3-spacepublic abstract boolean intersect(Bounds boundsObject)
boundsObject
- another bounds objectpublic abstract boolean intersect(Bounds[] boundsObjects)
boundsObjects
- an array of bounding objectspublic abstract Bounds closestIntersection(Bounds[] boundsObjects)
boundsObjects
- an array of bounds objectspublic abstract void getCenter(Point3d center)
center
- a Point to receive the centroid of the bounding regionpublic 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.Copyright © 2016–2022 SciJava. All rights reserved.