34 namespace 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 & operator-=(const Size &s)
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)
unsigned int & operator[](unsigned int index)
Size(unsigned int w, unsigned int h)
2D constructor
bool operator!=(const Size &s) const
unsigned int GetVol() const
get volume (depcrecated, use GetVolume() instead)
unsigned int GetVolume() const
get volume
Size & operator+=(const Size &s)
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
Size & operator=(const Size &s)
unsigned int operator[](unsigned int index) const
#define DLLEXPORT_OST_IMG_BASE
DLLEXPORT_OST_IMG_BASE ImageHandle operator-(const ConstImageHandle &h, Real v)
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)