185 virtual QString
Name()
const = 0;
246 virtual bool SetGround(
const double lat,
const double lon);
263 double Scale()
const;
266 virtual bool XYRange(
double &minX,
double &maxX,
267 double &minY,
double &maxY);
276 double eRadius,
double pRadius);
278 double eRadius,
double pRadius);
288 void XYRangeCheck(
const double latitude,
const double longitude);
293 double &minY,
double &maxY);
296 double qCompute(
const double sinPhi)
const;
298 double mCompute(
const double sinphi,
const double cosphi)
const;
299 double tCompute(
const double phi,
const double sinphi)
const;
303 void doSearch(
double minBorder,
double maxBorder,
304 double &extremeVal,
const double constBorder,
305 bool searchX,
bool searchLongitude,
bool findMin);
306 void findExtreme(
double &minBorder,
double &maxBorder,
307 double &minBorderX,
double &minBorderY,
308 double &maxBorderX,
double &maxBorderY,
309 const double constBorder,
bool searchX,
310 bool searchLongitude,
bool findMin);
311 void setSearchGround(
const double variableBorder,
312 const double constBorder,
bool variableIsLat);
364 std::vector<double> m_specialLatCases;
366 std::vector<double> m_specialLonCases;
Displacement is a signed length, usually in meters.
Definition Displacement.h:31
Projection(Pvl &label)
Constructs an empty Projection object.
Definition Projection.cpp:85
double m_longitude
This contains the currently set longitude value.
Definition TProjection.h:317
virtual bool SetGround(const double lat, const double lon)
This method is used to set the latitude/longitude (assumed to be of the correct LatitudeType,...
Definition TProjection.cpp:752
bool xyRangeOblique(double &minX, double &maxX, double &minY, double &maxY)
This method is used to find the XY range for oblique aspect projections (non-polar projections) by "w...
Definition TProjection.cpp:1187
bool SetUnboundUniversalGround(const double coord1, const double coord2)
This method is used to set the latitude/longitude.
Definition TProjection.cpp:871
bool IsPlanetocentric() const
This indicates if the latitude type is planetocentric (as opposed to planetographic).
Definition TProjection.cpp:384
double m_minimumLatitude
Contains the minimum latitude for the entire ground range.
Definition TProjection.h:353
virtual 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...
Definition TProjection.cpp:985
double m_polarRadius
Polar radius of the target.
Definition TProjection.h:341
double m_maximumLongitude
Contains the maximum longitude for the entire ground range.
Definition TProjection.h:359
static double To180Domain(const double lon)
This method converts a longitude into the -180 to 180 domain.
Definition TProjection.cpp:649
double m_equatorialRadius
Polar radius of the target.
Definition TProjection.h:334
LongitudeDirection m_longitudeDirection
An enumerated type indicating the LongitudeDirection read from the labels.
Definition TProjection.h:323
virtual PvlGroup MappingLongitudes()
This function returns the longitude keywords that this projection uses.
Definition TProjection.cpp:1731
virtual double MaximumLatitude() const
This returns the maximum latitude of the area of interest.
Definition TProjection.cpp:713
virtual ~TProjection()
Destroys the TProjection object.
Definition TProjection.cpp:239
double LocalRadius() const
This method returns the local radius in meters at the current latitude position.
Definition TProjection.cpp:345
virtual bool SetCoordinate(const double x, const double y)
This method is used to set the projection x/y.
Definition TProjection.cpp:781
int m_longitudeDomain
This integer is either 180 or 360 and is read from the labels.
Definition TProjection.h:330
double mCompute(const double sinphi, const double cosphi) const
A convience method to compute Snyder's m equation (14-15) for a given latitude, .
Definition TProjection.cpp:1839
double ToPlanetocentric(const double lat) const
This method converts a planetographic latitude to a planetocentric latitude.
Definition TProjection.cpp:410
bool Has180Domain() const
This indicates if the longitude domain is -180 to 180 (as opposed to 0 to 360).
Definition TProjection.cpp:624
virtual bool SetUniversalGround(const double lat, const double lon)
This method is used to set the latitude/longitude which must be Planetocentric (latitude) and Positiv...
Definition TProjection.cpp:831
virtual QString Name() const =0
This method returns the name of the map projection.
virtual double MinimumLongitude() const
This returns the minimum longitude of the area of interest.
Definition TProjection.cpp:724
virtual double UniversalLongitude()
This returns a universal longitude (positive east in 0 to 360 domain).
Definition TProjection.cpp:914
double PolarRadius() const
This returns the polar radius of the target.
Definition TProjection.cpp:279
bool inLongitudeRange(double longitude)
Determine whether the given longitude is within the range of the MinimumLongitude and MaximumLongitud...
Definition TProjection.cpp:1132
void XYRangeCheck(const double latitude, const double longitude)
This convience function is established to assist in the development of the XYRange virtual method.
Definition TProjection.cpp:1054
double Eccentricity() const
This returns the eccentricity of the target,.
Definition TProjection.cpp:296
bool IsPositiveWest() const
This indicates if the longitude direction type is positive east (as opposed to postive west).
Definition TProjection.cpp:523
QString LongitudeDirectionString() const
This method returns the longitude direction as a string.
Definition TProjection.cpp:612
bool inLatitudeRange(double latitude)
Determine whether the given latitude is within the range of the MinimumLatitude and MaximumLatitude r...
Definition TProjection.cpp:1152
virtual PvlGroup MappingLatitudes()
This function returns the latitude keywords that this projection uses.
Definition TProjection.cpp:1715
double m_eccentricity
The eccentricity of the target body.
Definition TProjection.h:351
double qCompute(const double sinPhi) const
A convience method to compute Snyder's q equation (3-12) for a given latitude, .
Definition TProjection.cpp:1762
virtual bool operator==(const Projection &proj)
This method determines whether two map projection objects are equal by comparing the equatorial radiu...
Definition TProjection.cpp:252
double phi2Compute(const double t) const
A convience method to compute latitude angle phi2 given small t, from Syder's recursive equation (7-9...
Definition TProjection.cpp:1795
double m_minimumLongitude
Contains the minimum longitude for the entire ground range.
Definition TProjection.h:357
virtual QString Version() const =0
This method returns the Version of the map projection.
double e4Compute() const
A convience method to compute.
Definition TProjection.cpp:1883
double tCompute(const double phi, const double sinphi) const
A convience method to compute Snyder's t equation (15-9) for a given latitude, .
Definition TProjection.cpp:1862
LongitudeDirection
This enum defines the types of Longitude directions supported in this class.
Definition TProjection.h:222
@ PositiveWest
Longitude values increase in the westerly direction.
Definition TProjection.h:224
@ PositiveEast
Longitude values increase in the easterly direction.
Definition TProjection.h:222
double m_maximumLatitude
Contains the maximum latitude for the entire ground range.
Definition TProjection.h:355
virtual double Latitude() const
This returns a latitude with correct latitude type as specified in the label object.
Definition TProjection.cpp:803
static double ToPositiveWest(const double lon, const int domain)
This method converts a longitude into the positive west direction.
Definition TProjection.cpp:579
static double To360Domain(const double lon)
This method converts a longitude into the 0 to 360 domain.
Definition TProjection.cpp:667
TProjection(Pvl &label)
Constructs an empty TProjection object.
Definition TProjection.cpp:82
QString LongitudeDomainString() const
This method returns the longitude domain as a string.
Definition TProjection.cpp:690
bool IsPlanetographic() const
This indicates if the latitude type is planetographic (as opposed to planetocentric).
Definition TProjection.cpp:395
virtual bool IsEquatorialCylindrical()
This method returns true if the projection is equatorial cylindrical.
Definition TProjection.cpp:373
QString LatitudeTypeString() const
This method returns the latitude type as a string.
Definition TProjection.cpp:500
bool Has360Domain() const
This indicates if the longitude domain is 0 to 360 (as opposed to -180 to 180).
Definition TProjection.cpp:635
LatitudeType
This enum defines the types of Latitude supported in this class.
Definition TProjection.h:202
@ Planetocentric
Latitudes are measured as the angle from the equatorial plane to the plane through the center of the ...
Definition TProjection.h:203
@ Planetographic
Latitudes are measured as the angle from the equatorial plane to the normal to the surface of the pla...
Definition TProjection.h:206
virtual double MinimumLatitude() const
This returns the minimum latitude of the area of interest.
Definition TProjection.cpp:702
LatitudeType m_latitudeType
An enumerated type indicating the LatitudeType read from the labels.
Definition TProjection.h:320
virtual double MaximumLongitude() const
This returns the maximum longitude of the area of interest.
Definition TProjection.cpp:735
virtual PvlGroup Mapping()
This function returns the keywords that this projection uses.
Definition TProjection.cpp:1690
static double ToPositiveEast(const double lon, const int domain)
This method converts a longitude into the positive east direction.
Definition TProjection.cpp:540
virtual double UniversalLatitude()
This returns a universal latitude (planetocentric).
Definition TProjection.cpp:900
double EquatorialRadius() const
This returns the equatorial radius of the target.
Definition TProjection.cpp:269
bool IsPositiveEast() const
This indicates if the longitude direction type is positive west (as opposed to postive east).
Definition TProjection.cpp:512
double Scale() const
This method returns the scale for mapping world coordinates into projection coordinates.
Definition TProjection.cpp:932
virtual double Longitude() const
This returns a longitude with correct longitude direction and domain as specified in the label object...
Definition TProjection.cpp:815
double ToPlanetographic(const double lat) const
This method converts a planetocentric latitude to a planetographic latitude.
Definition TProjection.cpp:455
double m_latitude
This contains the currently set latitude value.
Definition TProjection.h:315
virtual double TrueScaleLatitude() const
This method returns the latitude of true scale.
Definition TProjection.cpp:360
Create a mapping between a projection and other coordinate system.
Definition WorldMapper.h:38
This is free and unencumbered software released into the public domain.
Definition Apollo.h:16