34namespace ost {
namespace img {
45 explicit Size(
unsigned int w);
48 explicit Size(
unsigned int w,
unsigned int h);
51 explicit Size(
unsigned int w,
unsigned int h,
unsigned int d);
89 unsigned int w_,h_,d_;
91 bool equal(
const Size& s)
const;
class encapsulating 1D to 3D point
class encapsulating 1D to 3D size
unsigned int GetHeight() const
get height component (convenience to index 1)
Size(unsigned int w)
1D constructor
unsigned int GetDepth() const
get depth component (convenience to index 2)
Size(unsigned int w, unsigned int h, unsigned int d)
3D constructor
Point GetHalf() const
return the point at half the size
unsigned int GetDim() const
return dimensionality (1-3)
unsigned int GetWidth() const
get width component (convenience to index 0)
Size(unsigned int w, unsigned int h)
2D constructor
unsigned int & operator[](unsigned int index)
bool operator!=(const Size &s) const
Size & operator+=(const Size &s)
unsigned int GetVol() const
get volume (depcrecated, use GetVolume() instead)
Size & operator=(const Size &s)
unsigned int GetVolume() const
get volume
bool operator==(const Size &s) const
unsigned int GetSlab() const
get area (width * height)
Size(const Point &p1, const Point &p2)
initialize from two points
unsigned int operator[](unsigned int index) const
Size & operator-=(const Size &s)
#define DLLEXPORT_OST_IMG_BASE
DLLEXPORT_OST_IMG_BASE std::ostream & operator<<(std::ostream &os, const img::Extent &b)
DLLEXPORT_OST_IMG_BASE ImageHandle operator-(const ConstImageHandle &h, Real v)
DLLEXPORT_OST_IMG_BASE ImageHandle operator+(const ConstImageHandle &h, Real v)