Commit dbb51703 authored by Adam Goins's avatar Adam Goins
Browse files

Added documentation, removed commented out code.

parent 99c2320b
Loading
Loading
Loading
Loading
+2 −11
Original line number Diff line number Diff line
@@ -692,8 +692,7 @@ namespace Isis {

  /**
   * Updates the node for this measure's serial number to
   * reflect the deletion.  If this is the only measure left in the containing
   * node, then the node is deleted as well.
   * reflect the deletion.
   *
   * @param measure The measure removed from the network.
   */
@@ -715,14 +714,6 @@ namespace Isis {
    // for the old graph.
    m_controlGraph[m_vertexMap[serial]].measures.remove(measure->Parent());


// We decided in a meeting that we do not want to delete the node when all measures are removed.
    // If this caused the node to be empty, then delete the node.
//    if (m_controlGraph[m_vertexMap[serial]].measures.size() <= 0) {
//      boost::clear_vertex(m_vertexMap[serial], m_controlGraph);
//      boost::remove_vertex(m_vertexMap[serial], m_controlGraph);
//      m_vertexMap.remove(serial);
//    }
  }


+9 −0
Original line number Diff line number Diff line
@@ -259,6 +259,15 @@ namespace Isis {

    public:

      /**
       *  @brief Control Point Modification Types
       *
       *  This enum is designed to represent the different types of modifications that can be
       *  made to a ControlNet.
       *
       *  Swapped means the network was swapped with another network (ControlNet::Swap(ControlNet &other)).
       *  GraphModified means that a vertice or edge was added/removed from the graph..
       */
      enum ModType {
        Swapped,
        GraphModified
+17 −9
Original line number Diff line number Diff line
@@ -122,27 +122,35 @@ namespace Isis {


    private:
      //! The Control Network that the vitals class is observing.
      ControlNet *m_controlNet;

      //! The string representing the status of the net. Healthy, Weak, or Broken.
      QString m_status;
      //! The string providing details into the status of the network.
      QString m_statusDetails;

      //! A QList containing every island in the net. Each island consists of a QList containing
      //! All cube serials for that island.
      QList< QList< QString > > m_islandList;

      // The measureCount maps track how many points/images have how many measures.
      // For instance, if I wanted to know how many points have 3 measures I would query
      // the m_pointMeasureCounts with a key of 3 and it would return how many points
      // have 3 measures. The same is true for imageMeasureCounts, except for images.
      //! The measureCount maps track how many points/images have how many measures.
      //! For instance, if I wanted to know how many points have 3 measures I would query
      //! the m_pointMeasureCounts with a key of 3 and it would return how many points
      //! have 3 measures.
      QMap<int, int> m_pointMeasureCounts;
      //! The same is true for imageMeasureCounts, except for images.
      QMap<int, int> m_imageMeasureCounts;

      // The pointTypeCounts operates in the same fashion as the above two, except
      // that the key would be the ControlPoint::PointType you're searching for.
      // For instance, if I wanted to know how many points were fixed I would query
      // This map at key ControlPoint::Fixed and it would return how many fixed points there are.
      //! The pointTypeCounts operates in the same fashion as the above two, except
      //! that the key would be the ControlPoint::PointType you're searching for.
      //! For instance, if I wanted to know how many points were fixed I would query
      //!  This map at key ControlPoint::Fixed and it would return how many fixed points there are.
      QMap<ControlPoint::PointType, int> m_pointTypeCounts;

      //! The number of ignored points in the network.
      int m_numPointsIgnored;
      //! The number of edit locked points in the network.
      int m_numPointsLocked;
  };
};
+10 −0
Original line number Diff line number Diff line
@@ -428,6 +428,16 @@ namespace Isis {
//      ZConstrained = 5;
      };

      /**
       *  @brief Control Point Modification Types
       *
       *  This enum is designed to represent the different types of modifications that can be
       *  made to a ControlPoint.
       *
       *  EditLockModified means that the Control Point had it's edit lock flag changed.
       *  IgnoredModified means that the Control Measure had it's ignored flag changed.
       *  TypeModified means that the ControlPoint::PointType for this control point was modified.
       */
      enum ModType {
        EditLockModified,
        IgnoredModified,