PDS_JP2
|
A Size_2D holds 2-dimensional size information. More...
#include <Dimensions.hh>
Public Member Functions | |
Size_2D () | |
Constructs an empty 2D size. More... | |
Size_2D (const unsigned int &width, const unsigned int &height) | |
Constructs a specific size. More... | |
Size_2D (const unsigned int &side) | |
Constructs a size of equal width and height. More... | |
Size_2D (const Size_2D &size) | |
Constructs a size from another size. More... | |
Size_2D & | operator= (const Size_2D &size) |
Assign the size of another size to this size. More... | |
unsigned int | width () const |
Get the width of the size. More... | |
Size_2D & | width (const unsigned int &width) |
Set the width of the size. More... | |
unsigned int | height () const |
Get the height of the size. More... | |
Size_2D & | height (const unsigned int &height) |
Set the height of the size. More... | |
unsigned long | area () const |
Get the area of this size. More... | |
Public Attributes | |
unsigned int | Width |
The width of the 2D size. More... | |
unsigned int | Height |
The height of the 2D size. More... | |
A Size_2D holds 2-dimensional size information.
Size_2D | ( | ) |
Size_2D | ( | const unsigned int & | width, |
const unsigned int & | height | ||
) |
Constructs a specific size.
width | The width of the size. |
height | The height of the size. |
Size_2D | ( | const unsigned int & | side | ) |
Constructs a size of equal width and height.
side | The length of each side. Both width and height will be set to this value. |
Constructs a size from another size.
size | A Size_2D to be copied. |
Assign the size of another size to this size.
size | A Size_2D to have its values assigned to this size. |
References Size_2D::Width.
|
inline |
Get the width of the size.
References Size_2D::Width.
Referenced by Rectangle::size(), and Size_2D::width().
|
inline |
Set the width of the size.
width | The width of the size. |
References Size_2D::Width, and Size_2D::width().
|
inline |
Get the height of the size.
References Size_2D::Height.
Referenced by Size_2D::height(), and Rectangle::size().
|
inline |
Set the height of the size.
height | The height of the size. |
References Size_2D::Height, and Size_2D::height().
|
inline |
Get the area of this size.
References Size_2D::Height, and Size_2D::Width.
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(), Size_2D::area(), JP2_Decoder::close(), JP2_Encoder::code_block_size(), JP2_Decoder::image_region(), JP2_Encoder::image_size(), JP2_Encoder::incremental_flush_lines(), JP2_Encoder::needs(), JP2_Decoder::open(), Size_2D::operator=(), JP2_Encoder::precinct_size(), JP2_Encoder::read_stripe(), JP2_Encoder::ready(), JP2_Encoder::reasons(), JP2_Decoder::rendered_width(), JP2_Decoder::set_resolution_and_region(), Rectangle::size(), Size_2D::width(), JP2_Encoder::write_codestream(), JP2_Encoder::write_header(), JP2_Decoder::write_image_data(), Generic_PDS_Converter::write_PDS_label(), and JP2_Decoder::write_stripe().
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(), Size_2D::area(), JP2_Decoder::close(), JP2_Encoder::code_block_size(), Size_2D::height(), JP2_Decoder::image_region(), JP2_Encoder::image_size(), JP2_Encoder::incremental_flush_lines(), JP2_Encoder::needs(), JP2_Decoder::open(), JP2_Encoder::precinct_size(), JP2_Encoder::read_stripe(), JP2_Encoder::ready(), JP2_Encoder::reasons(), JP2_Decoder::rendered_height(), JP2_Decoder::set_resolution_and_region(), Rectangle::size(), JP2_Encoder::write_header(), Generic_PDS_Converter::write_PDS_label(), and JP2_Decoder::write_stripe().