|
Isis 3 Programmer Reference
|
7 #include "RingCylindrical.h"
12 #include "Constants.h"
13 #include "IException.h"
16 #include "PvlKeyword.h"
17 #include "RingPlaneProjection.h"
18 #include "SpecialPixel.h"
39 RingCylindrical::RingCylindrical(
Pvl &label,
bool allowDefaults) :
46 if ((allowDefaults) && (!mapGroup.
hasKeyword(
"CenterRingLongitude"))) {
53 if ((allowDefaults) && (!mapGroup.
hasKeyword(
"CenterRingRadius"))) {
74 string message =
"Invalid label group [Mapping]";
92 if (!Projection::operator==(proj))
return false;
107 return "RingCylindrical";
192 double ringLongitudeRadians = ringLongitude *
DEG2RAD;
196 if (ringRadius <= 0) {
212 if (ringRadius ==0) {
356 double &minY,
double &maxY) {
418 bool allowDefaults) {
double TrueScaleRingRadius() const
Returns the center radius, in meters.
QString Name() const
Returns the name of the map projection, "RingCylindrical".
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_maximumRingLongitude
Contains the maximum longitude for the entire ground range.
A single keyword-value pair.
virtual PvlGroup Mapping()
This method is used to find the XY range for oblique aspect projections (non-polar projections) by "w...
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...
const double DEG2RAD
Multiplier for converting from degrees to radians.
double PixelResolution() const
Returns the pixel resolution value from the PVL mapping group in meters/pixel.
double m_minimumY
See minimumX description.
double GetX() const
Calculates the unrotated form of current x value.
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.
double m_maximumRingRadius
Contains the maximum ring radius for the entire ground range.
QString toString(bool boolToConvert)
Global function to convert a boolean to a string.
bool SetGround(const double ringRadius, const double ringLongitude)
This method is used to set the radius/longitude (assumed to be of the correct RingLongitudeDirection,...
double m_ringRadius
This contain a ring radius value in m.
PvlGroup m_mappingGrp
Mapping group that created this projection.
double GetY() const
Calculates the unrotated form of the current y value.
void XYRangeCheck(const double ringRadius, const double ringLongitude)
This convience function is established to assist in the development of the XYRange virtual method.
double CenterRingRadius() const
Returns the center radius, in meters.
bool operator==(const Projection &proj)
Compares two Projection objects to see if they are equal.
QString Version() const
Returns the version of the map projection.
@ Traverse
Search child objects.
bool SetCoordinate(const double x, const double y)
This method is used to set the projection x/y.
Base class for Map Projections of plane shapes.
double m_minimumX
The data elements m_minimumX, m_minimumY, m_maximumX, and m_maximumY are convience data elements when...
Contains multiple PvlContainers.
~RingCylindrical()
Destroys the RingCylindrical object.
bool m_good
Indicates if the contents of m_x, m_y, m_latitude, and m_longitude are valid.
Ring Cylindrical Map Projection.
virtual PvlGroup MappingRingRadii()
This function returns the ring radius keywords that this projection uses.
double m_ringLongitude
This contain a ring longitude value.
RingLongitudeDirection m_ringLongitudeDirection
An enumerated type indicating the LongitudeDirection read from the labels.
double m_centerRingRadius
The center ring radius for the map projection.
PvlGroup MappingRingRadii()
This function returns the radii keywords that this projection uses.
void SetComputedXY(double x, double y)
This protected method is a helper for derived classes.
Namespace for the standard library.
PvlGroup MappingRingLongitudes()
This function returns the longitude keywords that this projection uses.
double m_minimumRingRadius
Contains the minimum ring radius for the entire ground range.
virtual PvlGroup MappingRingLongitudes()
This function returns the ring longitude keywords that this projection uses.
@ Clockwise
Ring longitude values increase in the clockwise direction.
double m_maximumY
See minimumX description.
PvlGroup Mapping()
This function returns the keywords that this projection uses.
double m_minimumRingLongitude
Contains the minimum longitude for the entire ground range.
Base class for Map Projections.
double m_maximumX
See minimumX description.
const double RAD2DEG
Multiplier for converting from radians to degrees.
virtual bool HasGroundRange() const
This indicates if the longitude direction type is positive west (as opposed to postive east).
double CenterRingLongitude() const
Returns the center longitude, in degrees.
bool IsEquatorialCylindrical()
This method returns true if the projection is equatorial cylindrical.
This is free and unencumbered software released into the public domain.
double m_centerRingLongitude
The center ring longitude (azimuth) for the map projection, in radians.