Commit 1069ed9e authored by Adam Goins's avatar Adam Goins
Browse files

Added m_numPoints and m_numMeasures member variables.

parent 7577a59a
Loading
Loading
Loading
Loading
+10 −3
Original line number Diff line number Diff line
@@ -56,8 +56,10 @@ namespace Isis {

    m_islandList = m_controlNet->GetSerialConnections();

    m_numPoints = 0;
    m_numPointsIgnored = 0;
    m_numPointsLocked = 0;
    m_numMeasures = m_controlNet->GetNumMeasures();

    m_pointMeasureCounts.clear();
    m_imageMeasureCounts.clear();
@@ -117,7 +119,9 @@ namespace Isis {
   *  @param point The ControlPoint being added to the network.
   */
  void ControlNetVitals::addPoint(ControlPoint *point) {

    emitHistoryEntry("Control Point Added", point->GetId(), "", "");
    m_numPoints++;

    if (point->IsIgnored()) {
      m_numPointsIgnored++;
@@ -271,6 +275,7 @@ namespace Isis {
  void ControlNetVitals::deletePoint(ControlPoint *point) {

    emitHistoryEntry("Control Point Deleted", point->GetId(), "", "");
    m_numPoints--;

    if (point->IsIgnored()) {
      m_numPointsIgnored--;
@@ -305,6 +310,8 @@ namespace Isis {
   */
  void ControlNetVitals::addMeasure(ControlMeasure *measure) {
    emitHistoryEntry("Control Measure Added", measure->GetCubeSerialNumber(), "", "");
    m_numMeasures++;


    ControlPoint *point = measure->Parent();
    if (point) {
@@ -390,7 +397,7 @@ namespace Isis {
  void ControlNetVitals::deleteMeasure(ControlMeasure *measure) {

    emitHistoryEntry("Control Measure Deleted", measure->GetCubeSerialNumber(), "", "");

    m_numMeasures--;

    ControlPoint *point = measure->Parent();
    if (point) {
@@ -505,7 +512,7 @@ namespace Isis {
   *  @return The number of points in the Control Network.
   */
  int ControlNetVitals::numPoints() {
    return m_controlNet->GetNumPoints();
    return m_numPoints;
  }


@@ -599,7 +606,7 @@ namespace Isis {
   *  @return The number of measures in the Control Network.
   */
  int ControlNetVitals::numMeasures() {
    return m_controlNet->GetNumMeasures();
    return m_numMeasures;
  }


+3 −1
Original line number Diff line number Diff line
@@ -142,8 +142,10 @@ namespace Isis {
      // This map at key ControlPoint::Fixed and it would return how many fixed points there are.
      QMap<ControlPoint::PointType, int> m_pointTypeCounts;

      int m_numPoints;
      int m_numPointsIgnored;
      int m_numPointsLocked;
      int m_numMeasures;
  };
};