public class RotatableBoundingBox extends MarkWithPosition
Axis-aligned bounding boxes are also supported by fixing orientation.
Constructor and Description |
---|
RotatableBoundingBox() |
Modifier and Type | Method and Description |
---|---|
BoundingBox |
box(Dimensions dimensions,
int regionID) |
BoundingBox |
boxAllRegions(Dimensions dimensions) |
Mark |
duplicate() |
String |
getName() |
byte |
isPointInside(Point3i point) |
int |
numberDimensions() |
int |
numberRegions() |
void |
scale(ScaleFactor scaleFactor)
Scales the mark in X and Y dimensions.
|
String |
toString()
String representation of the
Mark . |
void |
update(Point2d distanceToLeftBottom,
Point2d distanceToRightTop,
Orientation orientation) |
double |
volume(int regionID) |
centerPoint, equalsDeep, getPosition, setPosition, strPos
deriveObject, equalsID, getIdentifier, identifier, quickOverlap, setId
public byte isPointInside(Point3i point)
isPointInside
in class Mark
public void update(Point2d distanceToLeftBottom, Point2d distanceToRightTop, Orientation orientation)
public BoundingBox boxAllRegions(Dimensions dimensions)
boxAllRegions
in class Mark
public BoundingBox box(Dimensions dimensions, int regionID)
public int numberRegions()
numberRegions
in class Mark
public String toString()
Mark
Mark
.public int numberDimensions()
numberDimensions
in class Mark
public void scale(ScaleFactor scaleFactor) throws CheckedUnsupportedOperationException
Mark
scale
in class MarkWithPosition
scaleFactor
- how much to scale by.CheckedUnsupportedOperationException
- if the type of mark used in the annotation does
not supported scaling.Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.