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 
25 namespace Isis {
26 
27 
55  class BundleObservationVector : public QVector<BundleObservationQsp> {
56 
57  public:
61 
64  QString observationNumber,
65  QString instrumentId,
66  BundleSettingsQsp bundleSettings);
67 
68  int numberParameters();
69 
70  BundleObservationQsp observationByCubeSerialNumber(QString cubeSerialNumber);
71 
73  QList<BundleObservationQsp> observationsByInstId(QString instrumentId) const;
74 
75  private:
81  QMultiMap<QString, BundleObservationQsp> m_instIdToObservationMap;
82  };
83 }
84 
85 #endif // BundleObservationVector_h
Isis::BundleObservationVector::numberParameters
int numberParameters()
Returns the sum of the position parameters and pointing parameters for the contained BundleObservatio...
Definition: BundleObservationVector.cpp:204
Isis::BundleObservationVector::instrumentIds
QList< QString > instrumentIds() const
Get a list of all instrument IDs that there are observations for.
Definition: BundleObservationVector.cpp:238
QList< QString >
Isis::BundleObservationVector::m_imageSerialToObservationMap
QMap< QString, BundleObservationQsp > m_imageSerialToObservationMap
Map between image serial number and pointer to observation.
Definition: BundleObservationVector.h:79
Isis::BundleObservationVector::~BundleObservationVector
~BundleObservationVector()
Destructor.
Definition: BundleObservationVector.cpp:50
Isis::BundleObservationVector::addNew
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...
Definition: BundleObservationVector.cpp:98
Isis::BundleObservationVector::operator=
BundleObservationVector & operator=(const BundleObservationVector &src)
Assignment operator.
Definition: BundleObservationVector.cpp:64
QSharedPointer
Definition: JigsawWorkOrder.h:28
Isis::BundleObservationVector::observationsByInstId
QList< BundleObservationQsp > observationsByInstId(QString instrumentId) const
Get all of the observations with a specific instrument ID.
Definition: BundleObservationVector.cpp:247
Isis::BundleObservationVector::observationByCubeSerialNumber
BundleObservationQsp observationByCubeSerialNumber(QString cubeSerialNumber)
Accesses a BundleObservation associated with the passed serial number.
Definition: BundleObservationVector.cpp:225
Isis::BundleObservationVector::m_observationNumberToObservationMap
QMap< QString, BundleObservationQsp > m_observationNumberToObservationMap
Map between observation number and pointer to observation.
Definition: BundleObservationVector.h:77
Isis::BundleObservationVector::m_instIdToObservationMap
QMultiMap< QString, BundleObservationQsp > m_instIdToObservationMap
Map between instrument ID and pointer to observation.
Definition: BundleObservationVector.h:81
Isis::BundleObservationVector::BundleObservationVector
BundleObservationVector()
Constructs an empty BundleObservationVector.
Definition: BundleObservationVector.cpp:26
QMap
This is free and unencumbered software released into the public domain.
Definition: CubeIoHandler.h:22
QVector
This is free and unencumbered software released into the public domain.
Definition: Calculator.h:18
Isis
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16
Isis::BundleObservationVector
This class is a container class for BundleObservations.
Definition: BundleObservationVector.h:55