File failed to load: https://isis.astrogeology.usgs.gov/6.0.0/Object/assets/jax/output/NativeMML/config.js
 |
Isis 3 Programmer Reference
|
14 #include "Constants.h"
15 #include "IException.h"
16 #include "TProjection.h"
19 #include "PvlKeyword.h"
44 Mollweide::Mollweide(
Pvl &label,
bool allowDefaults) :
52 if ((allowDefaults) && (!mapGroup.
hasKeyword(
"CenterLongitude"))) {
65 QString message =
"Invalid label group [Mapping]";
84 if (!TProjection::operator==(proj))
return false;
137 theta[0] = asin(2*phi/
PI);
142 while (dtheta > DBL_EPSILON) {
144 theta[1] = theta[0] - (2*theta[0]+sin(2*theta[0]) -(
Isis::PI)*sin(phi))/(2+2*cos(theta[0]));
145 dtheta = fabs(theta[1]-theta[0]);
149 if (niter > 15000000) {
182 double latRadians = lat *
PI / 180.0;
183 double lonRadians = lon *
PI / 180.0;
246 if (cosLat <= DBL_EPSILON) {
298 double &minY,
double &maxY) {
379 bool allowDefaults) {
double m_maximumLatitude
Contains the maximum latitude for the entire ground range.
const double HALFPI
The mathematical constant PI/2.
bool XYRange(double &minX, double &maxX, double &minY, double &maxY)
Find x/y range from lat/lon range.
double m_longitude
This contains the currently set longitude value.
PvlGroupIterator findGroup(const QString &name, PvlGroupIterator beg, PvlGroupIterator end)
Find a group with the specified name, within these indexes.
@ Io
A type of error that occurred when performing an actual I/O operation.
double m_minimumLongitude
Contains the minimum longitude for the entire ground range.
double m_latitude
This contains the currently set latitude value.
bool operator==(const Projection &proj)
Compares two Projection objects to see if they are equal.
bool SetCoordinate(const double x, const double y)
This method is used to set the projection x/y.
PvlGroup Mapping()
This function returns the keywords that this projection uses.
const double PI
The mathematical constant PI.
A single keyword-value pair.
LongitudeDirection m_longitudeDirection
An enumerated type indicating the LongitudeDirection read from the labels.
double m_minimumLatitude
Contains the minimum latitude for the entire ground range.
@ PositiveWest
Longitude values increase in the westerly direction.
double m_minimumY
See minimumX description.
double GetX() const
Calculates the unrotated form of current x value.
PvlGroup MappingLatitudes()
This function returns the latitude keywords that this projection uses.
bool hasKeyword(const QString &name) const
Check to see if a keyword exists.
Container for cube-like labels.
void SetXY(double x, double y)
This protected method is a helper for derived classes.
bool newton_rapheson(double gamma, double &result)
The Newton-Rapheson method is used to find an iterative solution for:
void XYRangeCheck(const double latitude, const double longitude)
This convience function is established to assist in the development of the XYRange virtual method.
QString toString(bool boolToConvert)
Global function to convert a boolean to a string.
PvlGroup m_mappingGrp
Mapping group that created this projection.
@ Traverse
Search child objects.
QString Version() const
Returns the version of the map projection.
double m_minimumX
The data elements m_minimumX, m_minimumY, m_maximumX, and m_maximumY are convience data elements when...
Contains multiple PvlContainers.
bool m_good
Indicates if the contents of m_x, m_y, m_latitude, and m_longitude are valid.
Base class for Map TProjections.
QString Name() const
Returns the name of the map projection, "Mollweide".
PvlGroup MappingLongitudes()
This function returns the longitude keywords that this projection uses.
virtual PvlGroup MappingLongitudes()
This function returns the longitude keywords that this projection uses.
bool SetGround(const double lat, const double lon)
Set lat/lon and attempt to calculate x/y values.
void SetComputedXY(double x, double y)
This protected method is a helper for derived classes.
Namespace for the standard library.
~Mollweide()
Destroys the Mollweide object.
double m_maximumLongitude
Contains the maximum longitude for the entire ground range.
virtual PvlGroup MappingLatitudes()
This function returns the latitude keywords that this projection uses.
virtual PvlGroup Mapping()
This function returns the keywords that this projection uses.
double m_equatorialRadius
Polar radius of the target.
double m_maximumY
See minimumX description.
Base class for Map Projections.
double m_maximumX
See minimumX description.
double m_centerLongitude
The center longitude for the map projection.
This is free and unencumbered software released into the public domain.
Mollweide Map Projection.