Isis Developer Reference
Robinson.h
Go to the documentation of this file.
1 #ifndef Robinson_h
2 #define Robinson_h
3 
8 /* SPDX-License-Identifier: CC0-1.0 */
9 #include "TProjection.h"
10 
11 #include <QList>
12 #include <QString>
13 
14 namespace Isis {
15  class Pvl;
16  class PvlGroup;
52  class Robinson : public TProjection {
53  public:
54  Robinson(Pvl &label, bool allowDefaults = false);
55  ~Robinson();
56  bool operator== (const Projection &proj);
57 
58  QString Name() const;
59  QString Version() const;
60 
61  bool SetGround(const double lat, const double lon);
62  bool SetCoordinate(const double x, const double y);
63  bool XYRange(double &minX, double &maxX, double &minY, double &maxY);
64 
65  PvlGroup Mapping();
68 
69  private:
70  QList<double> m_pr;
71  QList<double> m_xlr;
72 
73  double m_centerLongitude;
74  };
75 };
76 
77 #endif
78 
Isis::TProjection::m_maximumLatitude
double m_maximumLatitude
Contains the maximum latitude for the entire ground range.
Definition: TProjection.h:356
Isis::Robinson::operator==
bool operator==(const Projection &proj)
Compares two Projection objects to see if they are equal.
Definition: Robinson.cpp:124
Isis::TProjection::m_longitude
double m_longitude
This contains the currently set longitude value.
Definition: TProjection.h:318
Isis::PvlObject::findGroup
PvlGroupIterator findGroup(const QString &name, PvlGroupIterator beg, PvlGroupIterator end)
Find a group with the specified name, within these indexes.
Definition: PvlObject.h:129
Isis::IException::Io
@ Io
A type of error that occurred when performing an actual I/O operation.
Definition: IException.h:155
Isis::TProjection::m_minimumLongitude
double m_minimumLongitude
Contains the minimum longitude for the entire ground range.
Definition: TProjection.h:358
Isis::TProjection::m_latitude
double m_latitude
This contains the currently set latitude value.
Definition: TProjection.h:316
Isis::Robinson::Version
QString Version() const
Returns the version of the map projection.
Definition: Robinson.cpp:148
Isis::PvlKeyword
A single keyword-value pair.
Definition: PvlKeyword.h:82
EPSILON
const double EPSILON
This is free and unencumbered software released into the public domain.
Definition: Robinson.cpp:19
QList< double >
Isis::TProjection::m_longitudeDirection
LongitudeDirection m_longitudeDirection
An enumerated type indicating the LongitudeDirection read from the labels.
Definition: TProjection.h:324
Isis::TProjection::m_minimumLatitude
double m_minimumLatitude
Contains the minimum latitude for the entire ground range.
Definition: TProjection.h:354
Isis::TProjection::PositiveWest
@ PositiveWest
Longitude values increase in the westerly direction.
Definition: TProjection.h:225
Isis::DEG2RAD
const double DEG2RAD
Multiplier for converting from degrees to radians.
Definition: Constants.h:43
PvlGroup.h
Isis::Robinson::Robinson
Robinson(Pvl &label, bool allowDefaults=false)
Constructs a Robinson object.
Definition: Robinson.cpp:40
Isis::Projection::m_minimumY
double m_minimumY
See minimumX description.
Definition: Projection.h:327
Isis::Robinson::MappingLongitudes
PvlGroup MappingLongitudes()
This function returns the longitude keywords that this projection uses.
Definition: Robinson.cpp:374
Isis::PvlContainer::hasKeyword
bool hasKeyword(const QString &name) const
Check to see if a keyword exists.
Definition: PvlContainer.cpp:159
Isis::Pvl
Container for cube-like labels.
Definition: Pvl.h:119
Isis::Projection::SetXY
void SetXY(double x, double y)
This protected method is a helper for derived classes.
Definition: Projection.cpp:804
Isis::TProjection::XYRangeCheck
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:1062
Isis::Robinson::MappingLatitudes
PvlGroup MappingLatitudes()
This function returns the latitude keywords that this projection uses.
Definition: Robinson.cpp:363
Isis::toString
QString toString(bool boolToConvert)
Global function to convert a boolean to a string.
Definition: IString.cpp:211
Isis::Projection::m_mappingGrp
PvlGroup m_mappingGrp
Mapping group that created this projection.
Definition: Projection.h:329
RobinsonPlugin
Isis::Projection * RobinsonPlugin(Isis::Pvl &lab, bool allowDefaults)
This is the function that is called in order to instantiate a Robinson object.
Definition: Robinson.cpp:396
Isis::PvlObject::Traverse
@ Traverse
Search child objects.
Definition: PvlObject.h:158
Isis::Projection::m_minimumX
double m_minimumX
The data elements m_minimumX, m_minimumY, m_maximumX, and m_maximumY are convience data elements when...
Definition: Projection.h:317
Isis::Robinson::XYRange
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: Robinson.cpp:317
Isis::PvlGroup
Contains multiple PvlContainers.
Definition: PvlGroup.h:41
Pvl.h
_FILEINFO_
#define _FILEINFO_
Macro for the filename and line number.
Definition: IException.h:24
Isis::Projection::m_good
bool m_good
Indicates if the contents of m_x, m_y, m_latitude, and m_longitude are valid.
Definition: Projection.h:300
Isis::TProjection
Base class for Map TProjections.
Definition: TProjection.h:166
Isis::Robinson::SetGround
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: Robinson.cpp:164
Isis::IException
Isis exception class.
Definition: IException.h:91
TProjection.h
Isis::Robinson::Mapping
PvlGroup Mapping()
This function returns the keywords that this projection uses.
Definition: Robinson.cpp:350
Isis::TProjection::MappingLongitudes
virtual PvlGroup MappingLongitudes()
This function returns the longitude keywords that this projection uses.
Definition: TProjection.cpp:1739
Isis::Projection::SetComputedXY
void SetComputedXY(double x, double y)
This protected method is a helper for derived classes.
Definition: Projection.cpp:780
IException.h
std
Namespace for the standard library.
Isis::Robinson::Name
QString Name() const
Returns the name of the map projection, "Robinson".
Definition: Robinson.cpp:138
Isis::Robinson::~Robinson
~Robinson()
Destroys the Robinson object.
Definition: Robinson.cpp:113
Isis::Robinson::SetCoordinate
bool SetCoordinate(const double x, const double y)
This method is used to set the projection x/y.
Definition: Robinson.cpp:212
Isis::TProjection::m_maximumLongitude
double m_maximumLongitude
Contains the maximum longitude for the entire ground range.
Definition: TProjection.h:360
PvlKeyword.h
Isis::TProjection::MappingLatitudes
virtual PvlGroup MappingLatitudes()
This function returns the latitude keywords that this projection uses.
Definition: TProjection.cpp:1723
Projection.h
Isis::TProjection::Mapping
virtual PvlGroup Mapping()
This function returns the keywords that this projection uses.
Definition: TProjection.cpp:1698
Isis::TProjection::m_equatorialRadius
double m_equatorialRadius
Polar radius of the target.
Definition: TProjection.h:335
Constants.h
Isis::Projection::m_maximumY
double m_maximumY
See minimumX description.
Definition: Projection.h:328
Robinson.h
Isis::Projection
Base class for Map Projections.
Definition: Projection.h:155
Isis::Projection::m_maximumX
double m_maximumX
See minimumX description.
Definition: Projection.h:326
Isis::RAD2DEG
const double RAD2DEG
Multiplier for converting from radians to degrees.
Definition: Constants.h:44
Isis::Robinson
Robinson Map Projection.
Definition: Robinson.h:52
Isis
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16