Commit 652f1810 authored by Makayla Shepherd's avatar Makayla Shepherd
Browse files

In qnet, when new measures are added to a point, the new measures will be...

In qnet, when new measures are added to a point, the new measures will be loaded at the reference image's latitude and longitude position. Fixes #2326.

git-svn-id: http://subversion.wr.usgs.gov/repos/prog/isis3/trunk@6763 41f8697f-d340-4b68-9986-7bafba869bb8
parent 572530cf
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -772,7 +772,7 @@ namespace Isis {
      }
    }

    // Dump into left chipViewport
    // Dump into right chipViewport
    p_rightView->setChip(p_rightChip, p_rightCube);

    updateRightGeom();
+7 −5
Original line number Diff line number Diff line
@@ -2997,6 +2997,9 @@ namespace Isis {
   *                           implementation of binary control networks.
   * @history 2011-04-06  Tracie Sucharski - If not a fixed point, use the
   *                           Reference measure to get lat,lon.
   * @history 2016-03-17  Makayla Shepherd - All new measures added use the 
   *                           Reference Measure to get the lat, lon, in order
   *                           to make keep behavior consistant. Fixes #2326.
   *
   */
  void QnetTool::addMeasure() {
@@ -3009,10 +3012,10 @@ namespace Isis {
    //  TODO::   Needs to be moved to QnetFileTool.cpp
    Camera *cam;

    // If no apriori or adjusted lat/lon for this point, use lat/lon of first measure
    double lat = m_editPoint->GetBestSurfacePoint().GetLatitude().degrees();
    double lon = m_editPoint->GetBestSurfacePoint().GetLongitude().degrees();
    if (lat == Null || lon == Null) {
    // Use lat/lon of first measure
    double lat;
    double lon;
    
    ControlMeasure m = *(m_editPoint->GetRefMeasure());
    int camIndex = m_serialNumberList->serialNumberIndex(m.GetCubeSerialNumber());
    cam = m_controlNet->Camera(camIndex);
@@ -3020,7 +3023,6 @@ namespace Isis {
    cam->SetImage(m.GetSample(),m.GetLine());
    lat = cam->UniversalLatitude();
    lon = cam->UniversalLongitude();
    }

    for (int i=0; i<m_serialNumberList->size(); i++) {
      cam = m_controlNet->Camera(i);
+3 −0
Original line number Diff line number Diff line
@@ -231,6 +231,9 @@ namespace Isis {
   *                           buttons. Added shortcuts (PageUp/PageDown) for selecting right
   *                           measures and added slots to handle these shortcuts. Added save
   *                           control network shortcut. Fixes #2324.
   *   @history 2016-03-17 Makayla Shepherd - Modified addMeasures so that new measures use the
   *                           Reference Measure in order to keep the behavior consistent. 
   *                           Fixes #2326.
   *                           
   */
  class QnetTool : public Tool {