Loading isis/src/control/objs/ControlPoint/ControlPoint.cpp +0 −85 Original line number Diff line number Diff line Loading @@ -2116,89 +2116,4 @@ namespace Isis { SetRejected(false); } //! Returns the apriori covar value associated at the given position. double ControlPoint::GetAprioriCovar(int position) const { SurfacePoint apriori = GetAprioriSurfacePoint(); symmetric_matrix< double, upper > covar = apriori.GetRectangularMatrix(); switch (position) { case 0: return covar(0, 0); break; case 1: return covar(0, 1); break; case 2: return covar(0, 2); break; case 3: return covar(1, 1); break; case 4: return covar(1, 2); break; case 5: return covar(2, 2); break; default: QString msg = "Invalid position given"; throw IException(IException::Io, msg, _FILEINFO_); } } //! Returns true if there are apriori surface point covar values. bool ControlPoint::HasAprioriCovar() const { SurfacePoint apriori = GetAprioriSurfacePoint(); symmetric_matrix< double, upper > covar = apriori.GetRectangularMatrix(); // If there are values in any of the covar matrices. if (covar(0, 0) != 0. || covar(0, 1) != 0. || covar(0, 2) != 0. || covar(1, 1) != 0. || covar(1, 2) != 0. || covar(2, 2) != 0.) { return true; } return false; } //! Returns true if there are adjusted surface point covar values. bool ControlPoint::HasAdjustedCovar() const { SurfacePoint adjusted = GetAdjustedSurfacePoint(); symmetric_matrix< double, upper > covar = adjusted.GetRectangularMatrix(); // If there are values in any of the covar matrices. if (covar(0, 0) != 0. || covar(0, 1) != 0. || covar(0, 2) != 0. || covar(1, 1) != 0. || covar(1, 2) != 0. || covar(2, 2) != 0.) { return true; } return false; } //! Returns the adjusted covar value associated at the given position. double ControlPoint::GetAdjustedCovar(int position) const { SurfacePoint adjusted = GetAdjustedSurfacePoint(); symmetric_matrix< double, upper > covar = adjusted.GetRectangularMatrix(); switch (position) { case 0: return covar(0, 0); break; case 1: return covar(0, 1); break; case 2: return covar(0, 2); break; case 3: return covar(1, 1); break; case 4: return covar(1, 2); break; case 5: return covar(2, 2); break; default: QString msg = "Invalid position given"; throw IException(IException::Io, msg, _FILEINFO_); } } } Loading
isis/src/control/objs/ControlPoint/ControlPoint.cpp +0 −85 Original line number Diff line number Diff line Loading @@ -2116,89 +2116,4 @@ namespace Isis { SetRejected(false); } //! Returns the apriori covar value associated at the given position. double ControlPoint::GetAprioriCovar(int position) const { SurfacePoint apriori = GetAprioriSurfacePoint(); symmetric_matrix< double, upper > covar = apriori.GetRectangularMatrix(); switch (position) { case 0: return covar(0, 0); break; case 1: return covar(0, 1); break; case 2: return covar(0, 2); break; case 3: return covar(1, 1); break; case 4: return covar(1, 2); break; case 5: return covar(2, 2); break; default: QString msg = "Invalid position given"; throw IException(IException::Io, msg, _FILEINFO_); } } //! Returns true if there are apriori surface point covar values. bool ControlPoint::HasAprioriCovar() const { SurfacePoint apriori = GetAprioriSurfacePoint(); symmetric_matrix< double, upper > covar = apriori.GetRectangularMatrix(); // If there are values in any of the covar matrices. if (covar(0, 0) != 0. || covar(0, 1) != 0. || covar(0, 2) != 0. || covar(1, 1) != 0. || covar(1, 2) != 0. || covar(2, 2) != 0.) { return true; } return false; } //! Returns true if there are adjusted surface point covar values. bool ControlPoint::HasAdjustedCovar() const { SurfacePoint adjusted = GetAdjustedSurfacePoint(); symmetric_matrix< double, upper > covar = adjusted.GetRectangularMatrix(); // If there are values in any of the covar matrices. if (covar(0, 0) != 0. || covar(0, 1) != 0. || covar(0, 2) != 0. || covar(1, 1) != 0. || covar(1, 2) != 0. || covar(2, 2) != 0.) { return true; } return false; } //! Returns the adjusted covar value associated at the given position. double ControlPoint::GetAdjustedCovar(int position) const { SurfacePoint adjusted = GetAdjustedSurfacePoint(); symmetric_matrix< double, upper > covar = adjusted.GetRectangularMatrix(); switch (position) { case 0: return covar(0, 0); break; case 1: return covar(0, 1); break; case 2: return covar(0, 2); break; case 3: return covar(1, 1); break; case 4: return covar(1, 2); break; case 5: return covar(2, 2); break; default: QString msg = "Invalid position given"; throw IException(IException::Io, msg, _FILEINFO_); } } }