202 virtual QString
Name()
const = 0;
213 virtual QString
Version()
const = 0;
237 virtual bool SetGround(
const double lat,
const double lon) = 0;
238 virtual bool SetCoordinate(
const double x,
const double y) = 0;
251 bool SetWorld(
const double x,
const double y);
258 double ToWorldX(
const double projectionX)
const;
259 double ToWorldY(
const double projectionY)
const;
267 virtual double Scale()
const = 0;
270 virtual bool XYRange(
double &minX,
double &maxX,
271 double &minY,
double &maxY) = 0;
280 static double ToHours(
double angle);
281 static QString
ToDMS(
double angle);
282 static QString
ToHMS(
double angle);
285 virtual void XYRangeCheck(
const double latitude,
const double longitude) = 0;
288 void SetXY(
double x,
double y);
360 double m_pixelResolution;
virtual bool SetCoordinate(const double x, const double y)=0
WorldMapper * m_mapper
This points to a mapper passed into the SetWorldMapper method.
Definition: Projection.h:308
ProjectionType projectionType() const
Returns an enum value for the projection type.
Definition: Projection.cpp:213
virtual QString Version() const =0
This method returns the Version of the map projection.
bool m_sky
Indicates whether projection is sky or land.
Definition: Projection.h:326
bool operator!=(const Projection &proj)
This method determines whether two map projection objects are not equal.
Definition: Projection.cpp:193
double Rotation() const
Returns the value of the Rotation keyword from the mapping group.
Definition: Projection.cpp:374
double ToProjectionX(const double worldX) const
This method converts a world x value to a projection x value.
Definition: Projection.cpp:637
double PixelResolution() const
Returns the pixel resolution value from the PVL mapping group in meters/pixel.
Definition: Projection.cpp:855
virtual bool SetUnboundUniversalGround(const double coord1, const double coord2)
This method is used to set the lat/lon or radius/azimuth (i.e.
Definition: Projection.cpp:461
Projection(Pvl &label)
Constructs an empty Projection object.
Definition: Projection.cpp:106
virtual void XYRangeCheck(const double latitude, const double longitude)=0
void SetWorldMapper(WorldMapper *mapper)
If desired the programmer can use this method to set a world mapper to be used in the SetWorld...
Definition: Projection.cpp:489
double GetX() const
Calculates the unrotated form of current x value.
Definition: Projection.cpp:833
double Resolution() const
This method returns the resolution for mapping world coordinates into projection coordinates.
Definition: Projection.cpp:690
bool IsGood() const
This indicates if the last invocation of SetGround, SetCoordinate, SetUniversalGround, or SetWorld was with successful or not.
Definition: Projection.cpp:389
double XCoord() const
This returns the projection X provided SetGround, SetCoordinate, SetUniversalGround, or SetWorld returned with success.
Definition: Projection.cpp:402
double m_minimumX
The data elements m_minimumX, m_minimumY, m_maximumX, and m_maximumY are convience data elements when...
Definition: Projection.h:333
static QString ToHMS(double angle)
Converts the given angle (in degrees) to hours, minutes, seconds.
Definition: Projection.cpp:756
void SetComputedXY(double x, double y)
This protected method is a helper for derived classes.
Definition: Projection.cpp:795
virtual PvlGroup Mapping()=0
double m_maximumY
See minimumX description.
Definition: Projection.h:344
virtual ~Projection()
Destroys the Projection object.
Definition: Projection.cpp:163
double WorldX() const
This returns the world X coordinate provided SetGround, SetCoordinate, SetUniversalGround, or SetWorld returned with success.
Definition: Projection.cpp:539
double ToWorldX(const double projectionX) const
This method converts a projection x value to a world x value.
Definition: Projection.cpp:581
Base class for Map Projections.
Definition: Projection.h:171
double m_minimumY
See minimumX description.
Definition: Projection.h:343
These projections are used to map ring planes.
Definition: Projection.h:184
bool HasGroundRange() const
This indicates if the longitude direction type is positive west (as opposed to postive east)...
Definition: Projection.cpp:364
Contains multiple PvlContainers.
Definition: PvlGroup.h:57
void setProjectionType(const ProjectionType ptype)
Sets the projection subclass type.
Definition: Projection.cpp:203
bool m_groundRangeGood
Indicates if the ground range (min/max lat/lons) were read from the labels.
Definition: Projection.h:329
bool IsSky() const
Returns true if projection is sky and false if it is land.
Definition: Projection.cpp:223
double ToProjectionY(const double worldY) const
This method converts a world y value to a projection y value.
Definition: Projection.cpp:665
double YCoord() const
This returns the projection Y provided SetGround, SetCoordinate, SetUniversalGround, or SetWorld returned with success.
Definition: Projection.cpp:415
virtual double Scale() const =0
Container for cube-like labels.
Definition: Pvl.h:135
virtual bool SetGround(const double lat, const double lon)=0
void SetUpperLeftCorner(const Displacement &x, const Displacement &y)
This method is used to find the XY range for oblique aspect projections (non-polar projections) by "w...
Definition: Projection.cpp:1388
bool m_good
Indicates if the contents of m_x, m_y, m_latitude, and m_longitude are valid.
Definition: Projection.h:316
bool SetWorld(const double x, const double y)
This method is used to set a world coordinate.
Definition: Projection.cpp:512
virtual bool XYRange(double &minX, double &maxX, double &minY, double &maxY)=0
virtual double LocalRadius() const =0
Create a mapping between a projection and other coordinate system.
Definition: WorldMapper.h:54
virtual bool operator==(const Projection &proj)
This method determines whether two map projection objects are equal by comparing the resolution...
Definition: Projection.cpp:177
static QString ToDMS(double angle)
Converts the given angle (in degrees) to degrees, minutes, seconds.
Definition: Projection.cpp:721
Displacement is a signed length, usually in meters.
Definition: Displacement.h:43
virtual bool SetUniversalGround(const double coord1, const double coord2)
This method is used to set the lat/lon or radius/azimuth (i.e.
Definition: Projection.cpp:432
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31
static double ToHours(double angle)
Converts the given angle (in degrees) to hours by using the ratio 15 degrees per hour.
Definition: Projection.cpp:708
double ToWorldY(const double projectionY) const
This method converts a projection y value to a world y value.
Definition: Projection.cpp:609
double GetY() const
Calculates the unrotated form of the current y value.
Definition: Projection.cpp:844
void SetXY(double x, double y)
This protected method is a helper for derived classes.
Definition: Projection.cpp:819
virtual bool IsEquatorialCylindrical()
This method returns true if the projection is equatorial cylindrical.
Definition: Projection.cpp:237
ProjectionType
This enum defines the subclasses of Projection supported in Isis.
Definition: Projection.h:182
virtual QString Name() const =0
This method returns the name of the map projection.
double m_maximumX
See minimumX description.
Definition: Projection.h:342
double WorldY() const
This returns the world Y coordinate provided SetGround, SetCoordinate, SetUniversalGround, or SetWorld returned with success.
Definition: Projection.cpp:559
PvlGroup m_mappingGrp
Mapping group that created this projection.
Definition: Projection.h:345
These projections are used to map triaxial and irregular-shaped bodies.
Definition: Projection.h:182