Commit 11e72df9 authored by Ian Humphrey's avatar Ian Humphrey
Browse files

add observationNumber() to Image class

parent 70ba38d3
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -24,6 +24,7 @@
#include "ImageDisplayProperties.h"
#include "ImagePolygon.h"
#include "IString.h"
#include "ObservationNumber.h"
#include "PolygonTools.h"
#include "Project.h"
#include "SerialNumber.h"
@@ -311,6 +312,15 @@ namespace Isis {
  }


  /**
   * @brief Returns the observation number of the Cube
   * @return QString A string representation of the observation number of the cube.
   */
  QString Image::observationNumber() {
    return ObservationNumber::Compose(*(cube()));
  }


  /**
   * @brief Returns the serial number of the Cube
   * @return @b QString  A string representation of the serial number of the cube.
+4 −0
Original line number Diff line number Diff line
@@ -91,6 +91,9 @@ namespace Isis {
   *                           located outside of the import image directories such as the updated
   *                           Images from a bundle run.  To improve efficiency, return from method
   *                           if the project root has not changed. Fixes #4849.
   *   @history 2018-06-30 Ian Humphrey - Added observationNumber() method so anything that grabs
   *                           an Image ProjectItem can easily get both the serial number and
   *                           observation number now. References #497.
   */

  class Image : public QObject {
@@ -110,6 +113,7 @@ namespace Isis {
      ImageDisplayProperties *displayProperties();
      const ImageDisplayProperties *displayProperties() const;
      QString fileName() const;
      QString observationNumber();
      QString serialNumber();
      geos::geom::MultiPolygon *footprint();
      const geos::geom::MultiPolygon *footprint() const;