|
Isis 3 Programmer Reference
|
186 virtual QString
Name()
const = 0;
189 virtual double LocalRadius()
const = 0;
221 virtual bool SetGround(
const double lat,
const double lon) = 0;
222 virtual bool SetCoordinate(
const double x,
const double y) = 0;
235 virtual bool SetWorld(
const double x,
const double y);
238 virtual double WorldX()
const;
239 virtual double WorldY()
const;
242 double ToWorldX(
const double projectionX)
const;
243 double ToWorldY(
const double projectionY)
const;
251 virtual double Scale()
const = 0;
254 virtual bool XYRange(
double &minX,
double &maxX,
255 double &minY,
double &maxY) = 0;
264 static double ToHours(
double angle);
265 static QString
ToDMS(
double angle);
266 static QString
ToHMS(
double angle);
269 virtual void XYRangeCheck(
const double latitude,
const double longitude) = 0;
272 void SetXY(
double x,
double y);
bool m_sky
Indicates whether projection is sky or land.
WorldMapper * m_mapper
This points to a mapper passed into the SetWorldMapper method.
virtual QString Version() const =0
This method returns the Version of the map projection.
double Resolution() const
This method returns the resolution for mapping world coordinates into projection coordinates.
Projection(Pvl &label)
Constructs an empty Projection object.
void SetUpperLeftCorner(const Displacement &x, const Displacement &y)
This method searches for extreme (min/max/discontinuity) coordinate values along the constBorder line...
double m_pixelResolution
Pixel resolution value from the PVL mapping group, in meters/pixel.
double Rotation() const
Returns the value of the Rotation keyword from the mapping group.
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.
double ToProjectionY(const double worldY) const
This method converts a world y value to a projection y value.
virtual QString Name() const =0
This method returns the name of the map projection.
ProjectionType projectionType() const
Returns an enum value for the projection type.
Container for cube-like labels.
void SetXY(double x, double y)
This protected method is a helper for derived classes.
double m_y
This contains the rotated Y coordinate for a specific projection at the position indicated by m_latit...
void SetWorldMapper(WorldMapper *mapper)
If desired the programmer can use this method to set a world mapper to be used in the SetWorld,...
virtual bool SetUniversalGround(const double coord1, const double coord2)
This method is used to set the lat/lon or radius/azimuth (i.e.
PvlGroup m_mappingGrp
Mapping group that created this projection.
bool operator!=(const Projection &proj)
This method determines whether two map projection objects are not equal.
double GetY() const
Calculates the unrotated form of the current y value.
void setProjectionType(const ProjectionType ptype)
Sets the projection subclass type.
Displacement is a signed length, usually in meters.
virtual double WorldY() const
This returns the world Y coordinate provided SetGround, SetCoordinate, SetUniversalGround,...
bool IsGood() const
This indicates if the last invocation of SetGround, SetCoordinate, SetUniversalGround,...
double m_minimumX
The data elements m_minimumX, m_minimumY, m_maximumX, and m_maximumY are convience data elements when...
virtual bool IsEquatorialCylindrical()
This method returns true if the projection is equatorial cylindrical.
Contains multiple PvlContainers.
bool m_good
Indicates if the contents of m_x, m_y, m_latitude, and m_longitude are valid.
Create a mapping between a projection and other coordinate system.
double ToWorldY(const double projectionY) const
This method converts a projection y value to a world y value.
@ RingPlane
These projections are used to map ring planes.
virtual double WorldX() const
This returns the world X coordinate provided SetGround, SetCoordinate, SetUniversalGround,...
double m_rotation
Rotation of map (usually zero)
virtual bool SetWorld(const double x, const double y)
This method is used to set a world coordinate.
bool m_groundRangeGood
Indicates if the ground range (min/max lat/lons) were read from the labels.
virtual bool operator==(const Projection &proj)
This method determines whether two map projection objects are equal by comparing the resolution,...
void SetComputedXY(double x, double y)
This protected method is a helper for derived classes.
double ToWorldX(const double projectionX) const
This method converts a projection x value to a world x value.
double ToProjectionX(const double worldX) const
This method converts a world x value to a projection x value.
virtual ~Projection()
Destroys the Projection object.
double m_x
This contains the rotated X coordinate for a specific projection at theposition indicated by m_latitu...
static QString ToDMS(double angle)
Converts the given angle (in degrees) to degrees, minutes, seconds.
@ Triaxial
These projections are used to map triaxial and irregular-shaped bodies.
bool IsSky() const
Returns true if projection is sky and false if it is land.
static double ToHours(double angle)
Converts the given angle (in degrees) to hours by using the ratio 15 degrees per hour.
double YCoord() const
This returns the projection Y provided SetGround, SetCoordinate, SetUniversalGround,...
double m_maximumY
See minimumX description.
Base class for Map Projections.
double m_maximumX
See minimumX description.
static QString ToHMS(double angle)
Converts the given angle (in degrees) to hours, minutes, seconds.
ProjectionType
This enum defines the subclasses of Projection supported in Isis.
double XCoord() const
This returns the projection X provided SetGround, SetCoordinate, SetUniversalGround,...
virtual bool HasGroundRange() const
This indicates if the longitude direction type is positive west (as opposed to postive east).
This is free and unencumbered software released into the public domain.
virtual bool SetUnboundUniversalGround(const double coord1, const double coord2)
This method is used to set the lat/lon or radius/azimuth (i.e.