55 Planar::Planar(
Pvl &label,
bool allowDefaults) :
67 if ((allowDefaults) && (!mapGroup.
hasKeyword(
"CenterRingLongitude"))) {
74 if ((allowDefaults) && (!mapGroup.
hasKeyword(
"CenterRingRadius"))) {
88 string message =
"Invalid label group [Mapping]";
106 if (!RingPlaneProjection::operator==(proj))
return false;
192 double azRadians = ringLongitude *
DEG2RAD;
196 if (ringRadius < 0) {
221 double x = ringRadius * cos(deltaAz);
222 double y = ringRadius * sin(deltaAz);
396 double &minY,
double &maxY) {
507 bool allowDefaults) {
int m_ringLongitudeDomain
This integer is either 180 or 360 and is read from the labels.
bool hasKeyword(const QString &name) const
Check to see if a keyword exists.
double TrueScaleRingRadius() const
Returns the center radius, in meters.
bool XYRange(double &minX, double &maxX, double &minY, double &maxY)
This method is used to determine the x/y range which completely covers the area of interest specified...
PvlGroupIterator findGroup(const QString &name, PvlGroupIterator beg, PvlGroupIterator end)
Find a group with the specified name, within these indexes.
PvlGroup MappingRingRadii()
This function returns the radius keywords that this projection uses.
double m_maximumRingLongitude
Contains the maximum longitude for the entire ground range.
double CenterRingLongitude() const
Returns the center longitude, in degrees.
bool operator==(const Projection &proj)
Compares two Projection objects to see if they are equal.
Isis::Projection * PlanarPlugin(Isis::Pvl &lab, bool allowDefaults)
This is the function that is called in order to instantiate an Planar object.
double PixelResolution() const
Returns the pixel resolution value from the PVL mapping group in meters/pixel.
Namespace for the standard library.
QString Version() const
Returns the version of the map projection.
virtual PvlGroup MappingRingLongitudes()
This function returns the ring longitude keywords that this projection uses.
double m_minimumX
The data elements m_minimumX, m_minimumY, m_maximumX, and m_maximumY are convience data elements when...
QString toString(bool boolToConvert)
Global function to convert a boolean to a string.
A type of error that occurred when performing an actual I/O operation.
void SetComputedXY(double x, double y)
This protected method is a helper for derived classes.
virtual PvlGroup Mapping()
This method is used to find the XY range for oblique aspect projections (non-polar projections) by "w...
double CenterRingRadius() const
Returns the center radius, in meters.
double m_maximumY
See minimumX description.
Base class for Map Projections.
double m_minimumY
See minimumX description.
RingLongitudeDirection m_ringLongitudeDirection
An enumerated type indicating the LongitudeDirection read from the labels.
bool HasGroundRange() const
This indicates if the longitude direction type is positive west (as opposed to postive east)...
Contains multiple PvlContainers.
#define _FILEINFO_
Macro for the filename and line number.
A single keyword-value pair.
QString Name() const
Returns the name of the map projection, "Planar".
PvlGroup MappingRingLongitudes()
This function returns the azimuth keywords that this projection uses.
PvlGroup Mapping()
This function returns the keywords that this projection uses.
Container for cube-like labels.
double m_ringLongitude
This contain a ring longitude value.
const double DEG2RAD
Multiplier for converting from degrees to radians.
bool m_good
Indicates if the contents of m_x, m_y, m_latitude, and m_longitude are valid.
double m_ringRadius
This contain a ring radius value in m.
void XYRangeCheck(const double ringRadius, const double ringLongitude)
This convience function is established to assist in the development of the XYRange virtual method...
Ring longitude values increase in the clockwise direction.
Base class for Map Projections of plane shapes.
double m_maximumRingRadius
Contains the maximum ring radius for the entire ground range.
static double To360Domain(const double lon)
This method converts an ring longitude into the 0 to 360 domain.
Namespace for ISIS/Bullet specific routines.
~Planar()
Destroys the Planar object.
double m_centerRingLongitude
The center longitude for the map projection.
const double RAD2DEG
Multiplier for converting from radians to degrees.
bool SetGround(const double ringRadius, const double ringLongitude)
This method is used to set the radius/azimuth (assumed to be of the correct RingLongitudeDirection, a nd RingLongitudeDomain.
void SetXY(double x, double y)
This protected method is a helper for derived classes.
static double To180Domain(const double lon)
This method converts a ring longitude into the -180 to 180 domain.
double m_maximumX
See minimumX description.
bool SetCoordinate(const double x, const double y)
This method is used to set the projection x/y.
double m_minimumRingLongitude
Contains the minimum longitude for the entire ground range.
virtual PvlGroup MappingRingRadii()
This function returns the ring radius keywords that this projection uses.
double m_centerRingRadius
The center radius for the map projection.
PvlGroup m_mappingGrp
Mapping group that created this projection.
double m_minimumRingRadius
Contains the minimum ring radius for the entire ground range.