![]() |
Isis 3 Programmer Reference
|
Define a generic Y/X container. More...
#include <GruenTypes.h>
Public Member Functions | |
Coordinate (double y, double x) | |
Coordinate (const Chip &chip) | |
void | setLatLon (const double &latitude, const double &longitude) |
Use Latitude/Longitude interface. More... | |
void | setLineSamp (const double &line, const double &sample) |
Use the Line/Sample interface. More... | |
Coordinate & | operator+= (const Coordinate &other) |
Add a point to this point. More... | |
Coordinate & | operator-= (const Coordinate &other) |
Subtract a point from this point. More... | |
double | getDistance (const Coordinate &pntA=Coordinate(0.0, 0.0)) const |
Computes the distance from this point and the point provided. More... | |
bool | isValid () const |
Check for goodness. More... | |
double | getLatitude () const |
double | getLongitude () const |
double | getLine () const |
double | getSample () const |
Public Attributes | |
double | m_y |
double | m_x |
Define a generic Y/X container.
This generic container is designed to be used as a line/sample or a latitude/longitude container. It can be used to contain other cartesian coordinates if desired.
The default initialization sets the points the ISIS Null pixel value indicating it has not been initialized or can signal an invalid point if either one of the values is not initialized to something other than an ISIS special pixel.
Operators are defined to ease performing simple add/subtract operations.
Definition at line 69 of file GruenTypes.h.
|
inline |
Computes the distance from this point and the point provided.
Definition at line 116 of file GruenTypes.h.
Referenced by Isis::Gruen::CheckConstraints().
|
inline |
Check for goodness.
Definition at line 123 of file GruenTypes.h.
References Isis::IsSpecial().
Referenced by Isis::SmtkMatcher::Create(), Isis::SmtkMatcher::getLatLon(), Isis::SmtkMatcher::getLineSample(), Isis::SmtkMatcher::inCube(), Isis::SmtkMatcher::isValid(), Isis::PointPair::isValid(), Isis::operator+(), operator+=(), Isis::operator-(), operator-=(), and Isis::SmtkMatcher::Register().
|
inline |
Add a point to this point.
Definition at line 92 of file GruenTypes.h.
References isValid(), and Isis::Null.
|
inline |
Subtract a point from this point.
Definition at line 104 of file GruenTypes.h.
References isValid(), and Isis::Null.
|
inline |
Use Latitude/Longitude interface.
Definition at line 78 of file GruenTypes.h.
Referenced by Isis::SmtkMatcher::getLatLon().
|
inline |
Use the Line/Sample interface.
Definition at line 85 of file GruenTypes.h.
Referenced by Isis::SmtkMatcher::getLineSample().
U.S. Department of the Interior | U.S. Geological Survey ISIS | Privacy & Disclaimers | Astrogeology Research Program To contact us, please post comments and questions on the USGS Astrogeology Discussion Board To report a bug, or suggest a feature go to: ISIS Github File Modified: 07/12/2023 23:44:25 |