|
|
PDS_JP2
|
A Size_2D holds 2-dimensional size information. More...
#include <Dimensions.hh>

Public Member Functions | |
| Size_2D () | |
| Constructs an empty 2D size. | |
| Size_2D (const unsigned int &width, const unsigned int &height) | |
| Constructs a specific size. | |
| Size_2D (const unsigned int &side) | |
| Constructs a size of equal width and height. | |
| Size_2D (const Size_2D &size) | |
| Constructs a size from another size. | |
| Size_2D & | operator= (const Size_2D &size) |
| Assign the size of another size to this size. | |
| unsigned int | width () const |
| Get the width of the size. | |
| Size_2D & | width (const unsigned int &width) |
| Set the width of the size. | |
| unsigned int | height () const |
| Get the height of the size. | |
| Size_2D & | height (const unsigned int &height) |
| Set the height of the size. | |
| unsigned long | area () const |
| Get the area of this size. | |
Public Attributes | |
| unsigned int | Width |
| The width of the 2D size. | |
| unsigned int | Height |
| The height of the 2D size. | |
A Size_2D holds 2-dimensional size information.
| Size_2D | ( | ) |
Constructs an empty 2D size.
Both width and height are zero.
Referenced by height(), operator=(), Rectangle::Rectangle(), Rectangle::Rectangle(), Rectangle::Rectangle(), Rectangle::Rectangle(), Rectangle::size(), Rectangle::size(), Size_2D(), and width().
| Size_2D | ( | const unsigned int & | width, |
| const unsigned int & | height ) |
| Size_2D | ( | const unsigned int & | side | ) |
|
inline |
Get the width of the size.
References Width.
Referenced by Rectangle::Rectangle(), Rectangle::size(), Size_2D(), Size_2D(), and width().
|
inline |
|
inline |
Get the height of the size.
References Height.
Referenced by height(), Rectangle::Rectangle(), Rectangle::size(), and Size_2D().
|
inline |
|
inline |
Get the area of this size.
Referenced by JP2_Decoder::set_resolution_and_region().
| unsigned int Width |
The width of the 2D size.
Referenced by HiPrecision_PDS_Converter::adjust_image_map_projection(), HiRISE_PDS_Converter::adjust_image_map_projection(), area(), JP2_Encoder::code_block_size(), JP2_Decoder::image_region(), JP2_Encoder::image_size(), Rectangle::operator&=(), Rectangle::operator=(), operator=(), JP2_Encoder::precinct_size(), Rectangle::Rectangle(), JP2_Decoder::set_resolution_and_region(), Rectangle::size(), Rectangle::size(), Rectangle::size(), Size_2D(), Size_2D(), Size_2D(), Size_2D(), width(), width(), and Generic_PDS_Converter::write_PDS_label().
| unsigned int Height |
The height of the 2D size.
Referenced by HiPrecision_PDS_Converter::adjust_image_map_projection(), HiRISE_PDS_Converter::adjust_image_map_projection(), area(), JP2_Encoder::code_block_size(), height(), height(), JP2_Decoder::image_region(), JP2_Encoder::image_size(), Rectangle::operator&=(), Rectangle::operator=(), operator=(), JP2_Encoder::precinct_size(), Rectangle::Rectangle(), JP2_Decoder::set_resolution_and_region(), Rectangle::size(), Rectangle::size(), Rectangle::size(), Size_2D(), Size_2D(), Size_2D(), Size_2D(), and Generic_PDS_Converter::write_PDS_label().