|
Isis Developer Reference
|
Go to the documentation of this file. 1 #ifndef RingPlaneProjection_h
2 #define RingPlaneProjection_h
164 virtual QString
Name()
const = 0;
202 virtual bool SetGround(
const double ringRadius,
const double ringLongitude);
223 double Scale()
const;
226 virtual bool XYRange(
double &minX,
double &maxX,
227 double &minY,
double &maxY);
235 static double ToClockwise(
const double ringLongitude,
const int domain);
243 void XYRangeCheck(
const double ringRadius,
const double ringLongitude);
@ CounterClockwise
Ring longitude values increase in the counterclockwise direction.
Definition: RingPlaneProjection.h:180
@ Degrees
Degrees are generally considered more human readable, 0-360 is one circle, however most math does not...
Definition: Angle.h:56
virtual bool SetGround(const double ringRadius, const double ringLongitude)
This method is used to set the ring radius/longitude (assumed to be of the correct LatitudeType,...
Definition: RingPlaneProjection.cpp:456
bool Has360Domain() const
This indicates if the ring longitude domain is 0 to 360 (as opposed to -180 to 180).
Definition: RingPlaneProjection.cpp:337
double m_maximumRingLongitude
Contains the maximum longitude for the entire ground range.
Definition: RingPlaneProjection.h:290
double UniversalRingLongitude()
This returns a universal ring longitude (clockwise in 0 to 360 domain).
Definition: RingPlaneProjection.cpp:589
WorldMapper * m_mapper
This points to a mapper passed into the SetWorldMapper method.
Definition: Projection.h:292
double MinimumRingRadius() const
This returns the minimum radius of the area of interest.
Definition: RingPlaneProjection.cpp:405
virtual QString Version() const =0
This method returns the Version of the map projection.
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
static double To360Domain(const double lon)
This method converts an ring longitude into the 0 to 360 domain.
Definition: RingPlaneProjection.cpp:370
const double DEG2RAD
Multiplier for converting from degrees to radians.
Definition: Constants.h:43
@ Unknown
A type of error that cannot be classified as any of the other error types.
Definition: IException.h:118
double m_minimumY
See minimumX description.
Definition: Projection.h:327
double RingLongitude() const
This returns a ring longitude with correct ring longitude direction and domain as specified in the la...
Definition: RingPlaneProjection.cpp:530
double LocalRadius() const
This returns a local radius.
Definition: RingPlaneProjection.cpp:518
bool hasKeyword(const QString &name) const
Check to see if a keyword exists.
Definition: PvlContainer.cpp:159
Container for cube-like labels.
Definition: Pvl.h:119
void SetXY(double x, double y)
This protected method is a helper for derived classes.
Definition: Projection.cpp:804
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: RingPlaneProjection.cpp:656
bool Has180Domain() const
This indicates if the longitude domain is -180 to 180 (as opposed to 0 to 360).
Definition: RingPlaneProjection.cpp:326
virtual double Resolution() const
This virtual method will the resolution of the world system relative to one unit in the projection sy...
Definition: WorldMapper.h:100
double m_maximumRingRadius
Contains the maximum ring radius for the entire ground range.
Definition: RingPlaneProjection.h:284
virtual bool SetCoordinate(const double x, const double y)
This method is used to set the projection x/y.
Definition: RingPlaneProjection.cpp:485
QString toString(bool boolToConvert)
Global function to convert a boolean to a string.
Definition: IString.cpp:211
Longitude force180Domain() const
This returns a longitude that is constricted to -180 to 180 degrees.
Definition: Longitude.cpp:289
double m_ringRadius
This contain a ring radius value in m.
Definition: RingPlaneProjection.h:261
virtual QString Name() const =0
This method returns the name of the map projection.
PvlGroup m_mappingGrp
Mapping group that created this projection.
Definition: Projection.h:329
void setProjectionType(const ProjectionType ptype)
Sets the projection subclass type.
Definition: Projection.cpp:188
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
double MaximumRingRadius() const
This returns the maximum radius of the area of interest.
Definition: RingPlaneProjection.cpp:416
This class is designed to encapsulate the concept of a Longitude.
Definition: Longitude.h:40
std::string RingLongitudeDirectionString() const
This method returns the ring longitude direction as a string.
Definition: RingPlaneProjection.cpp:314
RingLongitudeDirection
This enum defines the types of ring longitude directions supported in this class.
Definition: RingPlaneProjection.h:178
virtual double TrueScaleRingRadius() const
This method returns the radius of true scale.
Definition: RingPlaneProjection.cpp:199
std::string RingLongitudeDomainString() const
This method returns the ring longitude domain as a string.
Definition: RingPlaneProjection.cpp:393
bool IsGood() const
This indicates if the last invocation of SetGround, SetCoordinate, SetUniversalGround,...
Definition: Projection.cpp:374
Base class for Map Projections of plane shapes.
Definition: RingPlaneProjection.h:147
double m_minimumX
The data elements m_minimumX, m_minimumY, m_maximumX, and m_maximumY are convience data elements when...
Definition: Projection.h:317
Contains multiple PvlContainers.
Definition: PvlGroup.h:41
RingPlaneProjection(Pvl &label)
Constructs an empty RingPlaneProjection object.
Definition: RingPlaneProjection.cpp:69
#define _FILEINFO_
Macro for the filename and line number.
Definition: IException.h:24
static double ToCounterClockwise(const double ringLongitude, const int domain)
This method converts an ring longitude into the counterclockwise direction.
Definition: RingPlaneProjection.cpp:280
bool m_good
Indicates if the contents of m_x, m_y, m_latitude, and m_longitude are valid.
Definition: Projection.h:300
bool IsClockwise() const
This indicates if the longitude direction type is positive west (as opposed to postive east).
Definition: RingPlaneProjection.cpp:211
double RingRadius() const
This returns a radius.
Definition: RingPlaneProjection.cpp:506
double MaximumRingLongitude() const
This returns the maximum ring longitude of the area of interest.
Definition: RingPlaneProjection.cpp:438
double MinimumRingLongitude() const
This returns the minimum ring longitude of the area of interest.
Definition: RingPlaneProjection.cpp:427
virtual PvlGroup MappingRingRadii()
This function returns the ring radius keywords that this projection uses.
Definition: RingPlaneProjection.cpp:1296
double m_ringLongitude
This contain a ring longitude value.
Definition: RingPlaneProjection.h:263
@ RingPlane
These projections are used to map ring planes.
Definition: Projection.h:168
bool SetUniversalGround(const double ringRadius, const double ringLongitude)
This method is used to set the ring radius/longitude which must be PositiveEast/Domain360 (ring longi...
Definition: RingPlaneProjection.cpp:546
RingLongitudeDirection m_ringLongitudeDirection
An enumerated type indicating the LongitudeDirection read from the labels.
Definition: RingPlaneProjection.h:267
bool IsCounterClockwise() const
This indicates if the longitude direction type is positive east (as opposed to postive west).
Definition: RingPlaneProjection.cpp:222
static double To180Domain(const double lon)
This method converts a ring longitude into the -180 to 180 domain.
Definition: RingPlaneProjection.cpp:352
Isis exception class.
Definition: IException.h:91
bool m_groundRangeGood
Indicates if the ground range (min/max lat/lons) were read from the labels.
Definition: Projection.h:313
const double Null
Value for an Isis Null pixel.
Definition: SpecialPixel.h:95
void SetComputedXY(double x, double y)
This protected method is a helper for derived classes.
Definition: Projection.cpp:780
virtual ~RingPlaneProjection()
Destroys the Projection object.
Definition: RingPlaneProjection.cpp:169
Namespace for the standard library.
double Scale() const
This method returns the scale for mapping world coordinates into projection coordinates.
Definition: RingPlaneProjection.cpp:607
virtual bool operator==(const Projection &proj)
This method determines whether two map projection objects are equal by comparing the ring longitude d...
Definition: RingPlaneProjection.cpp:181
double degrees() const
Get the angle in units of Degrees.
Definition: Angle.h:232
double m_minimumRingRadius
Contains the minimum ring radius for the entire ground range.
Definition: RingPlaneProjection.h:281
static double ToClockwise(const double ringLongitude, const int domain)
This method converts an ring longitude into the clockwise direction.
Definition: RingPlaneProjection.cpp:240
virtual PvlGroup MappingRingLongitudes()
This function returns the ring longitude keywords that this projection uses.
Definition: RingPlaneProjection.cpp:1313
Adds specific functionality to C++ strings.
Definition: IString.h:165
@ Clockwise
Ring longitude values increase in the clockwise direction.
Definition: RingPlaneProjection.h:178
double YCoord() const
This returns the projection Y provided SetGround, SetCoordinate, SetUniversalGround,...
Definition: Projection.cpp:400
double m_maximumY
See minimumX description.
Definition: Projection.h:328
double m_minimumRingLongitude
Contains the minimum longitude for the entire ground range.
Definition: RingPlaneProjection.h:287
int m_ringLongitudeDomain
This integer is either 180 or 360 and is read from the labels.
Definition: RingPlaneProjection.h:275
Base class for Map Projections.
Definition: Projection.h:155
double m_maximumX
See minimumX description.
Definition: Projection.h:326
Longitude force360Domain() const
This returns a longitude that is constricted to 0-360 degrees.
Definition: Longitude.cpp:267
double XCoord() const
This returns the projection X provided SetGround, SetCoordinate, SetUniversalGround,...
Definition: Projection.cpp:387
virtual bool HasGroundRange() const
This indicates if the longitude direction type is positive west (as opposed to postive east).
Definition: Projection.cpp:349
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16
double UniversalRingRadius()
This returns a universal radius, which is just the radius in meters.
Definition: RingPlaneProjection.cpp:575