Loading isis/src/control/objs/ControlPoint/ControlPoint.cpp +20 −10 Original line number Diff line number Diff line Loading @@ -8,7 +8,6 @@ #include <QHash> #include <QString> #include <QStringList> #include <QVector> #include "Application.h" #include "CameraDetectorMap.h" Loading @@ -32,6 +31,7 @@ using boost::numeric::ublas::symmetric_matrix; using boost::numeric::ublas::upper; using namespace std; namespace Isis { /** Loading Loading @@ -624,7 +624,7 @@ namespace Isis { * @returns bool True if a reference measure is set. */ bool ControlPoint::HasRefMeasure() const { return !(referenceMeasure == NULL): return !(referenceMeasure == NULL); } Loading Loading @@ -1419,7 +1419,7 @@ namespace Isis { * * @return Displacement The adjusted x coordinate. */ Displacement ContorlPoint::GetAdjustedX() const { Displacement ControlPoint::GetAdjustedX() const { return adjustedSurfacePoint.GetX(); } Loading @@ -1429,7 +1429,7 @@ namespace Isis { * * @return Displacement The adjusted y coordinate. */ Displacement ContorlPoint::GetAdjustedY() const { Displacement ControlPoint::GetAdjustedY() const { return adjustedSurfacePoint.GetY(); } Loading @@ -1439,7 +1439,7 @@ namespace Isis { * * @return Displacement The adjusted z coordinate. */ Displacement ContorlPoint::GetAdjustedZ() const { Displacement ControlPoint::GetAdjustedZ() const { return adjustedSurfacePoint.GetZ(); } Loading Loading @@ -1712,6 +1712,16 @@ namespace Isis { } /** * Checks to see if the point has been rejected by jigsaw. * * @return bool true if the point is flagged as rejected by jigsaw */ bool ControlPoint::IsJigsawRejected() const { return jigsawRejected; } SurfacePoint ControlPoint::GetAprioriSurfacePoint() const { return aprioriSurfacePoint; } Loading @@ -1721,7 +1731,7 @@ namespace Isis { * * @return Displacement The apriori x coordinate. */ Displacement ContorlPoint::GetAprioriX() const { Displacement ControlPoint::GetAprioriX() const { return aprioriSurfacePoint.GetX(); } Loading @@ -1731,7 +1741,7 @@ namespace Isis { * * @return Displacement The apriori y coordinate. */ Displacement ContorlPoint::GetAprioriY() const { Displacement ControlPoint::GetAprioriY() const { return aprioriSurfacePoint.GetY(); } Loading @@ -1741,7 +1751,7 @@ namespace Isis { * * @return Displacement The apriori z coordinate. */ Displacement ContorlPoint::GetAprioriZ() const { Displacement ControlPoint::GetAprioriZ() const { return aprioriSurfacePoint.GetZ(); } Loading Loading @@ -1823,7 +1833,7 @@ namespace Isis { * * @return bool True if the surface point source file has been set. */ bool HasAprioriSurfacePointSourceFile() const { bool ControlPoint::HasAprioriSurfacePointSourceFile() const { return !( aprioriSurfacePointSourceFile.isEmpty() || aprioriSurfacePointSourceFile.isNull() ); } Loading Loading @@ -1947,7 +1957,7 @@ namespace Isis { * measure. */ int ControlPoint::IndexOfRefMeasure() const { if (!referenceMeasure) { if (!HasRefMeasure()) { QString msg = "There is no reference measure for point [" + id + "]." " This also means of course that the point is empty!"; throw IException(IException::Programmer, msg, _FILEINFO_); Loading isis/src/control/objs/ControlPoint/ControlPoint.h +2 −0 Original line number Diff line number Diff line Loading @@ -339,6 +339,7 @@ namespace Isis { * HasAprioriSurfacePointSourceFile(), HasAprioriRadiusSourceFile(), * GetAprioriX(), GetAprioriY(), GetAprioriZ(), HasAdjustedCoordinates(), * GetAdjustedX(), GetAdjustedY(), GetAdjustedZ(), HasRefMeasure(). * @history 2017-12-19 Kristin Berry - Added IsJigsawRejected(). */ class ControlPoint : public QObject { Loading Loading @@ -508,6 +509,7 @@ namespace Isis { bool IsValid() const; bool IsInvalid() const; bool IsFixed() const; bool IsJigsawRejected() const; bool HasAprioriCoordinates(); bool HasAdjustedCoordinates(); Loading Loading
isis/src/control/objs/ControlPoint/ControlPoint.cpp +20 −10 Original line number Diff line number Diff line Loading @@ -8,7 +8,6 @@ #include <QHash> #include <QString> #include <QStringList> #include <QVector> #include "Application.h" #include "CameraDetectorMap.h" Loading @@ -32,6 +31,7 @@ using boost::numeric::ublas::symmetric_matrix; using boost::numeric::ublas::upper; using namespace std; namespace Isis { /** Loading Loading @@ -624,7 +624,7 @@ namespace Isis { * @returns bool True if a reference measure is set. */ bool ControlPoint::HasRefMeasure() const { return !(referenceMeasure == NULL): return !(referenceMeasure == NULL); } Loading Loading @@ -1419,7 +1419,7 @@ namespace Isis { * * @return Displacement The adjusted x coordinate. */ Displacement ContorlPoint::GetAdjustedX() const { Displacement ControlPoint::GetAdjustedX() const { return adjustedSurfacePoint.GetX(); } Loading @@ -1429,7 +1429,7 @@ namespace Isis { * * @return Displacement The adjusted y coordinate. */ Displacement ContorlPoint::GetAdjustedY() const { Displacement ControlPoint::GetAdjustedY() const { return adjustedSurfacePoint.GetY(); } Loading @@ -1439,7 +1439,7 @@ namespace Isis { * * @return Displacement The adjusted z coordinate. */ Displacement ContorlPoint::GetAdjustedZ() const { Displacement ControlPoint::GetAdjustedZ() const { return adjustedSurfacePoint.GetZ(); } Loading Loading @@ -1712,6 +1712,16 @@ namespace Isis { } /** * Checks to see if the point has been rejected by jigsaw. * * @return bool true if the point is flagged as rejected by jigsaw */ bool ControlPoint::IsJigsawRejected() const { return jigsawRejected; } SurfacePoint ControlPoint::GetAprioriSurfacePoint() const { return aprioriSurfacePoint; } Loading @@ -1721,7 +1731,7 @@ namespace Isis { * * @return Displacement The apriori x coordinate. */ Displacement ContorlPoint::GetAprioriX() const { Displacement ControlPoint::GetAprioriX() const { return aprioriSurfacePoint.GetX(); } Loading @@ -1731,7 +1741,7 @@ namespace Isis { * * @return Displacement The apriori y coordinate. */ Displacement ContorlPoint::GetAprioriY() const { Displacement ControlPoint::GetAprioriY() const { return aprioriSurfacePoint.GetY(); } Loading @@ -1741,7 +1751,7 @@ namespace Isis { * * @return Displacement The apriori z coordinate. */ Displacement ContorlPoint::GetAprioriZ() const { Displacement ControlPoint::GetAprioriZ() const { return aprioriSurfacePoint.GetZ(); } Loading Loading @@ -1823,7 +1833,7 @@ namespace Isis { * * @return bool True if the surface point source file has been set. */ bool HasAprioriSurfacePointSourceFile() const { bool ControlPoint::HasAprioriSurfacePointSourceFile() const { return !( aprioriSurfacePointSourceFile.isEmpty() || aprioriSurfacePointSourceFile.isNull() ); } Loading Loading @@ -1947,7 +1957,7 @@ namespace Isis { * measure. */ int ControlPoint::IndexOfRefMeasure() const { if (!referenceMeasure) { if (!HasRefMeasure()) { QString msg = "There is no reference measure for point [" + id + "]." " This also means of course that the point is empty!"; throw IException(IException::Programmer, msg, _FILEINFO_); Loading
isis/src/control/objs/ControlPoint/ControlPoint.h +2 −0 Original line number Diff line number Diff line Loading @@ -339,6 +339,7 @@ namespace Isis { * HasAprioriSurfacePointSourceFile(), HasAprioriRadiusSourceFile(), * GetAprioriX(), GetAprioriY(), GetAprioriZ(), HasAdjustedCoordinates(), * GetAdjustedX(), GetAdjustedY(), GetAdjustedZ(), HasRefMeasure(). * @history 2017-12-19 Kristin Berry - Added IsJigsawRejected(). */ class ControlPoint : public QObject { Loading Loading @@ -508,6 +509,7 @@ namespace Isis { bool IsValid() const; bool IsInvalid() const; bool IsFixed() const; bool IsJigsawRejected() const; bool HasAprioriCoordinates(); bool HasAdjustedCoordinates(); Loading