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

Public Member Functions | |
| Point_2D () | |
| Constructs a point at position 0,0. | |
| Point_2D (const int &x, const int &y) | |
| Constructs a point at position x,y. | |
| Point_2D (const Point_2D &point) | |
| Constructs a point from another point. | |
| Point_2D & | operator= (const Point_2D &point) |
| Assign the position of another point to this point. | |
| int | x () const |
| Get the horizontal (x-axis) position. | |
| Point_2D & | x (const int &x_position) |
| Set the horizontal (x-axis) position. | |
| int | y () const |
| Get the vertical (y-axis) position. | |
| Point_2D & | y (const int &y_position) |
| Set the vertical (y-axis) position. | |
Public Attributes | |
| int | X |
| The horizontal (x-axis) position of the point. | |
| int | Y |
| The vertical (y-axis) position of the point. | |
A Point_2D holds 2-dimensional position information.
| Point_2D | ( | ) |
Constructs a point at position 0,0.
Referenced by operator=(), Point_2D(), Rectangle::position(), Rectangle::position(), Rectangle::Rectangle(), Rectangle::Rectangle(), Rectangle::Rectangle(), Rectangle::Rectangle(), x(), and y().
| Point_2D | ( | const int & | x, |
| const int & | y ) |
| Point_2D | ( | const Point_2D & | point | ) |
Constructs a point from another point.
| point | A Point_2D to be copied. |
References Point_2D(), X, and Y.
Assign the position of another point to this point.
| point | A Point_2D whose values are to be assigned to this point. |
References Point_2D(), X, and Y.
|
inline |
Get the horizontal (x-axis) position.
References X.
Referenced by Point_2D(), Rectangle::position(), and Rectangle::Rectangle().
|
inline |
Set the horizontal (x-axis) position.
| x_position | The horizontal (x-axis) position of the point. |
References Point_2D(), and X.
|
inline |
Get the vertical (y-axis) position.
References Y.
Referenced by Point_2D(), Rectangle::position(), and Rectangle::Rectangle().
|
inline |
Set the vertical (y-axis) position.
| y_position | The vertical (y-axis) position of the point. |
References Point_2D(), and Y.
| int X |
The horizontal (x-axis) position of the point.
Referenced by HiPrecision_PDS_Converter::adjust_image_map_projection(), HiRISE_PDS_Converter::adjust_image_map_projection(), JP2_Decoder::image_region(), Rectangle::operator&=(), operator=(), Rectangle::operator=(), Point_2D(), Point_2D(), Point_2D(), Rectangle::position(), Rectangle::position(), Rectangle::position(), Rectangle::Rectangle(), JP2_Decoder::set_resolution_and_region(), Generic_PDS_Converter::write_PDS_label(), x(), and x().
| int Y |
The vertical (y-axis) position of the point.
Referenced by HiPrecision_PDS_Converter::adjust_image_map_projection(), HiRISE_PDS_Converter::adjust_image_map_projection(), JP2_Decoder::image_region(), Rectangle::operator&=(), operator=(), Rectangle::operator=(), Point_2D(), Point_2D(), Point_2D(), Rectangle::position(), Rectangle::position(), Rectangle::position(), Rectangle::Rectangle(), JP2_Decoder::set_resolution_and_region(), Generic_PDS_Converter::write_PDS_label(), y(), and y().