Loading isis/src/qisis/objs/Image/Image.cpp +10 −0 Original line number Diff line number Diff line Loading @@ -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" Loading Loading @@ -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. Loading isis/src/qisis/objs/Image/Image.h +4 −0 Original line number Diff line number Diff line Loading @@ -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 { Loading @@ -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; Loading Loading
isis/src/qisis/objs/Image/Image.cpp +10 −0 Original line number Diff line number Diff line Loading @@ -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" Loading Loading @@ -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. Loading
isis/src/qisis/objs/Image/Image.h +4 −0 Original line number Diff line number Diff line Loading @@ -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 { Loading @@ -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; Loading