Interface RectangleWrapper<R,P>
-
- Type Parameters:
R
- Target type representing the rectangle which should be wrapped.P
- Target type representing of the rectangles point
- All Known Subinterfaces:
RotatedRectangleWrapper<R,P>
- All Known Implementing Classes:
AbstractRectangleWrapper
,OpenCVRectangleWrapper
,OpenCVRotatedRectangleWrapper
public interface RectangleWrapper<R,P>
Interface which wraps a rectangle.
- Since:
- 1.0
- Author:
- Christoph Praschl
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Point2Wrapper<P>
getBottomRightPoint()
Point2Wrapper<P>
getCenterPoint()
double
getHeight()
R
getRectangle()
Point2Wrapper<P>
getTopLeftPoint()
double
getWidth()
void
setRectangle(R rectangle)
-
-
-
Method Detail
-
getRectangle
R getRectangle()
- Returns:
- Wrapped Rectangle
-
setRectangle
void setRectangle(R rectangle)
- Parameters:
rectangle
- The Rectangle to wrap
-
getTopLeftPoint
Point2Wrapper<P> getTopLeftPoint()
- Returns:
- The top left corner point of the rectangle
-
getBottomRightPoint
Point2Wrapper<P> getBottomRightPoint()
- Returns:
- The bottom right corner point of the rectangle
-
getCenterPoint
Point2Wrapper<P> getCenterPoint()
- Returns:
- The center corner point of the rectangle
-
getWidth
double getWidth()
- Returns:
- The width of the rectangle
-
getHeight
double getHeight()
- Returns:
- The height of the rectangle
-
-