USGS

Isis 3.0 Application Source Code Reference

Home

mapgrid.cpp File Reference

Go to the source code of this file.

Functions

void StartNewLine (std::ofstream &os)
 This will prepare a new line start in GML.
void AddPointToLine (std::ofstream &os, const double x, const double y)
 This will add a point to a line started with StartNewLine.
void EndLine (std::ofstream &os)
 This will end a line in GML.
void CheckContinuous (double latlon, double latlon_start, double X, double Y, double lastX, double lastY, double maxChange, std::ofstream &os)
void IsisMain ()


Function Documentation

void StartNewLine ( std::ofstream &  os  ) 

This will prepare a new line start in GML.

This should be called every time a new line is started and generates unique IDs for each line.

Parameters:
os output file stream

Definition at line 195 of file mapgrid.cpp.

void AddPointToLine ( std::ofstream &  os,
const double  x,
const double  y 
)

This will add a point to a line started with StartNewLine.

StartNewLine must be called before using this method, and EndLine after all of the points in the line have been added.

Parameters:
os output file stream
x x coordinate
y y coordinate

Definition at line 215 of file mapgrid.cpp.

void EndLine ( std::ofstream &  os  ) 

This will end a line in GML.

This should be called after each line has the necessary points added using AddPointToLine.

Parameters:
os output file stream

Definition at line 225 of file mapgrid.cpp.

void CheckContinuous ( double  latlon,
double  latlon_start,
double  X,
double  Y,
double  lastX,
double  lastY,
double  maxChange,
std::ofstream &  os 
)

void IsisMain (  ) 

Definition at line 17 of file mapgrid.cpp.