|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.tensegrity.composite.CompositeBBoxOperations
This clas provides static utilitiy methods useful when working with
Boundaries and BoundingBoxes.
| Field Summary | |
static int |
CHECK_AGAINST_BBOX
Constants specifying the different modes for method contains. |
static int |
CHECK_AGAINST_CENTER
Constants specifying the different modes for method contains. |
| Method Summary | |
static Boundary |
computeBoundingBox(java.util.Iterator it)
Returns a Boundary containing all Boundaries belonging to
the BaseComposites that are accessible by the given
Iterator. |
static boolean |
contains(int checkAgainstMode,
Boundary bboxCheckFor,
Boundary bboxCheckAgainst)
Checking whether the given Boundary bboxCheckAgainst
contains the Boundary bboxCheckFor. |
static boolean |
contains(int checkAgainstMode,
Boundary bboxCheckFor,
BoundingBox bboxCheckAgainst)
Checking whether the given BoundingBox bboxCheckAgainst
contains the Boundary bboxCheckFor. |
static Boundary |
transform_createnew(Transform2D xform,
Boundary bbox)
Returns a new Boundary that is a transformation of the given
Boundary by meams of the given Tramsform2D. |
static void |
transform(Transform2D xform,
Boundary bbox)
Transforms the given Boundary by meams of the given
Tramsform2D. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int CHECK_AGAINST_CENTER
contains.
public static final int CHECK_AGAINST_BBOX
contains.
| Method Detail |
public static final Boundary computeBoundingBox(java.util.Iterator it)
Boundary containing all Boundaries belonging to
the BaseComposites that are accessible by the given
Iterator.
it - an Iterator holding BaseComposites.
Boundary containing all Boundaries.
public static final boolean contains(int checkAgainstMode,
Boundary bboxCheckFor,
Boundary bboxCheckAgainst)
Boundary bboxCheckAgainst
contains the Boundary bboxCheckFor.
checkAgainstMode - the mode to use. Valid modes are
CHECK_AGAINST_CENTER and CHECK_AGAINST_BBOX.bboxCheckFor - the Boundary to check.bboxCheckAgainst - the Boundary to check against.
true, if the given
Boundary bboxCheckAgainst contains the
Boundary bboxCheckFor.
public static final boolean contains(int checkAgainstMode,
Boundary bboxCheckFor,
BoundingBox bboxCheckAgainst)
BoundingBox bboxCheckAgainst
contains the Boundary bboxCheckFor.
checkAgainstMode - the mode to use. Valid modes are
CHECK_AGAINST_CENTER and CHECK_AGAINST_BBOX.bboxCheckFor - the Boundary to check.bboxCheckAgainst - the BoundingBox to check against.
true, if the given
BoundingBox bboxCheckAgainst contains the
Boundary bboxCheckFor.
public static final void transform(Transform2D xform,
Boundary bbox)
Boundary by meams of the given
Tramsform2D.
xform - the Transform2D to apply.bbox - the Boundary to transform.
public static final Boundary transform_createnew(Transform2D xform,
Boundary bbox)
Boundary that is a transformation of the given
Boundary by meams of the given Tramsform2D. The
given Boundary is left unchanged.
xform - the Transform2D to apply.bbox - the Boundary to transform.
Boundary.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||