Loading isis/src/control/objs/ControlNet/ControlNet.cpp +23 −27 Original line number Diff line number Diff line Loading @@ -401,6 +401,7 @@ namespace Isis { newImage.serial = sn; ImageVertex newVertex = boost::add_vertex(newImage, m_controlGraph); m_vertexMap.insert(sn, newVertex); emit networkModified(GraphModified); } } Loading @@ -422,7 +423,6 @@ namespace Isis { } } } emit newMeasure(measure); } emit newPoint(point); } Loading @@ -448,6 +448,9 @@ namespace Isis { m_vertexMap[targetSerial], m_controlGraph); m_controlGraph[connection].strength++; if (edgeAdded) { emit networkModified(GraphModified); } return edgeAdded; } Loading Loading @@ -475,6 +478,7 @@ namespace Isis { boost::remove_edge(m_vertexMap[sourceSerial], m_vertexMap[targetSerial], m_controlGraph); emit networkModified(GraphModified); return true; } Loading Loading @@ -599,6 +603,7 @@ namespace Isis { newImage.serial = serial; ImageVertex newVertex = boost::add_vertex(newImage, m_controlGraph); m_vertexMap.insert(serial, newVertex); emit networkModified(GraphModified); } m_controlGraph[m_vertexMap[serial]].measures[measure->Parent()] = measure; Loading @@ -613,10 +618,7 @@ namespace Isis { if (QString::compare(sn, serial) != 0) { bool edgeAdded = addEdge(serial, sn); if (edgeAdded) { emit networkModified(GraphModified); } addEdge(serial, sn); } } } Loading Loading @@ -718,11 +720,7 @@ namespace Isis { QString sn = cm->GetCubeSerialNumber(); if (QString::compare(sn, serial) != 0) { bool edgeAdded = addEdge(serial, sn); if (edgeAdded) { emit networkModified(GraphModified); } addEdge(serial, sn); } } } Loading Loading @@ -847,9 +845,7 @@ namespace Isis { QString sn = adjacentMeasure->GetCubeSerialNumber(); if (!adjacentMeasure->IsIgnored() && m_vertexMap.contains(sn)) { if (QString::compare(serial, sn) !=0) { if( removeEdge(serial, sn) ) { emit networkModified(GraphModified); } removeEdge(serial, sn); } } } Loading isis/src/control/objs/ControlNet/ControlNet.h +17 −15 Original line number Diff line number Diff line Loading @@ -254,7 +254,9 @@ namespace Isis { * code cleaner. * @history 2018-06-25 Jesse Mapel - Fixed ignoring measures with ignored adjacent measures * incorrectly modifying the edge between the two image vertices. * @history 2018-07-06 Jesse Mapel - Modified addEdge and removeEdge to always emit a graph * modified signal if an edge is added or removed. Added graph * modified signal when a vertex is added. */ class ControlNet : public QObject { Q_OBJECT Loading isis/src/control/objs/ControlNetVitals/ControlNetVitals.cpp +2 −0 Original line number Diff line number Diff line Loading @@ -142,6 +142,8 @@ namespace Isis { else { m_pointMeasureCounts[numValidMeasures]++; } m_numMeasures = m_controlNet->GetNumMeasures(); validate(); } Loading Loading
isis/src/control/objs/ControlNet/ControlNet.cpp +23 −27 Original line number Diff line number Diff line Loading @@ -401,6 +401,7 @@ namespace Isis { newImage.serial = sn; ImageVertex newVertex = boost::add_vertex(newImage, m_controlGraph); m_vertexMap.insert(sn, newVertex); emit networkModified(GraphModified); } } Loading @@ -422,7 +423,6 @@ namespace Isis { } } } emit newMeasure(measure); } emit newPoint(point); } Loading @@ -448,6 +448,9 @@ namespace Isis { m_vertexMap[targetSerial], m_controlGraph); m_controlGraph[connection].strength++; if (edgeAdded) { emit networkModified(GraphModified); } return edgeAdded; } Loading Loading @@ -475,6 +478,7 @@ namespace Isis { boost::remove_edge(m_vertexMap[sourceSerial], m_vertexMap[targetSerial], m_controlGraph); emit networkModified(GraphModified); return true; } Loading Loading @@ -599,6 +603,7 @@ namespace Isis { newImage.serial = serial; ImageVertex newVertex = boost::add_vertex(newImage, m_controlGraph); m_vertexMap.insert(serial, newVertex); emit networkModified(GraphModified); } m_controlGraph[m_vertexMap[serial]].measures[measure->Parent()] = measure; Loading @@ -613,10 +618,7 @@ namespace Isis { if (QString::compare(sn, serial) != 0) { bool edgeAdded = addEdge(serial, sn); if (edgeAdded) { emit networkModified(GraphModified); } addEdge(serial, sn); } } } Loading Loading @@ -718,11 +720,7 @@ namespace Isis { QString sn = cm->GetCubeSerialNumber(); if (QString::compare(sn, serial) != 0) { bool edgeAdded = addEdge(serial, sn); if (edgeAdded) { emit networkModified(GraphModified); } addEdge(serial, sn); } } } Loading Loading @@ -847,9 +845,7 @@ namespace Isis { QString sn = adjacentMeasure->GetCubeSerialNumber(); if (!adjacentMeasure->IsIgnored() && m_vertexMap.contains(sn)) { if (QString::compare(serial, sn) !=0) { if( removeEdge(serial, sn) ) { emit networkModified(GraphModified); } removeEdge(serial, sn); } } } Loading
isis/src/control/objs/ControlNet/ControlNet.h +17 −15 Original line number Diff line number Diff line Loading @@ -254,7 +254,9 @@ namespace Isis { * code cleaner. * @history 2018-06-25 Jesse Mapel - Fixed ignoring measures with ignored adjacent measures * incorrectly modifying the edge between the two image vertices. * @history 2018-07-06 Jesse Mapel - Modified addEdge and removeEdge to always emit a graph * modified signal if an edge is added or removed. Added graph * modified signal when a vertex is added. */ class ControlNet : public QObject { Q_OBJECT Loading
isis/src/control/objs/ControlNetVitals/ControlNetVitals.cpp +2 −0 Original line number Diff line number Diff line Loading @@ -142,6 +142,8 @@ namespace Isis { else { m_pointMeasureCounts[numValidMeasures]++; } m_numMeasures = m_controlNet->GetNumMeasures(); validate(); } Loading