public class BoundingBoxEnclosed extends Object
BoundingBox
that is optionally enclosed by a larger containing BoundingBox
to given padding.
No checks currently occur that enclosing
fully contains box
.
Constructor and Description |
---|
BoundingBoxEnclosed(BoundingBox box)
Create with a box that has no padding.
|
BoundingBoxEnclosed(BoundingBox box,
BoundingBox enclosing) |
Modifier and Type | Method and Description |
---|---|
BoundingBox |
getBox()
The
BoundingBox in which the image should be placed. |
BoundingBox |
getEnclosing()
An enclosing box (equal to or larger than
box covering all screen-space used for this
entity, including padding. |
public BoundingBoxEnclosed(BoundingBox box)
i.e. this box is enclosed by itself.
box
- the box.public BoundingBoxEnclosed(BoundingBox box, BoundingBox enclosing)
public BoundingBox getBox()
BoundingBox
in which the image should be placed. This excludes padding.public BoundingBox getEnclosing()
box
covering all screen-space used for this
entity, including padding.
This should be identical to box
if there is no padding.
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.