bioformats
5.1.2
|
A rectangular region. More...
#include <ome/bioformats/PlaneRegion.h>
Public Member Functions | |
PlaneRegion () | |
Default construct. More... | |
bool | valid () const |
Is the region valid? More... | |
PlaneRegion (dimension_size_type x, dimension_size_type y, dimension_size_type w, dimension_size_type h) | |
Construct from coordinates, width and height. More... | |
dimension_size_type | area () const |
Get area. More... | |
Public Attributes | |
dimension_size_type | x |
The X coordinate of the upper-left corner of the region. | |
dimension_size_type | y |
The Y coordinate of the upper-left corner of the region. | |
dimension_size_type | w |
The width of the region. | |
dimension_size_type | h |
The height of the region. | |
A rectangular region.
The region is specified by top-left (x,y) coordinates plus width and height.
|
inline |
Default construct.
By default the region has zero width and height.
|
inline |
Construct from coordinates, width and height.
x | the X coordinate of the upper-left corner of the region. |
y | the Y coordinate of the upper-left corner of the region. |
w | the width of the region. |
h | the height of the region. |
|
inline |
Get area.
References h.
Referenced by ome::bioformats::TileCoverage::coverage().
|
inline |
Is the region valid?
true
if the region has a nonzero width and height, false
otherwise. References h.
Referenced by ome::bioformats::TileCoverage::coverage(), and ome::bioformats::TileCoverage::insert().