84 QString observationNumber,
88 bool addToExisting =
false;
90 if (bundleSettings->solveObservationMode() &&
100 bundleObservation->append(bundleImage);
102 bundleImage->setParentObservation(bundleObservation);
115 bundleSettings->bundleTargetBody()));
117 if (!bundleObservation) {
118 QString message =
"Unable to allocate new BundleObservation ";
119 message +=
"for " + bundleImage->fileName();
123 bundleImage->setParentObservation(bundleObservation);
128 if ( bundleSettings->numberSolveSettings() == 1) {
129 solveSettings = bundleSettings->observationSolveSettings(0);
134 solveSettings = bundleSettings->observationSolveSettings(observationNumber);
137 bundleObservation->setSolveSettings(solveSettings);
139 bundleObservation->setIndex(size());
141 append(bundleObservation);
150 return bundleObservation;
160 int positionParameters = 0;
162 for (
int i = 0; i < size(); i++) {
164 positionParameters += observation->numberPositionParameters();
167 return positionParameters;
177 int pointingParameters = 0;
179 for (
int i = 0; i < size(); i++) {
181 pointingParameters += observation->numberPointingParameters();
184 return pointingParameters;
216 return bundleObservation;
226 int nObservations = size();
227 for (
int i = 0; i < nObservations; i++) {
229 observation->initializeExteriorOrientation();
242 int nObservations = size();
243 for (
int i = 0; i < nObservations; i++) {
245 observation->initializeBodyRotation();
This class is a container class for BundleObservations.
BundleObservationVector & operator=(const BundleObservationVector &src)
Assignment operator.
int numberParameters()
Returns the sum of the position parameters and pointing parameters for the contained BundleObservatio...
Class for bundle observations.
int numberPointingParameters()
Accesses the number of pointing parameters for the contained BundleObservations.
QMap< QString, BundleObservationQsp > m_imageSerialToObservationMap
Map between image serial number and pointer to observation.
This error is for when a programmer made an API call that was illegal.
QSharedPointer< BundleObservation > BundleObservationQsp
Typdef for BundleObservation QSharedPointer.
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 a...
~BundleObservationVector()
Destructor.
BundleObservationQsp observationByCubeSerialNumber(QString cubeSerialNumber)
Accesses a BundleObservation associated with the passed serial number.
#define _FILEINFO_
Macro for the filename and line number.
QMap< QString, BundleObservationQsp > m_observationNumberToObservationMap
Map between observation number and pointer to observation.
bool initializeExteriorOrientation()
Initializes the exterior orientations for the contained BundleObservations.
int numberPositionParameters()
Accesses the number of position parameters for the contained BundleObservations.
This class is used to modify and manage solve settings for 1 to many BundleObservations.
bool initializeBodyRotation()
Initializes the body rotations for the contained BundleObservations.
Namespace for ISIS/Bullet specific routines.
BundleObservationVector()
Constructs an empty BundleObservationVector.