31 class UniversalGroundMap;
116 unsigned int &x,
unsigned int &y);
121 void SetGridBit(
unsigned int x,
unsigned int y,
bool latGrid);
122 bool GetGridBit(
unsigned int x,
unsigned int y,
bool latGrid);
123 void DrawLineOnGrid(
unsigned int x1,
unsigned int y1,
124 unsigned int x2,
unsigned int y2,
129 char *p_latLinesGrid;
130 char *p_lonLinesGrid;
131 unsigned int p_width;
132 unsigned int p_height;
133 unsigned long p_gridSize;
144 double p_defaultResolution;
GroundGrid(UniversalGroundMap *gmap, bool splitLatLon, bool extendGrid, unsigned int width, unsigned int height)
This method initializes the class by allocating the grid, calculating the lat/lon range...
Definition: GroundGrid.cpp:34
Universal Ground Map.
Definition: UniversalGroundMap.h:85
PvlGroup * GetMappingGroup()
Returns a mapping group representation of the projection or camera.
Definition: GroundGrid.cpp:540
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:212
This class is designed to encapsulate the concept of a Latitude.
Definition: Latitude.h:63
UniversalGroundMap * GroundMap()
Returns the ground map for children.
Definition: GroundGrid.cpp:637
Latitude maxLatitude() const
Returns the maximum latitude for the grid.
Definition: GroundGrid.cpp:579
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:73
Program progress reporter.
Definition: Progress.h:58
Contains multiple PvlContainers.
Definition: PvlGroup.h:57
Defines an angle and provides unit conversions.
Definition: Angle.h:62
virtual ~GroundGrid()
Delete the object.
Definition: GroundGrid.cpp:161
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31
Longitude maxLongitude() const
Returns the maximum longitude for the grid.
Definition: GroundGrid.cpp:593
void WalkBoundary()
This draws grid lines along the extremes of the lat/lon box of the grid.
Definition: GroundGrid.cpp:428
bool PixelOnGrid(int x, int y)
Returns true if the grid is on this point.
Definition: GroundGrid.cpp:523
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:612
Latitude minLatitude() const
Returns the minimum latitude for the grid.
Definition: GroundGrid.cpp:551
Longitude minLongitude() const
Returns the minimum longitude for the grid.
Definition: GroundGrid.cpp:565
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:405