Isis 3 Programmer Reference
BundleMeasure.cpp
1 #include "BundleMeasure.h"
2 #include "BundleObservation.h"
4 #include "IException.h"
5 
6 #include "ControlMeasure.h"
7 
8 namespace Isis {
9 
21  BundleControlPoint *bundleControlPoint) {
22  m_controlMeasure = controlMeasure;
23  m_parentControlPoint = bundleControlPoint;
24  }
25 
26 
31  }
32 
33 
46  }
47 
48 
59  // Prevent self assignment
60  if (this != &src) {
65  }
66 
67  return *this;
68  }
69 
70 
77  m_parentObservation = observation;
78  }
79 
80 
87  m_parentBundleImage = image;
88  }
89 
90 
98  void BundleMeasure::setRejected(bool reject) {
99  m_controlMeasure->SetRejected(reject);
100  }
101 
102 
109  return m_controlMeasure->IsRejected();
110  }
111 
112 
121  return m_controlMeasure->Camera();
122  }
123 
124 
131  return m_parentControlPoint;
132  }
133 
134 
141  return m_parentBundleImage;
142  }
143 
144 
151  return m_parentObservation;
152  }
153 
154 
167  if (!m_parentObservation) {
168  QString msg = "In BundleMeasure::observationSolveSettings: "
169  "parent observation has not been set.\n";
171  }
172  return m_parentObservation->solveSettings();
173  }
174 
175 
183  double BundleMeasure::sample() const {
184  return m_controlMeasure->GetSample();
185  }
186 
187 
196  return m_controlMeasure->GetSampleResidual();
197  }
198 
199 
207  double BundleMeasure::line() const {
208  return m_controlMeasure->GetLine();
209  }
210 
211 
220  return m_controlMeasure->GetLineResidual();
221  }
222 
223 
233  }
234 
235 
245  }
246 
247 
256  return m_controlMeasure->GetFocalPlaneComputedX();
257  }
258 
259 
268  return m_controlMeasure->GetFocalPlaneComputedY();
269  }
270 
271 
280  return m_controlMeasure->GetFocalPlaneMeasuredX();
281  }
282 
283 
292  return m_controlMeasure->GetFocalPlaneMeasuredY();
293  }
294 
295 
307  if (!m_parentObservation) {
308  QString msg = "In BundleMeasure::observationIndex: "
309  "parent observation has not been set.\n";
311  }
312  return m_parentObservation->index();
313  }
314 
315 
316 
317 }
Camera * camera() const
Accesses the associated camera for this bundle measure.
void setParentImage(QSharedPointer< BundleImage > image)
Sets the parent bundle image.
~BundleMeasure()
Destructor.
bool isRejected() const
Determines whether or not this BundleMeasure is rejected.
double focalPlaneMeasuredY() const
Accesses the measured focal plane y value for this control measure //TODO verify? ...
double focalPlaneComputedY() const
Accesses the computed focal plane y value for this control measure.
QSharedPointer< BundleObservation > parentBundleObservation()
Accesses the parent BundleObservation for this bundle measure.
BundleControlPoint * m_parentControlPoint
Parent bundle control point that contains this bundle control measure.
void setRejected(bool reject)
Sets the BundleMeasure&#39;s status to rejected or not rejected.
double GetResidualMagnitude() const
Return Residual magnitude.
double line() const
Accesses the current line measurement for this control measure.
A container class for a ControlMeasure.
Definition: BundleMeasure.h:69
This error is for when a programmer made an API call that was illegal.
Definition: IException.h:162
Status SetRejected(bool rejected)
Set "jigsaw" rejected flag for a measure.
BundleMeasure & operator=(const BundleMeasure &src)
Assignment operator.
QSharedPointer< BundleObservation > m_parentObservation
Parent bundle observation.
void setParentObservation(QSharedPointer< BundleObservation > observation)
Sets the parent bundle observation.
int observationIndex() const
Accesses the observation index for the parent observation.
QSharedPointer< BundleImage > m_parentBundleImage
Parent image of this bundle control measure.
double sample() const
Accesses the current sample measurement for this control measure.
#define _FILEINFO_
Macro for the filename and line number.
Definition: IException.h:40
This class holds information about a control point that BundleAdjust needs to run correctly...
double residualMagnitude() const
Accesses the residual magnitude for this control measure.
double sampleResidual() const
Accesses the sample residual for this control measure.
double focalPlaneMeasuredX() const
Accesses the measured focal plane x value for this control measure //TODO verify? ...
BundleControlPoint * parentControlPoint()
Accesses the parent BundleControlPoint for this bundle measure.
const QSharedPointer< BundleObservationSolveSettings > observationSolveSettings()
Accesses the parent observation&#39;s solve settings.
QString cubeSerialNumber() const
Accesses the serial number of the cube containing this control measure.
double focalPlaneComputedX() const
Accesses the computed focal plane x value for this control measure.
QSharedPointer< BundleImage > parentBundleImage()
Access the parent BundleImage for this bundle measure.
Isis exception class.
Definition: IException.h:107
ControlMeasure * m_controlMeasure
Contained control measure.
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31
a control measurement
double lineResidual() const
Accesses the line residual for this control measure.
QString GetCubeSerialNumber() const
Return the serial number of the cube containing the coordinate.
BundleMeasure(ControlMeasure *controlMeasure, BundleControlPoint *bundleControlPoint)
Constructor.