@ForUseOnly public interface FocusAreaBuilder
Modifier and Type | Method and Description |
---|---|
FocusAreaBuilder |
bounds(Rectangle bounds)
Configures the bounds of the focus area preset based on absolute pixel coordinates inside the image,
where
0x0 represents the top-left corner. |
FocusArea |
create()
Creates the
FocusArea using the configured settings. |
FocusAreaBuilder |
orientationFromDegree(double degree)
Configures the orientation as degree, where right is
0° and top 90° |
FocusAreaBuilder |
orientationFromEulerAngles(double pitch,
double roll,
double yaw)
Configures the orientation of the subject as determined by its Euler angles pitch, roll and yaw.
|
FocusAreaBuilder |
orientationFromPoint(Point point)
Configures the orientation as directional 2D ratio vector, based on the given point of interest inside the image.
|
FocusAreaBuilder |
orientationFromRatio(Point2D.Double ratio)
Configures the orientation represented as an optional 2D vector, which is to be considered as the viewing angle
and field of view for calculating the total size of a resolution.
|
FocusAreaBuilder |
title(String title)
Configures the title describing the focus area.
|
@Contract(value="_ -> this") @NotNull FocusAreaBuilder title(@Nullable String title)
title
- The title text.@Contract(value="_ -> this") @NotNull FocusAreaBuilder bounds(@Nullable Rectangle bounds)
0x0
represents the top-left corner.bounds
- The bounds as pixel.@Contract(value="_ -> this") @NotNull FocusAreaBuilder orientationFromEulerAngles(double pitch, double roll, double yaw)
-180
and 180
.
Each axis is described as follows, where left and right are taken from the observer's perspective:
pitch
- Subject rotation on the pitch axis.roll
- Subject rotation on the roll axis.yaw
- Subject rotation on the yaw axis.@Contract(value="_ -> this") @NotNull FocusAreaBuilder orientationFromDegree(double degree)
0°
and top 90°
degree
- The orientation as rotation in degree.@Contract(value="_ -> this") @NotNull FocusAreaBuilder orientationFromRatio(@Nullable Point2D.Double ratio)
x
points to the left
(negative) and right (positive) and y
points up (negative) and down (positive).
The configured 2D vector and its magnitude may be used later to expand a the specified focus area bounds,
while its magnitude is interpreted in relation to the radius of a unit circle fitting inside the focus area.ratio
- The 2D ratio vector.@Contract(value="_ -> this") @NotNull FocusAreaBuilder orientationFromPoint(@Nullable Point point)
point
- The point of interest inside the image.Copyright © 2021 e-Spirit AG. All Rights Reserved. Build 5.2.210210