Isis Developer Reference
ObliqueCylindrical.h
Go to the documentation of this file.
1 #ifndef ObliqueCylindrical_h
2 #define ObliqueCylindrical_h
3 
8 /* SPDX-License-Identifier: CC0-1.0 */
9 #include "TProjection.h"
10 
11 namespace Isis {
12  class Pvl;
13  class PvlGroup;
67  public:
68  ObliqueCylindrical(Isis::Pvl &label, bool allowDefaults = false);
70  bool operator==(const Isis::Projection &proj);
71 
72  QString Name() const;
73  QString Version() const;
74 
75  bool SetGround(const double lat, const double lon);
76  bool SetCoordinate(const double x, const double y);
77  bool XYRange(double &minX, double &maxX, double &minY, double &maxY);
78 
79  PvlGroup Mapping();
82 
83  double poleLatitude() const;
84  double poleLongitude() const;
85  double poleRotation() const;
86 
87  private:
88  void init();
89 
90  // These are the oblique projection pole values in degrees.
91  double m_poleLatitude;
92  double m_poleLongitude;
93  double m_poleRotation;
94 
95  // These vectors are not used by the projection
96  std::vector<double> m_xAxisVector;
98  std::vector<double> m_yAxisVector;
100  std::vector<double> m_zAxisVector;
102  };
103 };
104 
105 #endif
106 
Isis::HALFPI
const double HALFPI
The mathematical constant PI/2.
Definition: Constants.h:41
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_latitude
double m_latitude
This contains the currently set latitude value.
Definition: TProjection.h:316
Isis::ObliqueCylindrical::MappingLatitudes
PvlGroup MappingLatitudes()
This function returns the latitude keywords that this projection uses.
Definition: ObliqueCylindrical.cpp:371
Isis::ObliqueCylindrical::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: ObliqueCylindrical.cpp:345
Isis::PI
const double PI
The mathematical constant PI.
Definition: Constants.h:40
Isis::PvlKeyword
A single keyword-value pair.
Definition: PvlKeyword.h:82
Isis::ObliqueCylindrical::operator==
bool operator==(const Isis::Projection &proj)
Compares two Projection objects to see if they are equal.
Definition: ObliqueCylindrical.cpp:164
Isis::TProjection::m_longitudeDirection
LongitudeDirection m_longitudeDirection
An enumerated type indicating the LongitudeDirection read from the labels.
Definition: TProjection.h:324
Isis::TProjection::PositiveWest
@ PositiveWest
Longitude values increase in the westerly direction.
Definition: TProjection.h:225
Isis::IException::Unknown
@ Unknown
A type of error that cannot be classified as any of the other error types.
Definition: IException.h:118
PvlGroup.h
Isis::Projection::GetX
double GetX() const
Calculates the unrotated form of current x value.
Definition: Projection.cpp:818
Isis::TProjection::xyRangeOblique
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:1195
NaifStatus.h
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::ObliqueCylindrical::poleLatitude
double poleLatitude() const
Returns the value of the pole latitude.
Definition: ObliqueCylindrical.cpp:394
Isis::NaifStatus::CheckErrors
static void CheckErrors(bool resetNaif=true)
This method looks for any naif errors that might have occurred.
Definition: NaifStatus.cpp:28
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
Isis::Projection::GetY
double GetY() const
Calculates the unrotated form of the current y value.
Definition: Projection.cpp:829
Isis::ObliqueCylindrical::poleRotation
double poleRotation() const
Returns the value of the pole rotation.
Definition: ObliqueCylindrical.cpp:414
Isis::PvlObject::Traverse
@ Traverse
Search child objects.
Definition: PvlObject.h:158
Isis::ObliqueCylindrical::SetCoordinate
bool SetCoordinate(const double x, const double y)
This method is used to set the projection x/y.
Definition: ObliqueCylindrical.cpp:267
Isis::ObliqueCylindrical::Mapping
PvlGroup Mapping()
This function returns the keywords that this projection uses.
Definition: ObliqueCylindrical.cpp:356
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::ObliqueCylindrical::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: ObliqueCylindrical.cpp:207
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
ObliqueCylindricalPlugin
Isis::Projection * ObliqueCylindricalPlugin(Isis::Pvl &lab, bool allowDefaults)
This is the function that is called in order to instantiate an ObliqueCylindrical object.
Definition: ObliqueCylindrical.cpp:449
Isis::TProjection
Base class for Map TProjections.
Definition: TProjection.h:166
Isis::ObliqueCylindrical::ObliqueCylindrical
ObliqueCylindrical(Isis::Pvl &label, bool allowDefaults=false)
Constructs an ObliqueCylindrical object.
Definition: ObliqueCylindrical.cpp:37
Isis::ObliqueCylindrical::MappingLongitudes
PvlGroup MappingLongitudes()
This function returns the longitude keywords that this projection uses.
Definition: ObliqueCylindrical.cpp:382
Isis::IException
Isis exception class.
Definition: IException.h:91
Isis::ObliqueCylindrical::poleLongitude
double poleLongitude() const
Returns the value of the pole longitude.
Definition: ObliqueCylindrical.cpp:404
TProjection.h
Isis::TProjection::MappingLongitudes
virtual PvlGroup MappingLongitudes()
This function returns the longitude keywords that this projection uses.
Definition: TProjection.cpp:1739
Isis::ObliqueCylindrical::Name
QString Name() const
Returns the name of the map projection, "ObliqueCylindrical".
Definition: ObliqueCylindrical.cpp:181
Isis::PvlContainer::deleteKeyword
void deleteKeyword(const QString &name)
Remove a specified keyword.
Definition: PvlContainer.cpp:97
Isis::Projection::SetComputedXY
void SetComputedXY(double x, double y)
This protected method is a helper for derived classes.
Definition: Projection.cpp:780
IException.h
Isis::toDouble
double toDouble(const QString &string)
Global function to convert from a string to a double.
Definition: IString.cpp:149
std
Namespace for the standard library.
PvlKeyword.h
Isis::TProjection::MappingLatitudes
virtual PvlGroup MappingLatitudes()
This function returns the latitude keywords that this projection uses.
Definition: TProjection.cpp:1723
Isis::TProjection::ToPlanetographic
double ToPlanetographic(const double lat) const
This method converts a planetocentric latitude to a planetographic latitude.
Definition: TProjection.cpp:463
Isis::ObliqueCylindrical::Version
QString Version() const
Returns the version of the map projection.
Definition: ObliqueCylindrical.cpp:191
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
ObliqueCylindrical.h
Constants.h
Isis::TProjection::IsPlanetocentric
bool IsPlanetocentric() const
This indicates if the latitude type is planetocentric (as opposed to planetographic).
Definition: TProjection.cpp:392
Isis::Projection
Base class for Map Projections.
Definition: Projection.h:155
Isis
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16
Isis::ObliqueCylindrical
Oblique Cylindrical Map Projection.
Definition: ObliqueCylindrical.h:66
Isis::ObliqueCylindrical::~ObliqueCylindrical
~ObliqueCylindrical()
Destroys the ObliqueCylindrical object.
Definition: ObliqueCylindrical.cpp:153