Isis 3 Programmer Reference
Isis::ControlPointList Class Reference

Control Point List generator. More...

#include <ControlPointList.h>

Collaboration diagram for Isis::ControlPointList:
Collaboration graph

Public Member Functions

 ControlPointList (const FileName &psFileName)
 Creates a ControlPointList from a list of control point ids'.
 
virtual ~ControlPointList ()
 Destructor.
 
QString ControlPointId (int piIndex)
 Return a control point id given an index.
 
int ControlPointIndex (const QString &psCpId)
 return a list index given a control point id
 
bool HasControlPoint (const QString &psCpId)
 Determines whether or not the requested control point id exists in the list.
 
int Size () const
 How many control points in the list.
 
void RegisterStatistics (Pvl &pcPvlLog)
 Register invalid control point and calculate the valid & invalid point count.
 

Private Attributes

QStringList mqCpList
 
QVector< bool > mbFound
 holds one to one correspondence with "mqCpList" on whether the point was valid
 

Detailed Description

Control Point List generator.

Create a list of Control Points from a file with control points ids

Author
2009-08-11 Sharmila Prasad
History

2009-08-11 Sharmila Prasad Original Version

2009-10-04 Steven Lambright Constructor now takes a FileName instead of a string.

2017-12-12 Kristin Berry Updated to use QVector and QString instead of std::vector and std::string. Fixes #5259.

Definition at line 38 of file ControlPointList.h.

Constructor & Destructor Documentation

◆ ControlPointList()

Isis::ControlPointList::ControlPointList ( const FileName & psListFile)

Creates a ControlPointList from a list of control point ids'.

Parameters
psListFileThe file withe list of control point ids'

Definition at line 24 of file ControlPointList.cpp.

References mbFound, Isis::toString(), and Isis::IException::User.

◆ ~ControlPointList()

Isis::ControlPointList::~ControlPointList ( )
virtual

Destructor.

Definition at line 48 of file ControlPointList.cpp.

Member Function Documentation

◆ ControlPointId()

QString Isis::ControlPointList::ControlPointId ( int piIndex)

Return a control point id given an index.

Parameters
piIndexThe index of the desired control point id
Returns
QString The control point id returned

Definition at line 88 of file ControlPointList.cpp.

References Isis::IException::Programmer, Size(), and Isis::toString().

◆ ControlPointIndex()

int Isis::ControlPointList::ControlPointIndex ( const QString & psCpId)

return a list index given a control point id

Parameters
ps_cpIdThe control point id to be searched for
Returns
int The index of the control point id

Definition at line 107 of file ControlPointList.cpp.

References HasControlPoint(), and Isis::IException::Programmer.

◆ HasControlPoint()

bool Isis::ControlPointList::HasControlPoint ( const QString & psCpId)

Determines whether or not the requested control point id exists in the list.

Parameters
psCpIdThe control point id to be checked for
Returns
bool

Definition at line 60 of file ControlPointList.cpp.

References mbFound, and Size().

Referenced by ControlPointIndex().

◆ RegisterStatistics()

void Isis::ControlPointList::RegisterStatistics ( Pvl & pcPvlLog)

Register invalid control point and calculate the valid & invalid point count.

Parameters
PvlWill contain stats in pvl keywords

Definition at line 124 of file ControlPointList.cpp.

References mbFound, Size(), and Isis::toString().

◆ Size()

int Isis::ControlPointList::Size ( ) const

How many control points in the list.

Returns
int Returns number of control point in the list

Definition at line 76 of file ControlPointList.cpp.

Referenced by ControlPointId(), HasControlPoint(), and RegisterStatistics().

Member Data Documentation

◆ mbFound

QVector<bool> Isis::ControlPointList::mbFound
private

holds one to one correspondence with "mqCpList" on whether the point was valid

Definition at line 57 of file ControlPointList.h.

Referenced by ControlPointList(), HasControlPoint(), and RegisterStatistics().

◆ mqCpList

QStringList Isis::ControlPointList::mqCpList
private

Definition at line 53 of file ControlPointList.h.


The documentation for this class was generated from the following files: