Isis Developer Reference
|
This class is a container class for BundleObservations. More...
#include <BundleObservationVector.h>
Public Member Functions | |
BundleObservationVector () | |
Constructs an empty BundleObservationVector. More... | |
BundleObservationVector (const BundleObservationVector &src) | |
Copy constructor. More... | |
~BundleObservationVector () | |
Destructor. More... | |
BundleObservationVector & | operator= (const BundleObservationVector &src) |
Assignment operator. More... | |
BundleObservationQsp | addNew (BundleImageQsp image, QString observationNumber, QString instrumentId, BundleSettingsQsp bundleSettings) |
Adds a new BundleObservation to this vector or fetches an existing BundleObservation if this vector already contains the passed observation number. More... | |
int | numberParameters () |
Returns the sum of the position parameters and pointing parameters for the contained BundleObservations. More... | |
BundleObservationQsp | observationByCubeSerialNumber (QString cubeSerialNumber) |
Accesses a BundleObservation associated with the passed serial number. More... | |
QList< QString > | instrumentIds () const |
Get a list of all instrument IDs that there are observations for. More... | |
QList< BundleObservationQsp > | observationsByInstId (QString instrumentId) const |
Get all of the observations with a specific instrument ID. More... | |
This class is a container class for BundleObservations.
It can be used for managing multiple BundleObservations.
Contained BundleObservations are stored as shared pointers, so they will be automatically deleted when all shared pointers are deleted.
Isis::BundleObservationVector::BundleObservationVector | ( | ) |
Constructs an empty BundleObservationVector.
Isis::BundleObservationVector::BundleObservationVector | ( | const BundleObservationVector & | src | ) |
Copy constructor.
Constructs a BundleObservationVector as a copy of another BundleObservationVector.
src | A reference to the BundleObservationVector to copy from. |
Isis::BundleObservationVector::~BundleObservationVector | ( | ) |
Destructor.
Contained BundleObservations will remain until all shared pointers to them are deleted.
BundleObservationQsp Isis::BundleObservationVector::addNew | ( | BundleImageQsp | bundleImage, |
QString | observationNumber, | ||
QString | instrumentId, | ||
BundleSettingsQsp | bundleSettings | ||
) |
Adds a new BundleObservation to this vector or fetches an existing BundleObservation if this vector already contains the passed observation number.
If observation mode is off, adds a new BundleObservation to this vector. Otherwise, if observation mode is on and the BundleObservation has already been added with the same observation number, the passed BundleImage is added to the existing BundleObservation.
bundleImage | QSharedPointer to the BundleImage to create or fetch a BundleObservation from |
observationNumber | Observation number of the observation to add or fetch |
instrumentId | Instrument id of the observation |
bundleSettings | Qsp to BundleSettings for the observation |
IException::Programmer | "Unable to allocate new BundleObservation" |
References _FILEINFO_, Isis::Camera::Csm, and Isis::IException::Programmer.
QList< QString > Isis::BundleObservationVector::instrumentIds | ( | ) | const |
Get a list of all instrument IDs that there are observations for.
Referenced by Isis::BundleSolutionInfo::outputImagesCSV().
int Isis::BundleObservationVector::numberParameters | ( | ) |
Returns the sum of the position parameters and pointing parameters for the contained BundleObservations.
BundleObservationQsp Isis::BundleObservationVector::observationByCubeSerialNumber | ( | QString | cubeSerialNumber | ) |
Accesses a BundleObservation associated with the passed serial number.
If there is no BundleObservation associated with the serial number, a NULL pointer is returned.
cubeSerialNumber | Serial number of a cube to try to find an associated BundleObservation |
QList< BundleObservationQsp > Isis::BundleObservationVector::observationsByInstId | ( | QString | instrumentId | ) | const |
Get all of the observations with a specific instrument ID.
Referenced by Isis::BundleSolutionInfo::outputImagesCSV().
BundleObservationVector & Isis::BundleObservationVector::operator= | ( | const BundleObservationVector & | src | ) |
Assignment operator.
Assigns the state of the source BundleObservationVector to this BundleObservationVector.
src | The BundleObservationVector to assign from. |