|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gumbo.graphic.probe.Bound3 | +--gumbo.graphic.probe.AxisBound3
A 3D axis-aligned box bound, whose position and extent are defined by a minimum and maximum point. Due to the nature of this bound the boundedness of a target graphic may not be preserved if transforms other than translation and scaling are used.
Constructor Summary | |
AxisBound3()
|
|
AxisBound3(Point3 pointA,
Point3 pointB)
|
Method Summary | |
boolean |
canIntersectGraphic(GraphicGeometry intersector)
Returns true if the intersection operation between the intersector and this intersectable is supported. |
Point3 |
center(Point3 retVal)
Returns the center of this bound. |
Bound3 |
clear()
Clears the bound by clearing its components (zero position, zero volume) and setting it empty. |
AxisBound3 |
combine(AxisBound3 boundA,
AxisBound3 boundB)
Volumetrically combines two (possibly empty) bounds, and saves the result in this bounds. |
AxisBound3 |
combine(AxisBound3 bound,
Point3 point)
Volumetrically combines a (possibly empty) bound and a point, and saves the result in this bounds. |
boolean |
contains(AxisBound3 target)
Returns true if a bound is completely contained by or is coincident with this bound. |
boolean |
contains(Point3 target)
Returns true if a point is completely contained by or is coincident with this bound. |
boolean |
equals(java.lang.Object obj)
|
AxisBound3 |
getAxisBound3()
Gets a singleton immutable view of this object with the same identity (hashCode(), equals()) as this object. |
AxisBound3 |
getGraphicAxisBound3(AxisBound3 retVal)
Returns the bound for this graphic. |
Point3 |
getMaxPoint()
Returns an immutable view of the maximum point. |
Point3 |
getMinPoint()
Returns an immutable view of the minimum point. |
protected AxisBound3 |
implClear()
Master full state mutator. |
protected AxisBound3 |
implGetAxisBound3()
Master full state accessor. |
protected Point3 |
implGetMaxPoint()
Master partial state accessor. |
protected Point3 |
implGetMinPoint()
Master partial state accessor. |
protected boolean |
implIsEmpty()
Master partial state accessor. |
protected AxisBound3 |
implSet(Point3 pointA,
Point3 pointB)
Master full state mutator. |
AxisBound3 |
intersect(AxisBound3 boundA,
AxisBound3 boundB)
Volumetrically intersects two (possibly empty) bounds, and saves the result in this bound. |
boolean |
intersectGraphic(GraphicGeometry intersector)
Returns true if the intersector intersects this intersectable. |
boolean |
isEmpty()
Returns true if the bound is empty, because it has never been set, it has been cleared, or as the result of a null intersection. |
AxisBound3 |
offset(AxisBound3 bound,
Tuple3 offset)
Adds an offset to this bound's extents. |
Bound3 |
set(Bound3 bound)
Copies the value of a (possibly empty) bound into this one. |
AxisBound3 |
set(Point3 pointA,
Point3 pointB)
Sets the extents of this bound as defined by two arbitrary points. |
AxisBound3 |
set(Point3 center,
Size3 size)
Sets this bound given the bound center point and size. |
Tuple3 |
size(Tuple3 retVal)
Returns the size of this bound. |
java.lang.String |
toString()
|
void |
transformGraphic(Matrix4 matrix)
Transforms this graphic's geometry by pre-multiplying it with the specified transform matrix. |
void |
transformGraphic(SpaceNode from,
SpaceNode to)
Transforms this graphic's geometry from one local reference space to another in a space tree. |
Methods inherited from class gumbo.graphic.probe.Bound3 |
getBound3, getGraphic, getGraphicLocalSpace |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface gumbo.graphic.space.GraphicGeometry |
getGraphicLocalSpace |
Methods inherited from interface gumbo.graphic.Graphic |
getGraphic |
Constructor Detail |
public AxisBound3()
public AxisBound3(Point3 pointA, Point3 pointB)
Method Detail |
public final AxisBound3 set(Point3 pointA, Point3 pointB)
public final AxisBound3 set(Point3 center, Size3 size)
public final AxisBound3 offset(AxisBound3 bound, Tuple3 offset)
public final AxisBound3 intersect(AxisBound3 boundA, AxisBound3 boundB)
public final AxisBound3 combine(AxisBound3 bound, Point3 point)
public final AxisBound3 combine(AxisBound3 boundA, AxisBound3 boundB)
public final AxisBound3 getAxisBound3()
public final Point3 getMinPoint()
public final Point3 getMaxPoint()
public final Tuple3 size(Tuple3 retVal)
public final Point3 center(Point3 retVal)
public final boolean contains(Point3 target)
public final boolean contains(AxisBound3 target)
protected AxisBound3 implSet(Point3 pointA, Point3 pointB)
protected AxisBound3 implClear()
protected Point3 implGetMinPoint()
protected Point3 implGetMaxPoint()
protected boolean implIsEmpty()
protected AxisBound3 implGetAxisBound3()
public final boolean isEmpty()
Bound3
isEmpty
in class Bound3
public Bound3 set(Bound3 bound)
set
in class Bound3
bound
- Bound to be copied. Never null.
java.lang.UnsupportedOperationException
- Bound must be an AxisBound3.public final Bound3 clear()
Bound3
clear
in class Bound3
public final AxisBound3 getGraphicAxisBound3(AxisBound3 retVal)
AxisBound3Boundable
getGraphicAxisBound3
in interface AxisBound3Boundable
retVal
- Return value object. The bound. Never null.
public void transformGraphic(SpaceNode from, SpaceNode to)
TransformableGraphic
transformGraphic
in interface TransformableGraphic
from
- The current reference space. Never null.to
- The new reference space. Never null.public void transformGraphic(Matrix4 matrix)
TransformableGraphic
transformGraphic
in interface TransformableGraphic
matrix
- Value of the transform matrix. Never null.public boolean canIntersectGraphic(GraphicGeometry intersector)
IntersectableGraphic
canIntersectGraphic
in interface IntersectableGraphic
intersector
- Value of the intersector. Never null.
public boolean intersectGraphic(GraphicGeometry intersector)
IntersectableGraphic
intersectGraphic
in interface IntersectableGraphic
intersector
- Value of the intersector. Never null.
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class Bound3
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |