9 #include "BundleObservation.h"
13 #include <QStringList>
16 #include "BundleImage.h"
17 #include "BundleObservationSolveSettings.h"
18 #include "BundleTargetBody.h"
20 #include "LinearAlgebra.h"
21 #include "SpicePosition.h"
22 #include "SpiceRotation.h"
31 BundleObservation::BundleObservation() {
32 m_serialNumbers.clear();
34 m_observationNumber =
"";
38 m_corrections.clear();
39 m_aprioriSigmas.clear();
40 m_adjustedSigmas.clear();
53 BundleObservation::BundleObservation(
BundleImageQsp image, QString observationNumber,
55 m_serialNumbers.clear();
57 m_observationNumber =
"";
61 m_corrections.clear();
62 m_aprioriSigmas.clear();
63 m_adjustedSigmas.clear();
65 m_observationNumber = observationNumber;
66 m_instrumentId = instrumentId;
70 m_serialNumbers.append(image->serialNumber());
71 m_imageNames.append(image->fileName());
72 m_cubeSerialNumberToBundleImageMap.insert(image->serialNumber(), image);
84 m_cubeSerialNumberToBundleImageMap = src.m_cubeSerialNumberToBundleImageMap;
98 BundleObservation::~BundleObservation() {
115 m_cubeSerialNumberToBundleImageMap = src.m_cubeSerialNumberToBundleImageMap;
137 m_cubeSerialNumberToBundleImageMap.insert(value->serialNumber(), value);
151 BundleImageQsp BundleObservation::imageByCubeSerialNumber(QString cubeSerialNumber) {
154 if (m_cubeSerialNumberToBundleImageMap.contains(cubeSerialNumber)) {
155 bundleImage = m_cubeSerialNumberToBundleImageMap.value(cubeSerialNumber);
167 QString BundleObservation::instrumentId() {
168 return m_instrumentId;
188 return m_corrections;
198 return m_aprioriSigmas;
208 return m_adjustedSigmas;
217 void BundleObservation::setIndex(
int n) {
227 int BundleObservation::index() {