Isis 3 Programmer Reference
BundleImage.cpp
1 #include "BundleImage.h"
2 
3 #include "BundleObservation.h"
4 #include "Camera.h"
5 
6 namespace Isis {
7 
8 
17  BundleImage::BundleImage(Camera *camera, QString serialNumber, QString fileName) {
18  m_camera = camera;
21  }
22 
23 
30  m_camera = other.m_camera;
33  m_fileName = other.m_fileName;
34  }
35 
36 
41  }
42 
43 
52  if (&other != this) {
53  m_camera = other.m_camera;
56  m_fileName = other.m_fileName;
57  }
58  return *this;
59  }
60 
61 
68 
69 
70  // TODO: BundleImage's setParentObservation should take a QSharedPointer. JAM
71 
73  }
74 
75 
82  return m_camera;
83  }
84 
85 
92  return m_parentObservation;
93  }
94 
95 
102  return m_serialNumber;
103  }
104 
105 
112  return m_fileName;
113  }
114 }
Camera * camera()
Returns the camera model used for the BundleImage.
Definition: BundleImage.cpp:81
QString m_fileName
The file name of the image.
Definition: BundleImage.h:78
BundleImage & operator=(const BundleImage &other)
An assignment operator to set this BundleImage to another BundleImage object.
Definition: BundleImage.cpp:51
Camera * m_camera
The camera model for the image.
Definition: BundleImage.h:75
BundleImage(Camera *camera, QString serialNumber, QString fileName)
Constructs a BundleImage with the given camera pointer, serial number, and filename.
Definition: BundleImage.cpp:17
QString fileName()
Returns the file name for the BundleImage.
This class hold image information that BundleAdjust needs to run correctly.Definition for a BundleIma...
Definition: BundleImage.h:51
~BundleImage()
Destroys a BundleImage object.
Definition: BundleImage.cpp:40
QString serialNumber()
Returns the serial number for the BundleImage.
QSharedPointer< BundleObservation > parentObservation()
Returns the parent BundleObservation object.
Definition: BundleImage.cpp:91
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31
QString m_serialNumber
The serial number for the image.
Definition: BundleImage.h:77
void setParentObservation(QSharedPointer< BundleObservation > parentObservation)
Sets the parent BundleObservation object.
Definition: BundleImage.cpp:67
QSharedPointer< BundleObservation > m_parentObservation
parent BundleObservation
Definition: BundleImage.h:76