Loading [MathJax]/jax/output/NativeMML/config.js
Isis Developer Reference
Planar.h
Go to the documentation of this file.
1 #ifndef Planar_h
2 #define Planar_h
3 
8 /* SPDX-License-Identifier: CC0-1.0 */
9 #include "RingPlaneProjection.h"
10 
11 namespace Isis {
12  class Pvl;
13  class PvlGroup;
40  class Planar : public RingPlaneProjection {
41  public:
42  Planar(Pvl &label, bool allowDefaults = false);
43  ~Planar();
44  bool operator== (const Projection &proj);
45 
46  QString Name() const;
47  QString Version() const;
48  double TrueScaleRingRadius() const;
49 
50  double CenterRingLongitude() const;
51  double CenterRingRadius() const;
52 
53  bool SetGround(const double ringRadius, const double ringLongitude);
54  bool SetCoordinate(const double x, const double y);
55  bool XYRange(double &minX, double &maxX, double &minY, double &maxY);
56 
57  PvlGroup Mapping();
60 
61  protected:
62 
63  private:
64  double m_centerRingLongitude;
65  double m_centerRingRadius;
66  };
67 };
68 #endif
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::Planar::MappingRingRadii
PvlGroup MappingRingRadii()
This function returns the radius keywords that this projection uses.
Definition: Planar.cpp:451
Isis::RingPlaneProjection::m_maximumRingLongitude
double m_maximumRingLongitude
Contains the maximum longitude for the entire ground range.
Definition: RingPlaneProjection.h:290
Isis::PvlKeyword
A single keyword-value pair.
Definition: PvlKeyword.h:82
Isis::RingPlaneProjection::Mapping
virtual PvlGroup Mapping()
This method is used to find the XY range for oblique aspect projections (non-polar projections) by "w...
Definition: RingPlaneProjection.cpp:1253
Isis::RingPlaneProjection::To360Domain
static double To360Domain(const double lon)
This method converts an ring longitude into the 0 to 360 domain.
Definition: RingPlaneProjection.cpp:370
Isis::DEG2RAD
const double DEG2RAD
Multiplier for converting from degrees to radians.
Definition: Constants.h:43
Isis::Projection::PixelResolution
double PixelResolution() const
Returns the pixel resolution value from the PVL mapping group in meters/pixel.
Definition: Projection.cpp:840
Isis::Planar::Version
QString Version() const
Returns the version of the map projection.
Definition: Planar.cpp:155
PvlGroup.h
Isis::Projection::m_minimumY
double m_minimumY
See minimumX description.
Definition: Projection.h:327
Isis::Planar::Planar
Planar(Pvl &label, bool allowDefaults=false)
TODO: correct documentation in this file.
Definition: Planar.cpp:39
Isis::Planar::operator==
bool operator==(const Projection &proj)
Compares two Projection objects to see if they are equal.
Definition: Planar.cpp:89
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::RingPlaneProjection::m_maximumRingRadius
double m_maximumRingRadius
Contains the maximum ring radius for the entire ground range.
Definition: RingPlaneProjection.h:284
Planar.h
Isis::toString
QString toString(bool boolToConvert)
Global function to convert a boolean to a string.
Definition: IString.cpp:211
Isis::RingPlaneProjection::m_ringRadius
double m_ringRadius
This contain a ring radius value in m.
Definition: RingPlaneProjection.h:261
Isis::Planar::CenterRingLongitude
double CenterRingLongitude() const
Returns the center longitude, in degrees.
Definition: Planar.cpp:132
Isis::Planar
Planar Map Projection.
Definition: Planar.h:40
Isis::Projection::m_mappingGrp
PvlGroup m_mappingGrp
Mapping group that created this projection.
Definition: Projection.h:329
Isis::RingPlaneProjection::XYRangeCheck
void XYRangeCheck(const double ringRadius, const double ringLongitude)
This convience function is established to assist in the development of the XYRange virtual method.
Definition: RingPlaneProjection.cpp:709
Isis::PvlObject::Traverse
@ Traverse
Search child objects.
Definition: PvlObject.h:158
Isis::Planar::CenterRingRadius
double CenterRingRadius() const
Returns the center radius, in meters.
Definition: Planar.cpp:144
Isis::RingPlaneProjection
Base class for Map Projections of plane shapes.
Definition: RingPlaneProjection.h:147
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::PvlGroup
Contains multiple PvlContainers.
Definition: PvlGroup.h:41
Pvl.h
_FILEINFO_
#define _FILEINFO_
Macro for the filename and line number.
Definition: IException.h:24
PlanarPlugin
Isis::Projection * PlanarPlugin(Isis::Pvl &lab, bool allowDefaults)
This is the function that is called in order to instantiate an Planar object.
Definition: Planar.cpp:490
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::Planar::Name
QString Name() const
Returns the name of the map projection, "Planar".
Definition: Planar.cpp:104
Isis::Planar::MappingRingLongitudes
PvlGroup MappingRingLongitudes()
This function returns the azimuth keywords that this projection uses.
Definition: Planar.cpp:466
Isis::RingPlaneProjection::MappingRingRadii
virtual PvlGroup MappingRingRadii()
This function returns the ring radius keywords that this projection uses.
Definition: RingPlaneProjection.cpp:1296
Isis::RingPlaneProjection::m_ringLongitude
double m_ringLongitude
This contain a ring longitude value.
Definition: RingPlaneProjection.h:263
Isis::RingPlaneProjection::m_ringLongitudeDirection
RingLongitudeDirection m_ringLongitudeDirection
An enumerated type indicating the LongitudeDirection read from the labels.
Definition: RingPlaneProjection.h:267
Isis::RingPlaneProjection::To180Domain
static double To180Domain(const double lon)
This method converts a ring longitude into the -180 to 180 domain.
Definition: RingPlaneProjection.cpp:352
Isis::IException
Isis exception class.
Definition: IException.h:91
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.
RingPlaneProjection.h
Isis::Planar::~Planar
~Planar()
Destroys the Planar object.
Definition: Planar.cpp:78
Isis::Planar::SetGround
bool SetGround(const double ringRadius, const double ringLongitude)
This method is used to set the radius/azimuth (assumed to be of the correct RingLongitudeDirection,...
Definition: Planar.cpp:172
PvlKeyword.h
Isis::RingPlaneProjection::m_minimumRingRadius
double m_minimumRingRadius
Contains the minimum ring radius for the entire ground range.
Definition: RingPlaneProjection.h:281
Isis::Planar::Mapping
PvlGroup Mapping()
This function returns the keywords that this projection uses.
Definition: Planar.cpp:434
Isis::RingPlaneProjection::MappingRingLongitudes
virtual PvlGroup MappingRingLongitudes()
This function returns the ring longitude keywords that this projection uses.
Definition: RingPlaneProjection.cpp:1313
Isis::RingPlaneProjection::Clockwise
@ Clockwise
Ring longitude values increase in the clockwise direction.
Definition: RingPlaneProjection.h:178
Constants.h
Isis::Planar::TrueScaleRingRadius
double TrueScaleRingRadius() const
Returns the center radius, in meters.
Definition: Planar.cpp:121
Isis::Projection::m_maximumY
double m_maximumY
See minimumX description.
Definition: Projection.h:328
Isis::RingPlaneProjection::m_minimumRingLongitude
double m_minimumRingLongitude
Contains the minimum longitude for the entire ground range.
Definition: RingPlaneProjection.h:287
Isis::RingPlaneProjection::m_ringLongitudeDomain
int m_ringLongitudeDomain
This integer is either 180 or 360 and is read from the labels.
Definition: RingPlaneProjection.h:275
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::Projection::HasGroundRange
virtual bool HasGroundRange() const
This indicates if the longitude direction type is positive west (as opposed to postive east).
Definition: Projection.cpp:349
Isis::Planar::SetCoordinate
bool SetCoordinate(const double x, const double y)
This method is used to set the projection x/y.
Definition: Planar.cpp:226
Isis
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16
Isis::Planar::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: Planar.cpp:379

U.S. Department of the Interior | U.S. Geological Survey
ISIS | Privacy & Disclaimers | Astrogeology Research Program
To contact us, please post comments and questions on the USGS Astrogeology Discussion Board
To report a bug, or suggest a feature go to: ISIS Github
File Modified: 07/13/2023 15:12:03