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

Added hasTargetRadii() and targetRadii() to ControlNetVersioner.

Added history comment.
parent 4963a5e3
Loading
Loading
Loading
Loading
+19 −0
Original line number Diff line number Diff line
@@ -166,6 +166,25 @@ namespace Isis {
  }


  /**
  * Returns true if the targetRadii in the header has values.
  *
  * @return @b boolean True if the targetRadii in the header is populated.
  */
  bool ControlNetVersioner::hasTargetRadii() const {
    return m_header.targetRadii.empty() ? false : true;
  }

  /**
  * Returns the targetRadii Distance vector located in the header.
  *
  * @return @b std::vector<Distance> A vector containing the target body radii.
  */
  std::vector<Distance> ControlNetVersioner::targetRadii() const {
    return m_header.targetRadii;
  }


  /**
   * Returns the number of points that have been read in or are ready to write out.
   *
+5 −0
Original line number Diff line number Diff line
@@ -406,6 +406,9 @@ namespace Isis {
   *   @history 2018-03-28 Adam Goins - Added targetRadii groups to the header. Changed the
   *                           versioner to write these values out in a targetRadii group for
   *                           both binary V0005 and PvlV0005 networks. Fixes #5361.
   *   @history 2018-04-05 Adam Goins - Added hastargetRadii() and targetRadii() to the versioner
   *                           so that these values can be grabbed from a ControlNet on read.
   *                           Also Fixes #5361.
   */
  class ControlNetVersioner {

@@ -420,6 +423,8 @@ namespace Isis {
      QString lastModificationDate() const;
      QString description() const;
      QString userName() const;
      bool hasTargetRadii() const;
      std::vector<Distance> targetRadii() const;

      int numPoints() const;
      ControlPoint *takeFirstPoint();