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);
60 Point GetHalf()
const;
63 unsigned int GetWidth()
const;
65 unsigned int GetHeight()
const;
67 unsigned int GetDepth()
const;
69 unsigned int GetSlab()
const;
71 unsigned int GetVol()
const;
73 unsigned int GetVolume()
const;
76 unsigned int GetDim()
const;
80 unsigned int operator[](
unsigned int index)
const;
81 unsigned int& operator[](
unsigned int index);
89 unsigned int w_,h_,d_;
91 bool equal(
const Size& s)
const;
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 bool operator!=(const ImageHandle &lhs, const ConstImageHandle &rhs)
class encapsulating 1D to 3D size
DLLEXPORT_OST_IMG_BASE bool operator==(const ImageHandle &lhs, const ConstImageHandle &rhs)
class encapsulating 1D to 3D point
#define DLLEXPORT_OST_IMG_BASE
DLLEXPORT_OST_IMG_BASE ImageHandle operator-(const ConstImageHandle &h, Real v)