\class DimsHW \brief Descriptor for two-dimensional spatial data.
| 67 | //! \brief Descriptor for two-dimensional spatial data. |
| 68 | //! |
| 69 | class DimsHW : public Dims2 |
| 70 | { |
| 71 | public: |
| 72 | //! |
| 73 | //! \brief Construct an empty DimsHW object. |
| 74 | //! |
| 75 | DimsHW() |
| 76 | : Dims2() |
| 77 | { |
| 78 | } |
| 79 | |
| 80 | //! |
| 81 | //! \brief Construct a DimsHW given height and width. |
| 82 | //! |
| 83 | //! \param height the height of the data |
| 84 | //! \param width the width of the data |
| 85 | //! |
| 86 | DimsHW(int32_t height, int32_t width) |
| 87 | : Dims2(height, width) |
| 88 | { |
| 89 | } |
| 90 | |
| 91 | //! |
| 92 | //! \brief Get the height. |
| 93 | //! |
| 94 | //! \return The height. |
| 95 | //! |
| 96 | int32_t& h() |
| 97 | { |
| 98 | return d[0]; |
| 99 | } |
| 100 | |
| 101 | //! |
| 102 | //! \brief Get the height. |
| 103 | //! |
| 104 | //! \return The height. |
| 105 | //! |
| 106 | int32_t h() const |
| 107 | { |
| 108 | return d[0]; |
| 109 | } |
| 110 | |
| 111 | //! |
| 112 | //! \brief Get the width. |
| 113 | //! |
| 114 | //! \return The width. |
| 115 | //! |
| 116 | int32_t& w() |
| 117 | { |
| 118 | return d[1]; |
| 119 | } |
| 120 | |
| 121 | //! |
| 122 | //! \brief Get the width. |
| 123 | //! |
| 124 | //! \return The width. |
| 125 | //! |
| 126 | int32_t w() const |