Isis 3 Programmer Reference
Isis::TrackingTable Class Reference

Table to store tracking information for a mosaic. More...

#include <TrackingTable.h>

Collaboration diagram for Isis::TrackingTable:
Collaboration graph

Public Member Functions

 TrackingTable ()
 Default constructor. More...
 
 TrackingTable (Table table)
 Constructs a TrackingTable given a Table object. More...
 
 ~TrackingTable ()
 Destroys the TrackingTable object. More...
 
Table toTable ()
 Constrcts and returns a Table object based on values in m_fileList. More...
 
FileName pixelToFileName (unsigned int pixel)
 Returns the FileName that corresponds to a pixel value. More...
 
unsigned int fileNameToPixel (FileName file, QString serialNumber)
 Returns the pixel value of the filename/serialnumber combination. More...
 
int fileNameToIndex (FileName file, QString serialNumber)
 Returns the index of the filename/serialnumber combination. More...
 
QString pixelToSN (unsigned int pixel)
 Returns the serial number that corresponds to a pixel value. More...
 

Private Attributes

QList< QPair< FileName, QString > > m_fileList
 The list to keep track of images. More...
 

Detailed Description

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).

Author
2018-07-19 Jesse Mapel & Summer Stapleton
History:

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 53 of file TrackingTable.h.

Constructor & Destructor Documentation

◆ TrackingTable() [1/2]

Isis::TrackingTable::TrackingTable ( )

Default constructor.

Definition at line 43 of file TrackingTable.cpp.

◆ TrackingTable() [2/2]

Isis::TrackingTable::TrackingTable ( Table  table)

Constructs a TrackingTable given a Table object.

The Table is used to populate m_fileList.

Parameters
tableThe Table object to pull the filenames and serial numbers from

Definition at line 54 of file TrackingTable.cpp.

References Isis::Table::Records().

◆ ~TrackingTable()

Isis::TrackingTable::~TrackingTable ( )

Destroys the TrackingTable object.

Definition at line 75 of file TrackingTable.cpp.

Member Function Documentation

◆ fileNameToIndex()

int Isis::TrackingTable::fileNameToIndex ( FileName  file,
QString  serialNumber 
)

Returns the index of the filename/serialnumber combination.

Parameters
fileThe FileName within m_fileList to find the index of
serialNumberThe QString of the serial number within m_fileList to find the index of
Returns
int The index corresponding to the filename/serialnumber combination

Definition at line 216 of file TrackingTable.cpp.

Referenced by Isis::AdvancedTrackTool::TrackMosaicOrigin().

◆ fileNameToPixel()

unsigned int Isis::TrackingTable::fileNameToPixel ( FileName  file,
QString  serialNumber 
)

Returns the pixel value of the filename/serialnumber combination.

Parameters
fileThe FileName within m_fileList to find the pixel value of
serialNumberThe QString of the serial number within m_fileList to find the pixel value of
Returns
unsigned int The pixel value corresponding to the filename/serialnumber combination

Definition at line 166 of file TrackingTable.cpp.

References Isis::FileName::name().

◆ pixelToFileName()

FileName Isis::TrackingTable::pixelToFileName ( unsigned int  pixel)

Returns the FileName that corresponds to a pixel value.

Parameters
pixelThe pixel value to find the filename for
Returns
FileName The FileName represented by the pixel value

Definition at line 136 of file TrackingTable.cpp.

Referenced by Isis::AdvancedTrackTool::TrackMosaicOrigin().

◆ pixelToSN()

QString Isis::TrackingTable::pixelToSN ( unsigned int  pixel)

Returns the serial number that corresponds to a pixel value.

Parameters
pixelThe pixel value to find the serial number for
Returns
QString The serial number represented by the pixel value

Definition at line 186 of file TrackingTable.cpp.

Referenced by Isis::AdvancedTrackTool::TrackMosaicOrigin().

◆ toTable()

Table Isis::TrackingTable::toTable ( )

Constrcts and returns a Table object based on values in m_fileList.

Returns
Table The constructed table to be returned

Definition at line 85 of file TrackingTable.cpp.

Member Data Documentation

◆ m_fileList

QList< QPair< FileName, QString > > Isis::TrackingTable::m_fileList
private

The list to keep track of images.

Definition at line 75 of file TrackingTable.h.


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