Isis 3 Programmer Reference
|
Table to store tracking information for a mosaic. More...
#include <TrackingTable.h>
Public Member Functions | |
TrackingTable () | |
Default constructor. | |
TrackingTable (Table table) | |
Constructs a TrackingTable given a Table object. | |
~TrackingTable () | |
Destroys the TrackingTable object. | |
Table | toTable () |
Constrcts and returns a Table object based on values in m_fileList. | |
FileName | pixelToFileName (unsigned int pixel) |
Returns the FileName that corresponds to a pixel value. | |
unsigned int | fileNameToPixel (FileName file, QString serialNumber) |
Returns the pixel value of the filename/serialnumber combination. | |
int | fileNameToIndex (FileName file, QString serialNumber) |
Returns the index of the filename/serialnumber combination. | |
QString | pixelToSN (unsigned int pixel) |
Returns the serial number that corresponds to a pixel value. | |
Private Attributes | |
QList< QPair< FileName, QString > > | m_fileList |
The list to keep track of images. | |
Table to store tracking information for a mosaic.
This table will currently be stored in the label of a separate cube. This tracking cube will also contain a single tracking band. The DN values stored in this band will correlate to the indices in this table. Each record within this table will contain the filename of an associated cube, that cube's serial number, and the DN value associated with this cube within the tracking band (which should also be its index in the table).
2018-07-26 Jesse Mapel - Added offset based on minimum unsigned integer value. Renamed methods to better convey output/input meaning.
2018-07-30 Kaitlyn Lee - Added pixelToSN() and fileNameToIndex().
Definition at line 37 of file TrackingTable.h.
Isis::TrackingTable::TrackingTable | ( | ) |
Default constructor.
Definition at line 27 of file TrackingTable.cpp.
Isis::TrackingTable::TrackingTable | ( | Table | table | ) |
Constructs a TrackingTable given a Table object.
The Table is used to populate m_fileList.
table | The Table object to pull the filenames and serial numbers from |
Definition at line 38 of file TrackingTable.cpp.
References m_fileList, and Isis::Table::Records().
Isis::TrackingTable::~TrackingTable | ( | ) |
Destroys the TrackingTable object.
Definition at line 59 of file TrackingTable.cpp.
int Isis::TrackingTable::fileNameToIndex | ( | FileName | file, |
QString | serialNumber ) |
Returns the index of the filename/serialnumber combination.
file | The FileName within m_fileList to find the index of |
serialNumber | The QString of the serial number within m_fileList to find the index of |
Definition at line 200 of file TrackingTable.cpp.
References m_fileList.
unsigned int Isis::TrackingTable::fileNameToPixel | ( | FileName | file, |
QString | serialNumber ) |
Returns the pixel value of the filename/serialnumber combination.
file | The FileName within m_fileList to find the pixel value of |
serialNumber | The QString of the serial number within m_fileList to find the pixel value of |
Definition at line 150 of file TrackingTable.cpp.
References m_fileList.
FileName Isis::TrackingTable::pixelToFileName | ( | unsigned int | pixel | ) |
Returns the FileName that corresponds to a pixel value.
pixel | The pixel value to find the filename for |
Definition at line 120 of file TrackingTable.cpp.
References m_fileList, Isis::IException::Programmer, and Isis::toString().
QString Isis::TrackingTable::pixelToSN | ( | unsigned int | pixel | ) |
Returns the serial number that corresponds to a pixel value.
pixel | The pixel value to find the serial number for |
Definition at line 170 of file TrackingTable.cpp.
References m_fileList, Isis::IException::Programmer, and Isis::toString().
Table Isis::TrackingTable::toTable | ( | ) |
Constrcts and returns a Table object based on values in m_fileList.
Definition at line 69 of file TrackingTable.cpp.
References Isis::TableField::Integer, m_fileList, and Isis::TableField::Text.
The list to keep track of images.
Definition at line 59 of file TrackingTable.h.
Referenced by fileNameToIndex(), fileNameToPixel(), pixelToFileName(), pixelToSN(), toTable(), and TrackingTable().