Isis Developer Reference
Isis::Planar Class Reference

Planar Map Projection. More...

#include <Planar.h>

Inheritance diagram for Isis::Planar:
Inheritance graph
Collaboration diagram for Isis::Planar:
Collaboration graph

Public Types

enum  RingLongitudeDirection { Clockwise, CounterClockwise }
 This enum defines the types of ring longitude directions supported in this class. More...
 
enum  ProjectionType { Triaxial, RingPlane }
 This enum defines the subclasses of Projection supported in Isis. More...
 

Public Member Functions

 Planar (Pvl &label, bool allowDefaults=false)
 TODO: correct documentation in this file. More...
 
 ~Planar ()
 Destroys the Planar object. More...
 
bool operator== (const Projection &proj)
 Compares two Projection objects to see if they are equal. More...
 
QString Name () const
 Returns the name of the map projection, "Planar". More...
 
QString Version () const
 Returns the version of the map projection. More...
 
double TrueScaleRingRadius () const
 Returns the center radius, in meters. More...
 
double CenterRingLongitude () const
 Returns the center longitude, in degrees. More...
 
double CenterRingRadius () const
 Returns the center radius, in meters. More...
 
bool SetGround (const double ringRadius, const double ringLongitude)
 This method is used to set the radius/azimuth (assumed to be of the correct RingLongitudeDirection, a nd RingLongitudeDomain. More...
 
bool SetCoordinate (const double x, const double y)
 This method is used to set the projection x/y. More...
 
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 by the radius/longitude range. More...
 
PvlGroup Mapping ()
 This function returns the keywords that this projection uses. More...
 
PvlGroup MappingRingRadii ()
 This function returns the radius keywords that this projection uses. More...
 
PvlGroup MappingRingLongitudes ()
 This function returns the azimuth keywords that this projection uses. More...
 
double LocalRadius () const
 This returns a local radius. More...
 
bool IsClockwise () const
 This indicates if the longitude direction type is positive west (as opposed to postive east). More...
 
bool IsCounterClockwise () const
 This indicates if the longitude direction type is positive east (as opposed to postive west). More...
 
std::string RingLongitudeDirectionString () const
 This method returns the ring longitude direction as a string. More...
 
bool Has180Domain () const
 This indicates if the longitude domain is -180 to 180 (as opposed to 0 to 360). More...
 
bool Has360Domain () const
 This indicates if the ring longitude domain is 0 to 360 (as opposed to -180 to 180). More...
 
std::string RingLongitudeDomainString () const
 This method returns the ring longitude domain as a string. More...
 
double MinimumRingRadius () const
 This returns the minimum radius of the area of interest. More...
 
double MaximumRingRadius () const
 This returns the maximum radius of the area of interest. More...
 
double MinimumRingLongitude () const
 This returns the minimum ring longitude of the area of interest. More...
 
double MaximumRingLongitude () const
 This returns the maximum ring longitude of the area of interest. More...
 
double RingRadius () const
 This returns a radius. More...
 
double RingLongitude () const
 This returns a ring longitude with correct ring longitude direction and domain as specified in the label object. More...
 
bool SetUniversalGround (const double ringRadius, const double ringLongitude)
 This method is used to set the ring radius/longitude which must be PositiveEast/Domain360 (ring longitude). More...
 
double UniversalRingRadius ()
 This returns a universal radius, which is just the radius in meters. More...
 
double UniversalRingLongitude ()
 This returns a universal ring longitude (clockwise in 0 to 360 domain). More...
 
double Scale () const
 This method returns the scale for mapping world coordinates into projection coordinates. More...
 
bool operator!= (const Projection &proj)
 This method determines whether two map projection objects are not equal. More...
 
void setProjectionType (const ProjectionType ptype)
 Sets the projection subclass type. More...
 
ProjectionType projectionType () const
 Returns an enum value for the projection type. More...
 
bool IsSky () const
 Returns true if projection is sky and false if it is land. More...
 
virtual bool IsEquatorialCylindrical ()
 This method returns true if the projection is equatorial cylindrical. More...
 
virtual bool HasGroundRange () const
 This indicates if the longitude direction type is positive west (as opposed to postive east). More...
 
double Rotation () const
 Returns the value of the Rotation keyword from the mapping group. More...
 
void SetWorldMapper (WorldMapper *mapper)
 If desired the programmer can use this method to set a world mapper to be used in the SetWorld, WorldX, and WorldY methods. More...
 
bool IsGood () const
 This indicates if the last invocation of SetGround, SetCoordinate, SetUniversalGround, or SetWorld was with successful or not. More...
 
double XCoord () const
 This returns the projection X provided SetGround, SetCoordinate, SetUniversalGround, or SetWorld returned with success. More...
 
double YCoord () const
 This returns the projection Y provided SetGround, SetCoordinate, SetUniversalGround, or SetWorld returned with success. More...
 
virtual bool SetUnboundUniversalGround (const double coord1, const double coord2)
 This method is used to set the lat/lon or radius/azimuth (i.e. More...
 
virtual bool SetWorld (const double x, const double y)
 This method is used to set a world coordinate. More...
 
virtual double WorldX () const
 This returns the world X coordinate provided SetGround, SetCoordinate, SetUniversalGround, or SetWorld returned with success. More...
 
virtual double WorldY () const
 This returns the world Y coordinate provided SetGround, SetCoordinate, SetUniversalGround, or SetWorld returned with success. More...
 
double ToWorldX (const double projectionX) const
 This method converts a projection x value to a world x value. More...
 
double ToWorldY (const double projectionY) const
 This method converts a projection y value to a world y value. More...
 
double ToProjectionX (const double worldX) const
 This method converts a world x value to a projection x value. More...
 
double ToProjectionY (const double worldY) const
 This method converts a world y value to a projection y value. More...
 
double Resolution () const
 This method returns the resolution for mapping world coordinates into projection coordinates. More...
 
void SetUpperLeftCorner (const Displacement &x, const Displacement &y)
 This method searches for extreme (min/max/discontinuity) coordinate values along the constBorder line between minBorder and maxBorder (that is, across latitudes/longitudes). More...
 

Static Public Member Functions

static double ToClockwise (const double ringLongitude, const int domain)
 This method converts an ring longitude into the clockwise direction. More...
 
static double ToCounterClockwise (const double ringLongitude, const int domain)
 This method converts an ring longitude into the counterclockwise direction. More...
 
static double To180Domain (const double lon)
 This method converts a ring longitude into the -180 to 180 domain. More...
 
static double To360Domain (const double lon)
 This method converts an ring longitude into the 0 to 360 domain. More...
 
static double ToHours (double angle)
 Converts the given angle (in degrees) to hours by using the ratio 15 degrees per hour. More...
 
static QString ToDMS (double angle)
 Converts the given angle (in degrees) to degrees, minutes, seconds. More...
 
static QString ToHMS (double angle)
 Converts the given angle (in degrees) to hours, minutes, seconds. More...
 

Protected Member Functions

void XYRangeCheck (const double ringRadius, const double ringLongitude)
 This convience function is established to assist in the development of the XYRange virtual method. More...
 
void SetXY (double x, double y)
 This protected method is a helper for derived classes. More...
 
void SetComputedXY (double x, double y)
 This protected method is a helper for derived classes. More...
 
double GetX () const
 Calculates the unrotated form of current x value. More...
 
double GetY () const
 Calculates the unrotated form of the current y value. More...
 
double PixelResolution () const
 Returns the pixel resolution value from the PVL mapping group in meters/pixel. More...
 

Protected Attributes

double m_ringRadius
 This contain a ring radius value in m. More...
 
double m_ringLongitude
 This contain a ring longitude value. More...
 
RingLongitudeDirection m_ringLongitudeDirection
 An enumerated type indicating the LongitudeDirection read from the labels. More...
 
int m_ringLongitudeDomain
 This integer is either 180 or 360 and is read from the labels. More...
 
double m_minimumRingRadius
 Contains the minimum ring radius for the entire ground range. More...
 
double m_maximumRingRadius
 Contains the maximum ring radius for the entire ground range. More...
 
double m_minimumRingLongitude
 Contains the minimum longitude for the entire ground range. More...
 
double m_maximumRingLongitude
 Contains the maximum longitude for the entire ground range. More...
 
WorldMapperm_mapper
 This points to a mapper passed into the SetWorldMapper method. More...
 
bool m_good
 Indicates if the contents of m_x, m_y, m_latitude, and m_longitude are valid. More...
 
bool m_sky
 Indicates whether projection is sky or land. More...
 
bool m_groundRangeGood
 Indicates if the ground range (min/max lat/lons) were read from the labels. More...
 
double m_minimumX
 The data elements m_minimumX, m_minimumY, m_maximumX, and m_maximumY are convience data elements when you write the XYRange virtual function. More...
 
double m_maximumX
 See minimumX description. More...
 
double m_minimumY
 See minimumX description. More...
 
double m_maximumY
 See minimumX description. More...
 
PvlGroup m_mappingGrp
 Mapping group that created this projection. More...
 

Detailed Description

Planar Map Projection.

This class provides methods for the forward and inverse equations of an Planar map projection.

The Orthographic projection is an azimuthal projection. Latitudes and longitudes are ellipses, circles, or straight lines. Only one hemisphere can be projected. Scale is true at the point (center latitude, center longitude).

See the Projection class for a full accounting of all the methods available.

Author
2012-09-09 Ken Edmundson

Member Enumeration Documentation

◆ ProjectionType

This enum defines the subclasses of Projection supported in Isis.

Enumerator
Triaxial 

These projections are used to map triaxial and irregular-shaped bodies.

RingPlane 

These projections are used to map ring planes.

◆ RingLongitudeDirection

This enum defines the types of ring longitude directions supported in this class.

Enumerator
Clockwise 

Ring longitude values increase in the clockwise direction.

CounterClockwise 

Ring longitude values increase in the counterclockwise direction.

Constructor & Destructor Documentation

◆ Planar()

Isis::Planar::Planar ( Pvl label,
bool  allowDefaults = false 
)

TODO: correct documentation in this file.

Constructs an Planar object

Parameters
labelThis argument must be a Label containing the proper mapping information as indicated in the Projection class. Additionally, the orthographic projection requires the center longitude to be defined in the keyword CenterRingLongitude.
allowDefaultsIf set to false the constructor expects that a keyword of CenterRingLongitude will be in the label. Otherwise it will attempt to compute the center longitude using the middle of the azimuth range specified in the labels. Defaults to false.
Exceptions
IException

References _FILEINFO_, Isis::RingPlaneProjection::Clockwise, Isis::DEG2RAD, Isis::PvlObject::findGroup(), Isis::PvlContainer::hasKeyword(), Isis::IException::Io, Isis::RingPlaneProjection::m_maximumRingLongitude, Isis::RingPlaneProjection::m_maximumRingRadius, Isis::RingPlaneProjection::m_minimumRingLongitude, Isis::RingPlaneProjection::m_minimumRingRadius, Isis::RingPlaneProjection::m_ringLongitudeDirection, Isis::RingPlaneProjection::m_ringRadius, Isis::toString(), and Isis::PvlObject::Traverse.

◆ ~Planar()

Isis::Planar::~Planar ( )

Destroys the Planar object.

Member Function Documentation

◆ CenterRingLongitude()

double Isis::Planar::CenterRingLongitude ( ) const

Returns the center longitude, in degrees.

Returns
double The center longitude.

References Isis::RingPlaneProjection::Clockwise, Isis::RingPlaneProjection::m_ringLongitudeDirection, and Isis::RAD2DEG.

◆ CenterRingRadius()

double Isis::Planar::CenterRingRadius ( ) const

Returns the center radius, in meters.

Returns
double The center radius.

◆ GetX()

◆ GetY()

◆ Has180Domain()

bool Isis::RingPlaneProjection::Has180Domain ( ) const
inherited

This indicates if the longitude domain is -180 to 180 (as opposed to 0 to 360).

The ring longitude domain was obtained from the label during object construction.

Returns
bool

References Isis::RingPlaneProjection::m_ringLongitudeDomain.

Referenced by Isis::RingPlaneProjection::operator==().

◆ Has360Domain()

bool Isis::RingPlaneProjection::Has360Domain ( ) const
inherited

This indicates if the ring longitude domain is 0 to 360 (as opposed to -180 to 180).

The ring longitude domain was obtained from the label during object construction.

Returns
bool

References Isis::RingPlaneProjection::m_ringLongitudeDomain.

◆ HasGroundRange()

bool Isis::Projection::HasGroundRange ( ) const
virtualinherited

This indicates if the longitude direction type is positive west (as opposed to postive east).

The longitude type was obtained from the label during object construction.

Returns
bool This indicates if the longitude direction type is positive east (as opposed to postive west). The longitude type was obtained from the label during object construction.
bool This method returns the longitude direction as a string. It will return either PositiveEast or PositiveWest.
string The longitude direction, "PositiveEast" or "PositiveWest". This indicates if the longitude domain is -180 to 180 (as opposed to 0 to 360). The longitude domain was obtained from the label during object construction.
bool This indicates if the longitude domain is 0 to 360 (as opposed to -180 to 180). The longitude domain was obtained from the label during object construction.
bool This method converts a longitude into the -180 to 180 domain. It will leave the longitude unchanged if it is already in the domain.
Parameters
lonLongitude to convert into the -180 to 180 domain.
Exceptions
IException::Unknown- "The given longitude is invalid."
Returns
double The longitude, converted to 180 domain. This method converts a longitude into the 0 to 360 domain. It will leave the longitude unchanged if it is already in the domain.
Parameters
lonLongitude to convert into the 0 to 360 domain.
Returns
double The longitude, converted to 360 domain. This method returns the longitude domain as a string. It will return either 180 or 360.
string The longitude domain, "180" or "360". This indicates that the labels contained minimum and maximum ground coordinatess (e.g., a ground range coverage). If the projection has ground range coverage then the MinimumLatitude, MaximumLatitude, MinimumLongitude, and MaximumLongitude methods or comparable methods for other projection types can be used. The ground range coverage essentially defines the area of user interest.
bool

References Isis::Projection::m_groundRangeGood.

Referenced by Isis::ProjectionFactory::CreateForCube(), Isis::RingPlaneProjection::Mapping(), Isis::TProjection::MappingLatitudes(), Isis::TProjection::MappingLongitudes(), MappingRingLongitudes(), Isis::RingCylindrical::MappingRingLongitudes(), Isis::RingPlaneProjection::MappingRingLongitudes(), MappingRingRadii(), Isis::RingCylindrical::MappingRingRadii(), Isis::RingPlaneProjection::MappingRingRadii(), Isis::ProjectionFactory::RingsCreateForCube(), and Isis::TProjection::xyRangeOblique().

◆ IsClockwise()

bool Isis::RingPlaneProjection::IsClockwise ( ) const
inherited

This indicates if the longitude direction type is positive west (as opposed to postive east).

The longitude type was obtained from the label during object construction.

Returns
bool

References Isis::RingPlaneProjection::Clockwise, and Isis::RingPlaneProjection::m_ringLongitudeDirection.

Referenced by Isis::RingPlaneProjection::operator==().

◆ IsCounterClockwise()

bool Isis::RingPlaneProjection::IsCounterClockwise ( ) const
inherited

This indicates if the longitude direction type is positive east (as opposed to postive west).

The longitude type was obtained from the label during object construction.

Returns
bool

References Isis::RingPlaneProjection::CounterClockwise, and Isis::RingPlaneProjection::m_ringLongitudeDirection.

◆ IsEquatorialCylindrical()

bool Isis::Projection::IsEquatorialCylindrical ( )
virtualinherited

This method returns true if the projection is equatorial cylindrical.

In other words, if the projection is cylindrical and an image projected at 0 is the same as an image projected at 360.

Returns
bool true if the projection is equatorial cylindrical

Reimplemented in Isis::TProjection, Isis::SimpleCylindrical, Isis::RingCylindrical, Isis::Mercator, and Isis::Equirectangular.

Referenced by Isis::ShapeModelFactory::create(), and Isis::ProcessMapMosaic::StartProcess().

◆ IsGood()

bool Isis::Projection::IsGood ( ) const
inherited

This indicates if the last invocation of SetGround, SetCoordinate, SetUniversalGround, or SetWorld was with successful or not.

If there was success then the Latitude, Longitude, XCoord, YCoord, UniversalLatitude, UniversalLongitude, WorldX, and WorldY methods can be utilized.

Returns
bool True if the last call to SetGround, SetCoordinate, SetUniversalGround, or SetWorld was successful.

References Isis::Projection::m_good.

Referenced by Isis::ProjectionFactory::CreateForCube(), Isis::Chip::Load(), Isis::ProjectionFactory::RingsCreateForCube(), Isis::SubArea::UpdateLabel(), Isis::TProjection::XYRangeCheck(), and Isis::RingPlaneProjection::XYRangeCheck().

◆ IsSky()

bool Isis::Projection::IsSky ( ) const
inherited

Returns true if projection is sky and false if it is land.

Returns
bool

References Isis::Projection::m_sky.

Referenced by Isis::Camera::SetImage(), and Isis::Camera::SetRightAscensionDeclination().

◆ LocalRadius()

double Isis::RingPlaneProjection::LocalRadius ( ) const
virtualinherited

This returns a local radius.

The method can only be used if SetGround, SetCoordinate, SetUniversalGround, or SetWorld return with success. Success can also be checked using the IsGood method.

Returns
double

Implements Isis::Projection.

References Isis::RingPlaneProjection::m_ringRadius.

◆ Mapping()

PvlGroup Isis::Planar::Mapping ( )
virtual

This function returns the keywords that this projection uses.

Returns
PvlGroup The keywords that this projection uses

Reimplemented from Isis::RingPlaneProjection.

References Isis::RingPlaneProjection::Clockwise, Isis::RingPlaneProjection::m_ringLongitudeDirection, Isis::RingPlaneProjection::Mapping(), Isis::RAD2DEG, and Isis::toString().

◆ MappingRingLongitudes()

PvlGroup Isis::Planar::MappingRingLongitudes ( )
virtual

This function returns the azimuth keywords that this projection uses.

Returns
PvlGroup The azimuth keywords that this projection uses

Reimplemented from Isis::RingPlaneProjection.

References Isis::Projection::HasGroundRange(), Isis::Projection::m_mappingGrp, and Isis::RingPlaneProjection::MappingRingLongitudes().

◆ MappingRingRadii()

PvlGroup Isis::Planar::MappingRingRadii ( )
virtual

This function returns the radius keywords that this projection uses.

Returns
PvlGroup The radius keywords that this projection uses

Reimplemented from Isis::RingPlaneProjection.

References Isis::Projection::HasGroundRange(), Isis::Projection::m_mappingGrp, and Isis::RingPlaneProjection::MappingRingRadii().

◆ MaximumRingLongitude()

double Isis::RingPlaneProjection::MaximumRingLongitude ( ) const
inherited

This returns the maximum ring longitude of the area of interest.

The value was obtained from the labels during object construction. This method can only be used if HasGroundRange returns a true.

Returns
double

References Isis::RingPlaneProjection::m_maximumRingLongitude.

Referenced by Isis::ProcessMapMosaic::RingsSetOutputCube().

◆ MaximumRingRadius()

double Isis::RingPlaneProjection::MaximumRingRadius ( ) const
inherited

This returns the maximum radius of the area of interest.

The value was obtained from the labels during object construction. This method can only be used if HasGroundRange returns a true.

Returns
double

References Isis::RingPlaneProjection::m_maximumRingRadius.

Referenced by Isis::ProcessMapMosaic::RingsSetOutputCube().

◆ MinimumRingLongitude()

double Isis::RingPlaneProjection::MinimumRingLongitude ( ) const
inherited

This returns the minimum ring longitude of the area of interest.

The value was obtained from the labels during object construction. This method can only be used if HasGroundRange returns a true.

Returns
double

References Isis::RingPlaneProjection::m_minimumRingLongitude.

Referenced by Isis::ProcessMapMosaic::RingsSetOutputCube().

◆ MinimumRingRadius()

double Isis::RingPlaneProjection::MinimumRingRadius ( ) const
inherited

This returns the minimum radius of the area of interest.

The value was obtained from the labels during object construction. This method can only be used if HasGroundRange returns a true.

Returns
double

References Isis::RingPlaneProjection::m_minimumRingRadius.

Referenced by Isis::ProcessMapMosaic::RingsSetOutputCube().

◆ Name()

QString Isis::Planar::Name ( ) const
virtual

Returns the name of the map projection, "Planar".

Returns
string Name of projection, "Planar"

Implements Isis::RingPlaneProjection.

◆ operator!=()

bool Isis::Projection::operator!= ( const Projection proj)
inherited

This method determines whether two map projection objects are not equal.

True is returned if they have at least some differences in the radii, latitude type, longitude direction, resolution, or projection name.

Parameters
projA reference to a Projection object to which this Projection will be compared.
Returns
bool Indicates whether the Projection objects are not equivalent.

◆ operator==()

bool Isis::Planar::operator== ( const Projection proj)
virtual

Compares two Projection objects to see if they are equal.

Parameters
projProjection object to do comparison on
Returns
bool Returns true if the Projection objects are equal, and false if they are not

Reimplemented from Isis::RingPlaneProjection.

◆ PixelResolution()

double Isis::Projection::PixelResolution ( ) const
protectedinherited

Returns the pixel resolution value from the PVL mapping group in meters/pixel.

Returns
double pixel resolution in meters/pixel

Referenced by XYRange(), and Isis::RingCylindrical::XYRange().

◆ projectionType()

◆ Resolution()

double Isis::Projection::Resolution ( ) const
inherited

This method returns the resolution for mapping world coordinates into projection coordinates.

For example, if the world coordinate system is an image then this routine returns the number of meters per pixel. Likewise, if the world coordinate system is a piece of paper, it might return the number of meters per inch of paper. If the SetWorldMapper method is not invoked then this method returns 1.0

Returns
double The resolution, in appropriate units.

References Isis::Projection::m_mapper, and Isis::WorldMapper::Resolution().

Referenced by Isis::ProcessExport::CreateWorldFile(), Isis::Projection::operator==(), and Isis::UniversalGroundMap::Resolution().

◆ RingLongitude()

double Isis::RingPlaneProjection::RingLongitude ( ) const
inherited

This returns a ring longitude with correct ring longitude direction and domain as specified in the label object.

The method can only be used if SetGround, SetCoordinate, SetUniversalGround, or SetWorld return with success. Success can also be checked using the IsGood method.

Returns
double

References Isis::RingPlaneProjection::m_ringLongitude.

Referenced by Isis::UniversalGroundMap::UniversalLongitude().

◆ RingLongitudeDirectionString()

string Isis::RingPlaneProjection::RingLongitudeDirectionString ( ) const
inherited

This method returns the ring longitude direction as a string.

It will return either Clockwise or CounterClockwise.

Returns
string The ring longitude direction, "Clockwise" or "CounterClockwise".

References Isis::RingPlaneProjection::Clockwise, and Isis::RingPlaneProjection::m_ringLongitudeDirection.

◆ RingLongitudeDomainString()

string Isis::RingPlaneProjection::RingLongitudeDomainString ( ) const
inherited

This method returns the ring longitude domain as a string.

It will return either 180 or 360.

Returns
string The ring longitude domain, "180" or "360".

References Isis::RingPlaneProjection::m_ringLongitudeDomain.

◆ RingRadius()

double Isis::RingPlaneProjection::RingRadius ( ) const
inherited

This returns a radius.

The method can only be used if SetGround, SetCoordinate, SetUniversalGround, or SetWorld return with success. Success can also be checked using the IsGood method.

Returns
double

References Isis::RingPlaneProjection::m_ringRadius.

Referenced by Isis::UniversalGroundMap::UniversalLatitude().

◆ Rotation()

double Isis::Projection::Rotation ( ) const
inherited

Returns the value of the Rotation keyword from the mapping group.

Returns
double The rotation of the map.

◆ Scale()

double Isis::RingPlaneProjection::Scale ( ) const
virtualinherited

This method returns the scale for mapping world coordinates into projection coordinates.

For example, if the world coordinate system is an image then this routine returns the number of pixels per degree. Likewise, if the world coordinate system is a piece of paper, it might return the number of inches of paper per degree. If the SetWorldMapper method is not invoked then this method returns 1.0

Returns
double The scale for mapping.

Implements Isis::Projection.

References Isis::DEG2RAD, Isis::Projection::m_mapper, Isis::WorldMapper::Resolution(), and Isis::RingPlaneProjection::TrueScaleRingRadius().

◆ SetComputedXY()

void Isis::Projection::SetComputedXY ( double  x,
double  y 
)
protectedinherited

◆ SetCoordinate()

bool Isis::Planar::SetCoordinate ( const double  x,
const double  y 
)
virtual

This method is used to set the projection x/y.

The Set forces an attempted calculation of the corresponding radius/azimuth position. This may or may not be successful and a status is returned as such.

Parameters
xX coordinate of the projection in units that are the same as the radii in the label
yY coordinate of the projection in units that are the same as the radii in the label
Returns
bool

Reimplemented from Isis::RingPlaneProjection.

References Isis::RingPlaneProjection::Clockwise, Isis::Projection::m_good, Isis::RingPlaneProjection::m_ringLongitude, Isis::RingPlaneProjection::m_ringLongitudeDirection, Isis::RingPlaneProjection::m_ringLongitudeDomain, Isis::RingPlaneProjection::m_ringRadius, Isis::RAD2DEG, Isis::Projection::SetXY(), Isis::RingPlaneProjection::To180Domain(), and Isis::RingPlaneProjection::To360Domain().

◆ SetGround()

bool Isis::Planar::SetGround ( const double  ringRadius,
const double  ringLongitude 
)
virtual

This method is used to set the radius/azimuth (assumed to be of the correct RingLongitudeDirection, a nd RingLongitudeDomain.

The Set forces an attempted calculation of the projection X/Y values. This may or may not be successful and a status is returned as such.

Parameters
ringRadiusRadius value to project in meters
ringLongitudeRing longitude (azimuth) value to project in degrees
Returns
bool

Reimplemented from Isis::RingPlaneProjection.

References Isis::RingPlaneProjection::Clockwise, Isis::DEG2RAD, Isis::Projection::m_good, Isis::RingPlaneProjection::m_ringLongitude, Isis::RingPlaneProjection::m_ringLongitudeDirection, Isis::RingPlaneProjection::m_ringRadius, and Isis::Projection::SetComputedXY().

◆ setProjectionType()

void Isis::Projection::setProjectionType ( const ProjectionType  ptype)
inherited

Sets the projection subclass type.

Parameters
ptypeThe projection subclass type

Referenced by Isis::RingPlaneProjection::RingPlaneProjection(), and Isis::TProjection::TProjection().

◆ SetUnboundUniversalGround()

bool Isis::Projection::SetUnboundUniversalGround ( const double  coord1,
const double  coord2 
)
virtualinherited

This method is used to set the lat/lon or radius/azimuth (i.e.

ring longitude) coordinate, depending on the projection type. The Set forces an attempted calculation of the projection X/Y values. This may or may not be successful and a status is returned as such. This method will not adjust the longitude coordinate based on the longitude domain.

Parameters
coord1Latitude (planetocentric) or ring radius to project
coord2Longitude or ring longitude to project. The value passed in should be PositiveEast, Domain360.
Returns
bool Indicates whether the method was successful.

Reimplemented in Isis::TProjection.

References Isis::Projection::m_good, Isis::Null, Isis::Projection::projectionType(), Isis::TProjection::SetUnboundUniversalGround(), Isis::RingPlaneProjection::SetUniversalGround(), and Isis::Projection::Triaxial.

Referenced by Isis::UniversalGroundMap::SetUnboundGround().

◆ SetUniversalGround()

bool Isis::RingPlaneProjection::SetUniversalGround ( const double  ringRadius,
const double  ringLongitude 
)
virtualinherited

This method is used to set the ring radius/longitude which must be PositiveEast/Domain360 (ring longitude).

The Set forces an attempted calculation of the projection X/Y values. This may or may not be successful and a status is returned as such.

Parameters
ringRadiusThe ring radius value to project
ringLongitudePositiveEast, Domain360 ring longitude value to project
Returns
bool Indicates whether the method was successful.

Reimplemented from Isis::Projection.

References Isis::RingPlaneProjection::Clockwise, Isis::Projection::m_good, Isis::RingPlaneProjection::m_ringLongitude, Isis::RingPlaneProjection::m_ringLongitudeDirection, Isis::RingPlaneProjection::m_ringLongitudeDomain, Isis::RingPlaneProjection::m_ringRadius, Isis::Null, Isis::RingPlaneProjection::SetGround(), Isis::RingPlaneProjection::To180Domain(), and Isis::RingPlaneProjection::To360Domain().

Referenced by Isis::Projection::SetUnboundUniversalGround(), and Isis::Projection::SetUniversalGround().

◆ SetUpperLeftCorner()

void Isis::Projection::SetUpperLeftCorner ( const Displacement x,
const Displacement y 
)
inherited

This method searches for extreme (min/max/discontinuity) coordinate values along the constBorder line between minBorder and maxBorder (that is, across latitudes/longitudes).

This method locates the extrema by utilizing the findExtreme() method until the coordinate values converge. Then, extremeVal parameter is updated with this value before returning.

Discontinuities are stored in m_specialLatCases and m_specialLonCases so they may be checked again later, which creates significantly more accuracy in some cases.

Parameters
minBorderMinimum latitude or longitude to search between.
maxBorderMaximum latitude or longitude to search between.
extremeValThe resulting global coordinate value (min or max value for x or y, depending on findMin and searchX) on the constBorder.
constBorderThe latitude or longitude that remains constant. The method will step along this border.
searchXIndicates whether the method is searching for a min or max x-coordinate. If false the method searches for min or max y-coordinate.
searchLongitudeIndicates whether the method will search along a longitude. If true, constBorder is longitude and all other borders are latitudes. If false, the method searches a latitude (constBorder is a lat, other borders lons).
findMinIndicates whether the method is looking for a minimum coordinate value. If false, the method is looking for a maximum value.
Author
Steven Lambright Searches for extreme (min/max/discontinuity) coordinate values across latitudes/longitudes.

This method looks for these extrema along the constBorder between minBorder and maxBorder by stepping along constBorder (10 times) from the minBorder and maxBorder. Then, the range of this extreme value is recorded in minBorder and maxBorder and the coordinate values corresponding to these new borders are stored in minBorderX, minBorderY, maxBorderX and maxBorderY.

This function should be used by calling it repeatedly until minBorderX and minBorderY do not equal maxBorderX and maxBorderY, respectively. Discontinuities will cause the minBorderX, minBorderY, maxBorderX and maxBorderY to never converge. If minBorderX never comes close to maxBorderX or minBorderY never comes close to maxBorderY, then between minBorder and maxBorder is the value of the most extreme value. In this case, either the smaller or larger of the x or y values found will be correct, depending on the values of findMin and searchX.

Parameters
minBorderMinimum latitude or longitude to search between. This value gets updated to a more precise range.
maxBorderMaximum latitude or longitude to search between. This value gets updated to a more precise range.
minBorderXThe x-value corresponding to the lower resultant minBorder and the constBorder, which is more accurate when nearly equal to maxBorderX.
minBorderYThe y-value corresponding to the lower resultant minBorder and the constBorder, which is more accurate when nearly equal to maxBorderY.
maxBorderXThe x-value corresponding to the higher resultant maxBorder and the constBorder, which is more accurate when nearly equal to minBorderX.
maxBorderYThe y-value corresponding to the higher resultant maxBorder and the constBorder, which is more accurate when nearly equal to minBorderY.
constBorderThe latitude or longitude that remains constant. The method will step along this border.
searchXIndicates whether the method is searching for a min or max x-coordinate. If false the method searches for min or max y-coordinate.
searchLongitudeIndicates whether the method will search along a longitude. If true, constBorder is longitude and all other borders are latitudes. If false, the method searches a latitude (constBorder is a lat, other borders lons).
findMinIndicates whether the method is looking for a minimum coordinate value. If false, the method is looking for a maximum value.
Author
Stephen Lambright This function sets the ground for the given border values. It calls the SetGround(lat, lon) method with the appropriate lat/lon values, depending on whether variableIsLat is true.

This method is used by doSearch and findExtreme in order to set the ground correctly each time.

Parameters
variableBorderThe latitude or longitude that is variable in the search methods.
constBorderThe latitude or longitude that is constant in the search methods.
variableIsLatIndicates whether variableBorder is the latittude value and constBorder is the longitude value. If false, variableBorder is the longitude value and constBorder is the latitude value.
Author
Stephen Lambright This method sets the UpperLeftCornerX and UpperLeftCornerY keywords in the projection mapping group, in meters.
Parameters
xthe upper left corner x value
ythe upper left corner y value

References Isis::PvlContainer::addKeyword(), Isis::Projection::m_mappingGrp, Isis::Displacement::meters(), Isis::PvlContainer::Replace, and Isis::toString().

Referenced by Isis::ProjectionFactory::CreateForCube(), Isis::ProjectionFactory::CreateFromCube(), Isis::ProjectionFactory::RingsCreateForCube(), and Isis::ProjectionFactory::RingsCreateFromCube().

◆ SetWorld()

bool Isis::Projection::SetWorld ( const double  worldX,
const double  worldY 
)
virtualinherited

This method is used to set a world coordinate.

A world coordinate is a different coordinate type that has a one-to-one mapping to the projection coordinate system. For example, mapping pixel samples and lines to projection x's and y's. The Set forces an attempted calculation of the corresponding latitude/longitude position. This may or may not be successful and a status is returned as such. Note that is only applies if the Projection object was given an WorldMapper object during construction. If an WorldMapper was not supplied then SetWorld operates exactly the same as SetCoordinate (impling that world coordinate and projection coordinate are identical).

Parameters
worldXWorld X coordinate in units that are specified by the WorldMapper object (e.g., pixels, millimeters, etc)
worldYWorld Y coordinate in units that are specified by the WorldMapper object (e.g., pixels, millimeters, etc)
Returns
bool Indicates whether the method was successful.

References Isis::Projection::m_mapper, Isis::WorldMapper::ProjectionX(), Isis::WorldMapper::ProjectionY(), and Isis::Projection::SetCoordinate().

Referenced by Isis::ProcessExport::CreateWorldFile(), Isis::UniversalGroundMap::GroundRange(), Isis::Cube::latLonRange(), Isis::Chip::Load(), Isis::UniversalGroundMap::SetImage(), Isis::SubArea::UpdateLabel(), and Isis::PolygonTools::XYToLatLon().

◆ SetWorldMapper()

void Isis::Projection::SetWorldMapper ( WorldMapper mapper)
inherited

If desired the programmer can use this method to set a world mapper to be used in the SetWorld, WorldX, and WorldY methods.

Mappers typically transform a projection coordinate (x/y) into the desired working coordinate system, for example, cube pixels or inches on a piece of paper. They transform in both directions (world to projection and projection to world). This allows for conversions from line/sample to latitude/longitude and vice versa. This projection will take ownership of the WorldMapper pointer.

Parameters
mapperPointer to the mapper

References Isis::Projection::m_mapper.

Referenced by Isis::ProjectionFactory::CreateForCube(), Isis::ProjectionFactory::CreateFromCube(), Isis::ProjectionFactory::RingsCreateForCube(), and Isis::ProjectionFactory::RingsCreateFromCube().

◆ SetXY()

◆ To180Domain()

double Isis::RingPlaneProjection::To180Domain ( const double  ringLongitude)
staticinherited

This method converts a ring longitude into the -180 to 180 domain.

It will leave the ring longitude unchanged if it is already in the domain.

Parameters
ringLongitudeA ring longitude to convert into the -180 to 180 domain.
Exceptions
IException::Unknown- "The given longitude is invalid."
Returns
double The ring longitude, converted to 180 domain.

References _FILEINFO_, Isis::Angle::Degrees, Isis::Angle::degrees(), Isis::Longitude::force180Domain(), Isis::Null, and Isis::IException::Unknown.

Referenced by SetCoordinate(), Isis::RingPlaneProjection::SetUniversalGround(), Isis::RingPlaneProjection::ToClockwise(), and Isis::RingPlaneProjection::ToCounterClockwise().

◆ To360Domain()

double Isis::RingPlaneProjection::To360Domain ( const double  ringLongitude)
staticinherited

This method converts an ring longitude into the 0 to 360 domain.

It will leave the ring longitude unchanged if it is already in the domain.

Parameters
ringLongitudeThe ring longitude to convert into the 0 to 360 domain.
Returns
double The ring longitude, converted to 360 domain.

References _FILEINFO_, Isis::Angle::Degrees, Isis::Angle::degrees(), Isis::Longitude::force360Domain(), Isis::Null, and Isis::IException::Unknown.

Referenced by SetCoordinate(), Isis::RingPlaneProjection::SetUniversalGround(), Isis::RingPlaneProjection::ToClockwise(), Isis::RingPlaneProjection::ToCounterClockwise(), and Isis::RingPlaneProjection::UniversalRingLongitude().

◆ ToClockwise()

double Isis::RingPlaneProjection::ToClockwise ( const double  ringLongitude,
const int  domain 
)
staticinherited

This method converts an ring longitude into the clockwise direction.

Parameters
ringLongitudeThe ring longitude to convert into the clockwise direction.
domainMust be an integer value of 180 (for -180 to 180) or 360 (for 0 to 360).
Exceptions
IException::Unknown- "The given ring longitude is invalid."
IException::Unknown- "Unable to convert ring longitude. Domain is not 180 or 360."
Returns
double The ring longitude value, in clockwise direction.

References _FILEINFO_, Isis::Null, Isis::RingPlaneProjection::To180Domain(), Isis::RingPlaneProjection::To360Domain(), Isis::toString(), and Isis::IException::Unknown.

◆ ToCounterClockwise()

double Isis::RingPlaneProjection::ToCounterClockwise ( const double  ringLongitude,
const int  domain 
)
staticinherited

This method converts an ring longitude into the counterclockwise direction.

Parameters
ringLongitudeThe ring Longitude to convert into the counterclockwise direction.
domainMust be an integer value of 180 (for -180 to 180) or 360 (for 0 to 360).
Exceptions
IException::Unknown- "The given ring longitude is invalid."
IException::Unknown- "Unable to convert ring longitude. Domain is not 180 or 360."
Returns
double The ring longitude value, in counterclockwise direction.

References _FILEINFO_, Isis::Null, Isis::RingPlaneProjection::To180Domain(), Isis::RingPlaneProjection::To360Domain(), and Isis::IException::Unknown.

◆ ToDMS()

QString Isis::Projection::ToDMS ( double  angle)
staticinherited

Converts the given angle (in degrees) to degrees, minutes, seconds.

Outputs in the form xxx yym zz.zzzs, for example, 206.291 degrees is 206 17m 27.6s

Parameters
angleAngle in degrees to be converted to degrees, minutes, seconds
Returns
string The angle in Degrees, minutes, seconds

◆ ToHMS()

QString Isis::Projection::ToHMS ( double  angle)
staticinherited

Converts the given angle (in degrees) to hours, minutes, seconds.

Outputs in the form xxh yym zz.zzzs For example, 206.291 will be 13h 45m 09.84s

Parameters
angleAngle in degrees to be converted to hours, minutes, seconds
Returns
string The angle in Hours, minutes, seconds

References Isis::Projection::ToHours().

◆ ToHours()

double Isis::Projection::ToHours ( double  angle)
staticinherited

Converts the given angle (in degrees) to hours by using the ratio 15 degrees per hour.

Parameters
angleAngle in degrees to be converted to hours
Returns
double The number of hours for the given angle.

Referenced by Isis::Projection::ToHMS().

◆ ToProjectionX()

double Isis::Projection::ToProjectionX ( const double  worldX) const
inherited

This method converts a world x value to a projection x value.

For example, if the world coordinate system is an image then this method converts a sample position to a projection x value. Note that if SetWorldMapper is not used then this routine simply returns the value of the argument. That is, no mapping occurs.

Parameters
worldXWorld x coordinate
Exceptions
IException::Unknown- "The given x-value is invalid."
Returns
double The projection X coordinate value.

References _FILEINFO_, Isis::Projection::m_mapper, Isis::Null, Isis::WorldMapper::ProjectionX(), and Isis::IException::Unknown.

Referenced by Isis::OverlapStatistics::OverlapStatistics(), Isis::ProcessMapMosaic::RingsSetOutputCube(), Isis::ProcessMapMosaic::SetOutputCube(), and Isis::ProcessMapMosaic::StartProcess().

◆ ToProjectionY()

double Isis::Projection::ToProjectionY ( const double  worldY) const
inherited

This method converts a world y value to a projection y value.

For example, if the world coordinate system is an image then this method converts a line position to a projection y value. Note that if SetWorldMapper is not used then this routine simply returns the value of the argument. That is, no mapping occurs.

Parameters
worldYWorld y coordinate
Exceptions
IException::Unknown- "The given y-value is invalid."
Returns
double The projection Y coordinate value.

References _FILEINFO_, Isis::Projection::m_mapper, Isis::Null, Isis::WorldMapper::ProjectionY(), and Isis::IException::Unknown.

Referenced by Isis::OverlapStatistics::OverlapStatistics(), Isis::ProcessMapMosaic::RingsSetOutputCube(), Isis::ProcessMapMosaic::SetOutputCube(), and Isis::ProcessMapMosaic::StartProcess().

◆ ToWorldX()

double Isis::Projection::ToWorldX ( const double  projectionX) const
inherited

This method converts a projection x value to a world x value.

For example, if the world coordinate system is an image then this method converts a projection x to a sample position. Note that if SetWorldMapper is not used then this routine simply returns the value of the argument. That is, no mapping occurs.

Parameters
projectionXProjection x value in meters
Exceptions
IException::Unknown- "The given x-value is invalid."
Returns
double The world X coordinate value.

References _FILEINFO_, Isis::Projection::m_mapper, Isis::Null, Isis::IException::Unknown, and Isis::WorldMapper::WorldX().

Referenced by Isis::OverlapStatistics::OverlapStatistics(), Isis::ProcessMapMosaic::RingsSetOutputCube(), Isis::ProcessMapMosaic::SetOutputCube(), and Isis::ProcessMapMosaic::StartProcess().

◆ ToWorldY()

double Isis::Projection::ToWorldY ( const double  projectionY) const
inherited

This method converts a projection y value to a world y value.

For example, if the world coordinate system is an image then this method converts a projection y to a line position. Note that if SetWorldMapper is not used then this routine simply returns the value of the argument. That is, no mapping occurs.

Parameters
projectionYProjection y value in meters
Exceptions
IException::Unknown- "The given y-value is invalid."
Returns
double The world Y coordinate value.

References _FILEINFO_, Isis::Projection::m_mapper, Isis::Null, Isis::IException::Unknown, and Isis::WorldMapper::WorldY().

Referenced by Isis::OverlapStatistics::OverlapStatistics(), Isis::ProcessMapMosaic::RingsSetOutputCube(), Isis::ProcessMapMosaic::SetOutputCube(), and Isis::ProcessMapMosaic::StartProcess().

◆ TrueScaleRingRadius()

double Isis::Planar::TrueScaleRingRadius ( ) const
virtual

Returns the center radius, in meters.

TODO: Correct this comment for planar projection, assuming right now scale at center of projection. (believe scale is uniform across planar projection)

NOTE In the case of Planar projections, there is NO radius that is entirely true to scale. The only true scale for this projection is at the single point, (center radius, center azimuth).

Returns
double The center radius.

Reimplemented from Isis::RingPlaneProjection.

◆ UniversalRingLongitude()

double Isis::RingPlaneProjection::UniversalRingLongitude ( )
inherited

This returns a universal ring longitude (clockwise in 0 to 360 domain).

The method can only be used if SetGround, SetCoordinate, SetUniversalGround, or SetWorld return with success. Success can also be checked using the IsGood method.

Returns
double The universal ring longitude.

References Isis::RingPlaneProjection::Clockwise, Isis::RingPlaneProjection::m_ringLongitude, Isis::RingPlaneProjection::m_ringLongitudeDirection, and Isis::RingPlaneProjection::To360Domain().

◆ UniversalRingRadius()

double Isis::RingPlaneProjection::UniversalRingRadius ( )
inherited

This returns a universal radius, which is just the radius in meters.

Returns
double The universal radius.

References Isis::RingPlaneProjection::m_ringRadius.

◆ Version()

QString Isis::Planar::Version ( ) const
virtual

Returns the version of the map projection.

Returns
string Version number

Implements Isis::RingPlaneProjection.

◆ WorldX()

double Isis::Projection::WorldX ( ) const
virtualinherited

This returns the world X coordinate provided SetGround, SetCoordinate, SetUniversalGround, or SetWorld returned with success.

Success can also be checked using the IsGood method. The units of X will be in the units as specified by the WorldMapper object which was given to the SetWorldMapper method. If a mapper object was not given then world coordinates are the same as the projection coordinates (i.e., WorldX and XCoord will return the same value).

Returns
double The world X coordinate.

References Isis::Projection::m_mapper, and Isis::WorldMapper::WorldX().

Referenced by Isis::Chip::Load(), Isis::DemShape::localRadius(), Isis::UniversalGroundMap::Sample(), Isis::Camera::SetRightAscensionDeclination(), and Isis::ProcessMapMosaic::StartProcess().

◆ WorldY()

double Isis::Projection::WorldY ( ) const
virtualinherited

This returns the world Y coordinate provided SetGround, SetCoordinate, SetUniversalGround, or SetWorld returned with success.

Success can also be checked using the IsGood method. The units of Y will be in the units as specified by the WorldMapper object which was given to the SetWorldMapper. If a mapper object was not given then world coordinates are the same as the projection coordinates (i.e., WorldY and YCoord will return the same value).

Returns
double The world Y coordinate.

References Isis::Projection::m_mapper, and Isis::WorldMapper::WorldY().

Referenced by Isis::UniversalGroundMap::Line(), Isis::Chip::Load(), Isis::DemShape::localRadius(), and Isis::Camera::SetRightAscensionDeclination().

◆ XCoord()

◆ XYRange()

bool Isis::Planar::XYRange ( double &  minX,
double &  maxX,
double &  minY,
double &  maxY 
)
virtual

This method is used to determine the x/y range which completely covers the area of interest specified by the radius/longitude range.

This range may be obtained from the labels. The purpose of this method is to return the x/y range so it can be used to compute how large a map may need to be. For example, how big a piece of paper is needed or how large of an image needs to be created. The method may fail as indicated by its return value.

Parameters
minXMinimum x projection coordinate which covers the radius/ longitude range specified in the labels.
maxXMaximum x projection coordinate which covers the radius/ longitude range specified in the labels.
minYMinimum y projection coordinate which covers the radius/ longitude range specified in the labels.
maxYMaximum y projection coordinate which covers the radius/ longitude range specified in the labels.
Returns
bool This method is used to determine the x/y range which completely covers the area of interest specified by the radius/longitude range. This range may be obtained from the labels. The purpose of this method is to return the x/y range so it can be used to compute how large a map may need to be. For example, how big a piece of paper is needed or how large of an image needs to be created. The method may fail as indicated by its return value.
Parameters
minXMinimum x projection coordinate which covers the radius/ longitude range specified in the labels.
maxXMaximum x projection coordinate which covers the radius/ longitude range specified in the labels.
minYMinimum y projection coordinate which covers the radius/ longitude range specified in the labels.
maxYMaximum y projection coordinate which covers the radius/ longitude range specified in the labels.
Returns
bool

Reimplemented from Isis::RingPlaneProjection.

References Isis::RingPlaneProjection::m_maximumRingLongitude, Isis::RingPlaneProjection::m_maximumRingRadius, Isis::Projection::m_maximumX, Isis::Projection::m_maximumY, Isis::RingPlaneProjection::m_minimumRingLongitude, Isis::RingPlaneProjection::m_minimumRingRadius, Isis::Projection::m_minimumX, Isis::Projection::m_minimumY, Isis::Projection::PixelResolution(), and Isis::RingPlaneProjection::XYRangeCheck().

◆ XYRangeCheck()

void Isis::RingPlaneProjection::XYRangeCheck ( const double  ringRadius,
const double  ringLongitude 
)
protectedvirtualinherited

This convience function is established to assist in the development of the XYRange virtual method.

It allows the developer to test ground points (ring radius/longitude) to see if they produce a minimum/maximum projection coordinate. For example in Planar,

bool Planar::XYRange(double &minX, double &maxX,
double &minY, double &maxY) {
// Check the corners of the ring rad/lon range
// If the ring longitude crosses 0/360 check there
XYRangeCheck (minimumRingRadius, 0. or 360.);
XYRangeCheck (maximumRingRadius, 0 or 360.);
}
// Make sure everything is ordered
if (m_minimumX >= m_maximumX) return false;
if (m_minimumY >= m_maximumY) return false;
// Return X/Y min/maxs
minX = m_minimumX;
maxX = m_maximumX;
minY = m_minimumY;
maxY = m_maximumY;
return true;
}
Parameters
ringRadiusTest for min/max projection coordinates at this radius
ringLongitudeTest for min/max projection coordinates at this ring longitude

Implements Isis::Projection.

References Isis::Projection::IsGood(), Isis::Projection::m_good, Isis::Projection::m_maximumX, Isis::Projection::m_maximumY, Isis::Projection::m_minimumX, Isis::Projection::m_minimumY, Isis::Null, Isis::RingPlaneProjection::SetGround(), Isis::Projection::XCoord(), and Isis::Projection::YCoord().

Referenced by XYRange(), and Isis::RingCylindrical::XYRange().

◆ YCoord()

Member Data Documentation

◆ m_good

bool Isis::Projection::m_good
protectedinherited

Indicates if the contents of m_x, m_y, m_latitude, and m_longitude are valid.

Referenced by Isis::Projection::IsGood(), Isis::Projection::Projection(), Isis::Projection::SetComputedXY(), Isis::Equirectangular::SetCoordinate(), Isis::LambertConformal::SetCoordinate(), Isis::LunarAzimuthalEqualArea::SetCoordinate(), Isis::Mercator::SetCoordinate(), Isis::Mollweide::SetCoordinate(), Isis::ObliqueCylindrical::SetCoordinate(), Isis::Orthographic::SetCoordinate(), SetCoordinate(), Isis::PointPerspective::SetCoordinate(), Isis::PolarStereographic::SetCoordinate(), Isis::RingCylindrical::SetCoordinate(), Isis::RingPlaneProjection::SetCoordinate(), Isis::Robinson::SetCoordinate(), Isis::SimpleCylindrical::SetCoordinate(), Isis::Sinusoidal::SetCoordinate(), Isis::TProjection::SetCoordinate(), Isis::TransverseMercator::SetCoordinate(), Isis::Equirectangular::SetGround(), Isis::LambertConformal::SetGround(), Isis::LunarAzimuthalEqualArea::SetGround(), Isis::Mercator::SetGround(), Isis::Mollweide::SetGround(), Isis::ObliqueCylindrical::SetGround(), Isis::Orthographic::SetGround(), Isis::PointPerspective::SetGround(), Isis::PolarStereographic::SetGround(), Isis::Robinson::SetGround(), Isis::SimpleCylindrical::SetGround(), Isis::Sinusoidal::SetGround(), Isis::TProjection::SetGround(), Isis::TransverseMercator::SetGround(), SetGround(), Isis::RingCylindrical::SetGround(), Isis::RingPlaneProjection::SetGround(), Isis::Projection::SetUnboundUniversalGround(), Isis::TProjection::SetUnboundUniversalGround(), Isis::Projection::SetUniversalGround(), Isis::TProjection::SetUniversalGround(), Isis::RingPlaneProjection::SetUniversalGround(), Isis::Projection::SetXY(), Isis::LambertConformal::XYRange(), Isis::TProjection::XYRangeCheck(), and Isis::RingPlaneProjection::XYRangeCheck().

◆ m_groundRangeGood

bool Isis::Projection::m_groundRangeGood
protectedinherited

◆ m_mapper

WorldMapper* Isis::Projection::m_mapper
protectedinherited

This points to a mapper passed into the SetWorldMapper method.

This mapper allows the programmer to specify a different world coordinate system. Thus the programmer could pass in line/sample positions in order to obtain a latitude/longitude or set a lat/lon and get a line/sample.

Referenced by Isis::Projection::Projection(), Isis::Projection::Resolution(), Isis::RingPlaneProjection::Scale(), Isis::TProjection::Scale(), Isis::Projection::SetWorld(), Isis::Projection::SetWorldMapper(), Isis::Projection::ToProjectionX(), Isis::Projection::ToProjectionY(), Isis::Projection::ToWorldX(), Isis::Projection::ToWorldY(), Isis::Projection::WorldX(), Isis::Projection::WorldY(), and Isis::Projection::~Projection().

◆ m_mappingGrp

PvlGroup Isis::Projection::m_mappingGrp
protectedinherited

Mapping group that created this projection.

Referenced by Isis::Equirectangular::Mapping(), Isis::LambertConformal::Mapping(), Isis::LunarAzimuthalEqualArea::Mapping(), Isis::Mercator::Mapping(), Isis::Mollweide::Mapping(), Isis::ObliqueCylindrical::Mapping(), Isis::Orthographic::Mapping(), Isis::PointPerspective::Mapping(), Isis::PolarStereographic::Mapping(), Isis::RingPlaneProjection::Mapping(), Isis::Robinson::Mapping(), Isis::SimpleCylindrical::Mapping(), Isis::Sinusoidal::Mapping(), Isis::TProjection::Mapping(), Isis::TransverseMercator::Mapping(), Isis::Equirectangular::MappingLatitudes(), Isis::LambertConformal::MappingLatitudes(), Isis::Mercator::MappingLatitudes(), Isis::Orthographic::MappingLatitudes(), Isis::PointPerspective::MappingLatitudes(), Isis::PolarStereographic::MappingLatitudes(), Isis::TProjection::MappingLatitudes(), Isis::TransverseMercator::MappingLatitudes(), Isis::Equirectangular::MappingLongitudes(), Isis::LambertConformal::MappingLongitudes(), Isis::Mercator::MappingLongitudes(), Isis::Mollweide::MappingLongitudes(), Isis::Orthographic::MappingLongitudes(), Isis::PointPerspective::MappingLongitudes(), Isis::PolarStereographic::MappingLongitudes(), Isis::Robinson::MappingLongitudes(), Isis::SimpleCylindrical::MappingLongitudes(), Isis::Sinusoidal::MappingLongitudes(), Isis::TProjection::MappingLongitudes(), Isis::TransverseMercator::MappingLongitudes(), MappingRingLongitudes(), Isis::RingCylindrical::MappingRingLongitudes(), Isis::RingPlaneProjection::MappingRingLongitudes(), MappingRingRadii(), Isis::RingCylindrical::MappingRingRadii(), Isis::RingPlaneProjection::MappingRingRadii(), Isis::Projection::Projection(), Isis::RingPlaneProjection::RingPlaneProjection(), Isis::Projection::SetUpperLeftCorner(), and Isis::TProjection::TProjection().

◆ m_maximumRingLongitude

double Isis::RingPlaneProjection::m_maximumRingLongitude
protectedinherited

◆ m_maximumRingRadius

double Isis::RingPlaneProjection::m_maximumRingRadius
protectedinherited

◆ m_maximumX

◆ m_maximumY

◆ m_minimumRingLongitude

double Isis::RingPlaneProjection::m_minimumRingLongitude
protectedinherited

◆ m_minimumRingRadius

double Isis::RingPlaneProjection::m_minimumRingRadius
protectedinherited

◆ m_minimumX

double Isis::Projection::m_minimumX
protectedinherited

The data elements m_minimumX, m_minimumY, m_maximumX, and m_maximumY are convience data elements when you write the XYRange virtual function.

They are used in conjuction with the XYRangeCheck convience method. After utilizing XYRangeCheck to test boundary conditions in the XYRange method these values will contain the projection x/y coverage for the ground range specified by min/max lat/lon.

Referenced by Isis::Projection::Projection(), Isis::Equirectangular::XYRange(), Isis::LambertConformal::XYRange(), Isis::LunarAzimuthalEqualArea::XYRange(), Isis::Mercator::XYRange(), Isis::Mollweide::XYRange(), Isis::Orthographic::XYRange(), XYRange(), Isis::PolarStereographic::XYRange(), Isis::RingCylindrical::XYRange(), Isis::Robinson::XYRange(), Isis::SimpleCylindrical::XYRange(), Isis::Sinusoidal::XYRange(), Isis::TransverseMercator::XYRange(), Isis::TProjection::XYRangeCheck(), Isis::RingPlaneProjection::XYRangeCheck(), and Isis::TProjection::xyRangeOblique().

◆ m_minimumY

◆ m_ringLongitude

◆ m_ringLongitudeDirection

◆ m_ringLongitudeDomain

int Isis::RingPlaneProjection::m_ringLongitudeDomain
protectedinherited

This integer is either 180 or 360 and is read from the labels.

It represents the ring longitude domain when returning values through RingLongitude() method. The domain is either -180 to 180 or 0 to 360.

Referenced by Isis::RingPlaneProjection::Has180Domain(), Isis::RingPlaneProjection::Has360Domain(), Isis::RingPlaneProjection::RingLongitudeDomainString(), Isis::RingPlaneProjection::RingPlaneProjection(), SetCoordinate(), and Isis::RingPlaneProjection::SetUniversalGround().

◆ m_ringRadius

◆ m_sky

bool Isis::Projection::m_sky
protectedinherited

Indicates whether projection is sky or land.

Referenced by Isis::Projection::IsSky(), and Isis::Projection::Projection().


The documentation for this class was generated from the following files:
Isis::RingPlaneProjection::m_maximumRingLongitude
double m_maximumRingLongitude
Contains the maximum longitude for the entire ground range.
Definition: RingPlaneProjection.h:290
Isis::Projection::m_minimumY
double m_minimumY
See minimumX description.
Definition: Projection.h:327
Isis::RingPlaneProjection::m_maximumRingRadius
double m_maximumRingRadius
Contains the maximum ring radius for the entire ground range.
Definition: RingPlaneProjection.h:284
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::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::RingPlaneProjection::m_minimumRingRadius
double m_minimumRingRadius
Contains the minimum ring radius for the entire ground range.
Definition: RingPlaneProjection.h:281
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::Projection::m_maximumX
double m_maximumX
See minimumX description.
Definition: Projection.h:326
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