31 class UniversalGroundMap;
106 unsigned int &x,
unsigned int &y);
111 void SetGridBit(
unsigned int x,
unsigned int y,
bool latGrid);
112 bool GetGridBit(
unsigned int x,
unsigned int y,
bool latGrid);
113 void DrawLineOnGrid(
unsigned int x1,
unsigned int y1,
114 unsigned int x2,
unsigned int y2,
119 char *p_latLinesGrid;
120 char *p_lonLinesGrid;
121 unsigned int p_width;
122 unsigned int p_height;
123 unsigned long p_gridSize;
134 double p_defaultResolution;
Universal Ground Map.
Definition: UniversalGroundMap.h:83
PvlGroup * GetMappingGroup()
Returns a mapping group representation of the projection or camera.
Definition: GroundGrid.cpp:520
void CreateGrid(Latitude baseLat, Longitude baseLon, Angle latInc, Angle lonInc, Progress *progress=0)
This method draws the grid internally, using default resolutions.
Definition: GroundGrid.cpp:208
This class is designed to encapsulate the concept of a Latitude.
Definition: Latitude.h:59
UniversalGroundMap * GroundMap()
Returns the ground map for children.
Definition: GroundGrid.cpp:555
This class is designed to encapsulate the concept of a Longitude.
Definition: Longitude.h:52
Calculates a lat/lon grid over an area.
Definition: GroundGrid.h:69
Program progress reporter.
Definition: Progress.h:58
GroundGrid(UniversalGroundMap *gmap, bool splitLatLon, unsigned int width, unsigned int height)
This method initializes the class by allocating the grid, calculating the lat/lon range...
Definition: GroundGrid.cpp:32
Contains multiple PvlContainers.
Definition: PvlGroup.h:57
Defines an angle and provides unit conversions.
Definition: Angle.h:58
virtual ~GroundGrid()
Delete the object.
Definition: GroundGrid.cpp:157
void WalkBoundary()
This draws grid lines along the extremes of the lat/lon box of the grid.
Definition: GroundGrid.cpp:416
bool PixelOnGrid(int x, int y)
Returns true if the grid is on this point.
Definition: GroundGrid.cpp:503
virtual bool GetXY(Latitude lat, Longitude lon, unsigned int &x, unsigned int &y)
This method converts a lat/lon to an X/Y.
Definition: GroundGrid.cpp:535
void SetGroundLimits(Latitude minLat, Longitude minLon, Latitude maxLat, Longitude maxLon)
This restricts (or grows) the ground range in which to draw grid lines.
Definition: GroundGrid.cpp:393