45 namespace ost {
namespace img {
145 bool equal(
const Extent& b)
const;
Defines lower and upper valid indices.
bool Contains(const Extent &e) const
Returns true if the given exten is within extent.
Extent(const Size &s)
initialize with Size
Extent()
default constructor
void SetStart(const Point &o)
Set start point, changing size.
Extent(const Point &start, const Size &size)
initialize with Size and start point
Point GetCenter() const
return center
Extent(const Extent &r)
copy constructor
const Point & GetEnd() const
Return upper/right/back corner.
const Point & GetStart() const
Return lower/left/front corner.
bool operator!=(const Extent &b) const
int GetDim() const
Return dimension.
void SetEnd(const Point &e)
Set end point, changing size.
Extent(const Point &p1, const Point &p2)
initialize with start and end point
Extent(const Size &size, const Point ¢er)
initialize with center point and size
void Shift(const Point &p)
unsigned int Point2Offset(const Point &p)
Generates a continues, uniqe index per point contained within extent.
bool operator==(const Extent &b) const
Size GetSize() const
Return size of extent.
Point WrapAround(const Point &p)
Wrap point around.
bool Contains(const Point &p) const
Returns true if the given point is within extent.
Extent Mirror(int planes)
Return new extent mirrored according to planes.
class encapsulating 1D to 3D point
class encapsulating 1D to 3D size
#define DLLEXPORT_OST_IMG_BASE
DLLEXPORT_OST_IMG_BASE Extent Overlap(const Extent &e1, const Extent &e2)
DLLEXPORT_OST_IMG_BASE bool HasOverlap(const Extent &e1, const Extent &e2)
DLLEXPORT_OST_IMG_BASE std::ostream & operator<<(std::ostream &os, const img::Extent &b)
InvalidExtentException(const String &m=String(""))