|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.tensegrity.graphics.BBoxOperations
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 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 void |
resizeBoundingBox(Boundary b,
int hAlign,
int vAlign,
int minWidth,
int minHeight)
Resizes the given boundary to be at least as big as the given minimum size. |
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 BoundingBox |
transform_createnew(Transform2D xform,
BoundingBox 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. |
static void |
transform(Transform2D xform,
BoundingBox 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 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.
public static final void transform(Transform2D xform,
BoundingBox bbox)
Boundary by meams of the given
Tramsform2D.
xform - the Transform2D to apply.bbox - the BoundingBox to transform.
public static final BoundingBox transform_createnew(Transform2D xform,
BoundingBox 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 BoundingBox to transform.
Boundary.
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 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 void resizeBoundingBox(Boundary b,
int hAlign,
int vAlign,
int minWidth,
int minHeight)
b - The boundary to resizehAlign - The alignment of the new boundary relative to
the old onevAlign - The alignment of the new boundary relative to
the old oneminWidth - The minimum width of the boundaryminHeight - The minimum height of the boundary
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||