|
Isis Developer Reference
|
Go to the documentation of this file. 1 #ifndef UniversalGroundMap_h
2 #define UniversalGroundMap_h
99 bool SetImage(
double sample,
double line);
107 bool allowEstimation =
true);
116 return p_projection != 0;
127 return p_camera != 0;
virtual void SetBand(const int band)
Virtual method that sets the band number.
Definition: Camera.cpp:2680
@ Degrees
Degrees are generally considered more human readable, 0-360 is one circle, however most math does not...
Definition: Angle.h:56
@ ProjectionFirst
Use the projection for functionality well outside the original image if available,...
Definition: UniversalGroundMap.h:85
static Camera * Create(Cube &cube)
Creates a Camera object using Pvl Specifications.
Definition: CameraFactory.cpp:45
ShapeModel * shape() const
Return the shape.
Definition: Target.cpp:655
virtual QString fileName() const
Returns the opened cube's filename.
Definition: Cube.cpp:1563
Universal Ground Map.
Definition: UniversalGroundMap.h:69
double Sample() const
Returns the current line value of the camera model or projection.
Definition: UniversalGroundMap.cpp:200
double UniversalLatitude() const
Returns the universal latitude of the camera model or projection.
Definition: UniversalGroundMap.cpp:247
A single keyword-value pair.
Definition: PvlKeyword.h:82
~UniversalGroundMap()
Destroys the UniversalGroundMap object.
Definition: UniversalGroundMap.cpp:80
double Resolution() const
This method returns the resolution for mapping world coordinates into projection coordinates.
Definition: Projection.cpp:675
This class is designed to encapsulate the concept of a Latitude.
Definition: Latitude.h:51
virtual double UniversalLatitude()
This returns a universal latitude (planetocentric).
Definition: TProjection.cpp:908
virtual bool SetImage(const double sample, const double line)
Sets the sample/line values of the image to get the lat/lon values.
Definition: Camera.cpp:154
bool SetGround(Latitude lat, Longitude lon)
Returns whether the lat/lon position was set successfully in the camera model or projection.
Definition: UniversalGroundMap.cpp:127
virtual double Sample() const
Returns the current sample number.
Definition: Camera.cpp:2690
@ Unknown
A type of error that cannot be classified as any of the other error types.
Definition: IException.h:118
ImagePolygon readFootprint() const
Read the footprint polygon for the Cube.
Definition: Cube.cpp:866
double RingLongitude() const
This returns a ring longitude with correct ring longitude direction and domain as specified in the la...
Definition: RingPlaneProjection.cpp:530
QString name() const
Gets the shape name.
Definition: ShapeModel.cpp:543
ProjectionType projectionType() const
Returns an enum value for the projection type.
Definition: Projection.cpp:198
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
Latitude GetLatitude() const
Return the body-fixed latitude for the surface point.
Definition: SurfacePoint.cpp:1665
Create cube polygons, read/write polygons to blobs.
Definition: ImagePolygon.h:153
Isis::Camera * Camera() const
Return the camera associated with the ground map (NULL implies none)
Definition: UniversalGroundMap.h:136
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:417
virtual bool SetGround(Latitude latitude, Longitude longitude)
Sets the lat/lon values to get the sample/line values.
Definition: Camera.cpp:401
void append(const IException &exceptionSource)
Appends the given exception (and its list of previous exceptions) to this exception's causational exc...
Definition: IException.cpp:409
This class is designed to encapsulate the concept of a Longitude.
Definition: Longitude.h:40
virtual Target * target() const
Returns a pointer to the target object.
Definition: Spice.cpp:1368
virtual double WorldY() const
This returns the world Y coordinate provided SetGround, SetCoordinate, SetUniversalGround,...
Definition: Projection.cpp:544
bool InCube()
This returns true if the current Sample() or Line() value is outside of the cube (meaning the point m...
Definition: Camera.cpp:2619
Base class for Map Projections of plane shapes.
Definition: RingPlaneProjection.h:147
Contains multiple PvlContainers.
Definition: PvlGroup.h:41
virtual double UniversalLongitude() const
Returns the positive east, 0-360 domain longitude, in degrees, at the surface intersection point in t...
Definition: Sensor.cpp:233
int lineCount() const
Definition: Cube.cpp:1734
#define _FILEINFO_
Macro for the filename and line number.
Definition: IException.h:24
bool HasCamera()
Returns whether the ground map has a camera or not.
Definition: UniversalGroundMap.h:126
double RingRadius() const
This returns a radius.
Definition: RingPlaneProjection.cpp:506
Base class for Map TProjections.
Definition: TProjection.h:166
virtual PvlGroup Mapping()=0
virtual bool SetUniversalGround(const double latitude, const double longitude)
Sets the lat/lon values to get the sample/line values.
Definition: Camera.cpp:380
@ RingPlane
These projections are used to map ring planes.
Definition: Projection.h:168
int sampleCount() const
Definition: Cube.cpp:1807
@ CameraFirst
This is the default because cameras are projection-aware.
Definition: UniversalGroundMap.h:80
virtual double WorldX() const
This returns the world X coordinate provided SetGround, SetCoordinate, SetUniversalGround,...
Definition: Projection.cpp:524
bool HasProjection()
Returns whether the ground map has a projection or not.
Definition: UniversalGroundMap.h:115
IO Handler for Isis Cubes.
Definition: Cube.h:167
Isis exception class.
Definition: IException.h:91
virtual bool SetWorld(const double x, const double y)
This method is used to set a world coordinate.
Definition: Projection.cpp:497
CameraPriority
This enum is used to define whether to use a camera or projection primarily, and which to fall back o...
Definition: UniversalGroundMap.h:75
Longitude GetLongitude() const
Return the body-fixed longitude for the surface point.
Definition: SurfacePoint.cpp:1685
static Isis::Projection * CreateFromCube(Isis::Cube &cube)
This method is a helper method.
Definition: ProjectionFactory.cpp:1069
UniversalGroundMap(Cube &cube, CameraPriority priority=CameraFirst)
Constructs a UniversalGroundMap object from a cube.
Definition: UniversalGroundMap.cpp:33
Isis::Projection * Projection() const
Return the projection associated with the ground map (NULL implies none)
Definition: UniversalGroundMap.h:131
double Resolution() const
Returns the resolution of the camera model or projection.
Definition: UniversalGroundMap.cpp:294
bool isValid() const
This indicates whether we have a legitimate angle stored or are in an unset, or invalid,...
Definition: Angle.cpp:95
virtual double PixelResolution()
Returns the pixel resolution at the current position in meters/pixel.
Definition: Camera.cpp:670
Pvl * label() const
Returns a pointer to the IsisLabel object associated with the cube.
Definition: Cube.cpp:1701
virtual double UniversalLongitude()
This returns a universal longitude (positive east in 0 to 360 domain).
Definition: TProjection.cpp:922
bool GroundRange(double &minlat, double &maxlat, double &minlon, double &maxlon, Pvl &pvl)
Computes the Ground Range.
Definition: Camera.cpp:1182
bool SetUnboundGround(Latitude lat, Longitude lon)
Returns whether the lat/lon position was set successfully in the camera model or projection.
Definition: UniversalGroundMap.cpp:154
double degrees() const
Get the angle in units of Degrees.
Definition: Angle.h:232
bool SetUniversalGround(double lat, double lon)
Returns whether the lat/lon position was set successfully in the camera model or projection.
Definition: UniversalGroundMap.cpp:102
@ Triaxial
These projections are used to map triaxial and irregular-shaped bodies.
Definition: Projection.h:166
bool SetImage(double sample, double line)
Returns whether the sample/line postion was set successfully in the camera model or projection.
Definition: UniversalGroundMap.cpp:233
virtual double Line() const
Returns the current line number.
Definition: Camera.cpp:2710
bool GroundRange(Cube *cube, Latitude &minLat, Latitude &maxLat, Longitude &minLon, Longitude &maxLon, bool allowEstimation=true)
Find the lat/lon range of the image.
Definition: UniversalGroundMap.cpp:320
Base class for Map Projections.
Definition: Projection.h:155
double Line() const
Returns the current line value of the camera model or projection.
Definition: UniversalGroundMap.cpp:214
ProjectionType
This enum defines the subclasses of Projection supported in Isis.
Definition: Projection.h:166
This class defines a body-fixed surface point.
Definition: SurfacePoint.h:132
geos::geom::MultiPolygon * Polys()
Return a geos Multipolygon.
Definition: ImagePolygon.h:210
double UniversalLongitude() const
Returns the universal longitude of the camera model or projection.
Definition: UniversalGroundMap.cpp:270
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16
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:446
void SetBand(const int band)
Set the image band number.
Definition: UniversalGroundMap.cpp:72
virtual double UniversalLatitude() const
Returns the planetocentric latitude, in degrees, at the surface intersection point in the body fixed ...
Definition: Sensor.cpp:210