USGS

Isis 3.0 Application Source Code Reference

Home

cnetextract.cpp File Reference

Go to the source code of this file.

Functions

void ExtractPointList (ControlNet &outNet, QVector< iString > nonListedPoints)
 Removes control points not listed in POINTLIST.
void ExtractLatLonRange (ControlNet &outNet, QVector< iString > nonLatLonPoints, QVector< iString > cannotGenerateLatLonPoints, QMap< iString, iString > sn2filename)
 Removes control points not in the lat/lon range provided in the unput parameters.
bool NotInLatLonRange (SurfacePoint surfacePtToTest, Latitude minlat, Latitude maxlat, Longitude minlon, Longitude maxlon)
 Checks for correct lat/lon range, handling the meridian correctly.
void WriteCubeOutList (ControlNet cnet, QMap< iString, iString > sn2file)
 Finds and writes all input cubes contained within the given Control Network to the output file list.
void WriteResults (iString filename, QVector< iString > results)
 Places the output.
void omit (ControlNet &cnet, int cp)
void omit (ControlPoint *point, int cm)
void IsisMain ()

Function Documentation

void ExtractPointList ( ControlNet &  outNet,
QVector< iString >  nonListedPoints 
)

Removes control points not listed in POINTLIST.

Parameters:
outNet The output control net being removed from
nonListedPoints The keyword recording all of the control points removed due to not being listed

Definition at line 474 of file cnetextract.cpp.

void ExtractLatLonRange ( ControlNet &  outNet,
QVector< iString >  nonLatLonPoints,
QVector< iString >  cannotGenerateLatLonPoints,
QMap< iString, iString >  sn2filename 
)

Removes control points not in the lat/lon range provided in the unput parameters.

Parameters:
outNet The output control net being removed from
noLanLonPoint The keyword recording all of the control points removed due to the provided lat/lon range
noLanLonPoint The keyword recording all of the control points removed due to the inability to calculate the lat/lon for that point

If the lat/lon cannot be determined from the point, then we need to calculate lat/lon on our own

Definition at line 505 of file cnetextract.cpp.

bool NotInLatLonRange ( SurfacePoint  surfacePtToTest,
Latitude  minlat,
Latitude  maxlat,
Longitude  minlon,
Longitude  maxlon 
)

Checks for correct lat/lon range, handling the meridian correctly.

Parameters:
lat The latitude to check
lon The longitude to check
minlat Minimum Latitude Minimum valid latitude
maxlat Maximum Latitude Maximum valid latitude
minlon Minimum Longitude Minimum valid longitude
maxlon Maximum Longitude Maximum valid longitude
Returns:
bool True when the range is valid

Definition at line 661 of file cnetextract.cpp.

void WriteCubeOutList ( ControlNet  cnet,
QMap< iString, iString >  sn2file 
)

Finds and writes all input cubes contained within the given Control Network to the output file list.

Parameters:
cnet The Control Network to list the filenames contained within
sn2file The map for converting the Control Network's serial numbers to filenames

Definition at line 687 of file cnetextract.cpp.

void WriteResults ( iString  filename,
QVector< iString >  results 
)

Places the output.

Parameters:
filename The file to write the vector of results to
results A vector of points and/or measures not extracted

Definition at line 734 of file cnetextract.cpp.

void omit ( ControlNet &  cnet,
int  cp 
)

Definition at line 753 of file cnetextract.cpp.

void omit ( ControlPoint *  point,
int  cm 
)

Definition at line 760 of file cnetextract.cpp.

void IsisMain (  ) 

Finished with simple comparisons

Use another pass to check for Ids

Use another pass on outNet, because this is by far the most time consuming process, and time could be saved by using the reduced size of outNet

Definition at line 46 of file cnetextract.cpp.