Isis 3 Programmer Reference
BundleObservationVector.h
1#ifndef BundleObservationVector_h
2#define BundleObservationVector_h
3
10/* SPDX-License-Identifier: CC0-1.0 */
11
12#include <QList>
13#include <QMap>
14#include <QMultiMap>
15#include <QSharedPointer>
16#include <QString>
17#include <QVector>
18
19#include "BundleImage.h"
20#include "BundleObservation.h"
21#include "IsisBundleObservation.h"
22#include "CsmBundleObservation.h"
23#include "BundleSettings.h"
24
25namespace Isis {
26
27
57 class BundleObservationVector : public QVector<BundleObservationQsp> {
58
59 public:
63
66 QString observationNumber,
67 QString instrumentId,
68 BundleSettingsQsp bundleSettings);
69
70 int numberParameters();
71
73
74 double vtpvContribution();
75
76 QList<QString> instrumentIds() const;
77 QList<BundleObservationQsp> observationsByInstId(QString instrumentId) const;
78
79 private:
81 QMap<QString, BundleObservationQsp> m_observationNumberToObservationMap;
83 QMap<QString, BundleObservationQsp> m_imageSerialToObservationMap;
85 QMultiMap<QString, BundleObservationQsp> m_instIdToObservationMap;
86 };
87}
88
89#endif // BundleObservationVector_h
This class is a container class for BundleObservations.
double vtpvContribution()
Compute vtpv, the weighted sum of squares of constrained image parameter residuals.
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...
QMultiMap< QString, BundleObservationQsp > m_instIdToObservationMap
Map between instrument ID and pointer to observation.
QList< QString > instrumentIds() const
Get a list of all instrument IDs that there are observations for.
BundleObservationVector & operator=(const BundleObservationVector &src)
Assignment operator.
int numberParameters()
Returns the sum of the position parameters and pointing parameters for the contained BundleObservatio...
QMap< QString, BundleObservationQsp > m_imageSerialToObservationMap
Map between image serial number and pointer to observation.
QMap< QString, BundleObservationQsp > m_observationNumberToObservationMap
Map between observation number and pointer to observation.
BundleObservationQsp observationByCubeSerialNumber(QString cubeSerialNumber)
Accesses a BundleObservation associated with the passed serial number.
BundleObservationVector()
Constructs an empty BundleObservationVector.
QList< BundleObservationQsp > observationsByInstId(QString instrumentId) const
Get all of the observations with a specific instrument ID.
This is free and unencumbered software released into the public domain.
Definition Calculator.h:18
This is free and unencumbered software released into the public domain.
Definition Apollo.h:16