20 int size = list.size();
21 for(
int i = 0; i < size; i++) {
31 QString msg =
"Can't open or invalid file list [" +
53 int index = mqCpList.indexOf(QString(psCpId));
55 if(index == -1 || index >=
Size())
69 return mqCpList.size();
82 if(piIndex >= 0 && piIndex < size) {
83 return (mqCpList.value(piIndex));
87 QString msg =
"Index [" + num +
"] is invalid";
101 return mqCpList.indexOf(QString(psCpId));
104 QString msg =
"Requested control point id [" + psCpId +
"] ";
105 msg +=
"does not exist in the list";
119 QString sPointsNotFound =
"";
121 for(
int i = 0; i < size; i++) {
124 sPointsNotFound +=
", ";
126 sPointsNotFound += mqCpList.value(i);
QVector< bool > mbFound
holds one to one correspondence with "mqCpList" on whether the point was valid
void RegisterStatistics(Pvl &pcPvlLog)
Register invalid control point and calculate the valid & invalid point count.
File name manipulation and expansion.
QString ControlPointId(int piIndex)
Return a control point id given an index.
Internalizes a list of files.
QString toString(bool boolToConvert)
Global function to convert a boolean to a string.
This error is for when a programmer made an API call that was illegal.
ControlPointList(const FileName &psFileName)
Creates a ControlPointList from a list of control point ids'.
virtual ~ControlPointList()
Destructor.
#define _FILEINFO_
Macro for the filename and line number.
A type of error that could only have occurred due to a mistake on the user's part (e...
A single keyword-value pair.
QString expanded() const
Returns a QString of the full file name including the file path, excluding the attributes.
Container for cube-like labels.
int Size() const
How many control points in the list.
bool HasControlPoint(const QString &psCpId)
Determines whether or not the requested control point id exists in the list.
Namespace for ISIS/Bullet specific routines.
int ControlPointIndex(const QString &psCpId)
return a list index given a control point id