#include <imageinf.h>
This is a class representation of the images shapefile described in the GLIMS data transfer specifications.
Definition at line 41 of file imageinf.h.
Public Member Functions | |
ImageInf () | |
Constructor sets all float values to -999.0. | |
virtual | ~ImageInf () |
virtual bool | toXML (QDomDocument &doc, QDomElement &elem, std::string id="") |
virtual bool | fromXML (QDomElement &elem) |
bool | validate (ValidationReport *valRep) |
Check that required session information is present. | |
bool | validIso8601DateTime (std::string str) |
Do the characters in the input string represent a complete and valid date/time string? | |
bool | validIso8601DateTime (QString &str) |
Do the characters in the input string represent a complete and valid date/time string? | |
virtual bool | toXMLFile (std::string fname, std::string docname) |
virtual bool | fromXMLFile (std::string fname, std::string docname) |
virtual void | setCurrentVersion (std::string versionString) |
virtual void | setCurrentVersion (QDate versionQDate) |
virtual QDate | getCurrentVersion () |
virtual std::string | getCurrentVersionStr () |
Public Attributes | |
std::string | mInstID |
Instrument ID. | |
std::string | mOrigID |
Origin ID. | |
std::string | mLocURL |
Location URL. | |
std::string | mAquiDateTime |
Image Acquisition Date/Time. | |
double | mCenterLat |
Center Latitude of Image. | |
double | mCenterLon |
Center Longitude of Image. | |
double | mCenterLatUnc |
Uncertainty of Center Latitude of Image. | |
double | mCenterLonUnc |
Uncertainty of Center Longitude of Image. | |
double | mImageAzim |
Image Azimuth. | |
double | mCloudPct |
Percentage of Cloud Cover in the Image. | |
double | mSunAzim |
Sun Azimuth. | |
double | mSunElev |
Sun Elevation. | |
double | mInstrument_azimuth |
Instrument Azimuth. | |
double | mInstrument_zenith |
Instrument Zenith. | |
std::string | mProjection |
Projection. | |
Node | mP1 |
Corner point. | |
Node | mP2 |
Corner point. | |
Node | mP3 |
Corner point. | |
Node | mP4 |
Corner point. | |
Protected Member Functions | |
virtual bool | writeTextTag (QDomDocument &doc, QDomElement &elem, std::string tagName, std::string text, std::string id="") |
virtual bool | writeIntTag (QDomDocument &doc, QDomElement &elem, std::string tagName, int val, std::string id="") |
virtual bool | writeDoubleTag (QDomDocument &doc, QDomElement &elem, std::string tagName, double val, std::string id="") |
virtual std::string | readTextTag (QDomElement elem, std::string tagName="", std::string id="") |
virtual int | readIntTag (QDomElement elem, std::string tagName="", std::string id="") |
virtual double | readDoubleTag (QDomElement elem, std::string tagName="", std::string id="") |
virtual QDomElement | createBaseTag (QDomDocument &doc, QDomElement &elem, std::string id, std::string tagName) |
virtual QDomElement | getElemByTagName (QDomElement &elem, std::string name) |
virtual std::string | qDateToString (const QDate *aQDate) |
virtual bool | stringToQDate (const std::string aStrDate, QDate *aQDate) |
virtual std::string | qDateTimeToString (const QDateTime *aQDateTime) |
virtual bool | stringToQDateTime (const std::string aStrDateTime, QDateTime *aQDateTime) |
Protected Attributes | |
QDate | mCurrentVersion |
ImageInf::ImageInf | ( | ) | [inline] |
Constructor sets all float values to -999.0.
Definition at line 73 of file imageinf.h.
virtual ImageInf::~ImageInf | ( | ) | [inline, virtual] |
Definition at line 86 of file imageinf.h.
bool ImageInf::toXML | ( | QDomDocument & | doc, | |
QDomElement & | elem, | |||
std::string | id = "" | |||
) | [virtual] |
Implements XMLSerializeable.
Definition at line 8 of file imageinf.cpp.
References mAquiDateTime, mCenterLat, mCenterLatUnc, mCenterLon, mCenterLonUnc, mCloudPct, mImageAzim, mInstID, mInstrument_azimuth, mInstrument_zenith, mLocURL, mOrigID, mP1, mP2, mP3, mP4, mProjection, mSunAzim, mSunElev, Node::toXML(), XMLSerializeable::writeDoubleTag(), and XMLSerializeable::writeTextTag().
Referenced by GLIMSDataset::toXML().
bool ImageInf::fromXML | ( | QDomElement & | elem | ) | [virtual] |
Implements XMLSerializeable.
Definition at line 45 of file imageinf.cpp.
References Node::fromXML(), mAquiDateTime, mCenterLat, mCenterLatUnc, mCenterLon, mCenterLonUnc, mCloudPct, mImageAzim, mInstID, mInstrument_azimuth, mInstrument_zenith, mLocURL, mOrigID, mP1, mP2, mP3, mP4, mProjection, mSunAzim, mSunElev, XMLSerializeable::readDoubleTag(), and XMLSerializeable::readTextTag().
Referenced by GLIMSDataset::fromXML().
bool ImageInf::validate | ( | ValidationReport * | valRep | ) |
Check that required session information is present.
Definition at line 102 of file imageinf.cpp.
References ValidationReport::breakBegin(), ValidationReport::breakEnd(), mAquiDateTime, mCenterLat, mCenterLatUnc, mCenterLon, mCenterLonUnc, mCloudPct, mImageAzim, mInstID, mInstrument_azimuth, mInstrument_zenith, mLocURL, mOrigID, mProjection, mSunAzim, mSunElev, ValidationReport::reportError(), ValidationReport::reportWarning(), and validIso8601DateTime().
Referenced by GLIMSProject::validate().
bool ImageInf::validIso8601DateTime | ( | std::string | str | ) |
Do the characters in the input string represent a complete and valid date/time string?
Definition at line 225 of file imageinf.cpp.
Referenced by validate(), and ImageInfDlg::validIso8601DateTime().
bool ImageInf::validIso8601DateTime | ( | QString & | str | ) |
Do the characters in the input string represent a complete and valid date/time string?
Definition at line 234 of file imageinf.cpp.
bool XMLSerializeable::writeTextTag | ( | QDomDocument & | doc, | |
QDomElement & | elem, | |||
std::string | tagName, | |||
std::string | text, | |||
std::string | id = "" | |||
) | [protected, virtual, inherited] |
Definition at line 7 of file xmlserializeable.cpp.
Referenced by ViewState::toXML(), Session::toXML(), Plugin::toXML(), LineDef::toXML(), ImageState::toXML(), toXML(), GlacierIDDef::toXML(), and Attr::toXML().
virtual bool XMLSerializeable::writeIntTag | ( | QDomDocument & | doc, | |
QDomElement & | elem, | |||
std::string | tagName, | |||
int | val, | |||
std::string | id = "" | |||
) | [inline, protected, virtual, inherited] |
Definition at line 38 of file xmlserializeable.h.
Referenced by ZoomAttr::toXML(), ViewState::toXML(), Session::toXML(), LineDef::toXML(), ImageState::toXML(), GlacierLine::toXML(), and GlacierIDDef::toXML().
virtual bool XMLSerializeable::writeDoubleTag | ( | QDomDocument & | doc, | |
QDomElement & | elem, | |||
std::string | tagName, | |||
double | val, | |||
std::string | id = "" | |||
) | [inline, protected, virtual, inherited] |
Definition at line 49 of file xmlserializeable.h.
Referenced by ZoomAttr::toXML(), Rect::toXML(), Node::toXML(), LineDef::toXML(), toXML(), and GlacierIDDef::toXML().
std::string XMLSerializeable::readTextTag | ( | QDomElement | elem, | |
std::string | tagName = "" , |
|||
std::string | id = "" | |||
) | [protected, virtual, inherited] |
Definition at line 21 of file xmlserializeable.cpp.
Referenced by ViewState::fromXML(), Session::fromXML(), Plugin::fromXML(), LineDef::fromXML(), ImageState::fromXML(), fromXML(), GlacierIDDef::fromXML(), and Attr::fromXML().
virtual int XMLSerializeable::readIntTag | ( | QDomElement | elem, | |
std::string | tagName = "" , |
|||
std::string | id = "" | |||
) | [inline, protected, virtual, inherited] |
Definition at line 65 of file xmlserializeable.h.
Referenced by ZoomAttr::fromXML(), ViewState::fromXML(), Session::fromXML(), LineDef::fromXML(), ImageState::fromXML(), GlacierLine::fromXML(), and GlacierIDDef::fromXML().
virtual double XMLSerializeable::readDoubleTag | ( | QDomElement | elem, | |
std::string | tagName = "" , |
|||
std::string | id = "" | |||
) | [inline, protected, virtual, inherited] |
Definition at line 72 of file xmlserializeable.h.
Referenced by ZoomAttr::fromXML(), Rect::fromXML(), Node::fromXML(), LineDef::fromXML(), fromXML(), and GlacierIDDef::fromXML().
virtual QDomElement XMLSerializeable::createBaseTag | ( | QDomDocument & | doc, | |
QDomElement & | elem, | |||
std::string | id, | |||
std::string | tagName | |||
) | [inline, protected, virtual, inherited] |
Definition at line 79 of file xmlserializeable.h.
Referenced by ZoomAttr::toXML(), ViewState::toXML(), Session::toXML(), and MainToolbar::toXML().
QDomElement XMLSerializeable::getElemByTagName | ( | QDomElement & | elem, | |
std::string | name | |||
) | [protected, virtual, inherited] |
std::string XMLSerializeable::qDateToString | ( | const QDate * | aQDate | ) | [protected, virtual, inherited] |
Definition at line 135 of file xmlserializeable.cpp.
Referenced by XMLSerializeable::getCurrentVersionStr(), XMLSerializeable::qDateTimeToString(), and XMLSerializeable::toXMLFile().
bool XMLSerializeable::stringToQDate | ( | const std::string | aStrDate, | |
QDate * | aQDate | |||
) | [protected, virtual, inherited] |
Definition at line 170 of file xmlserializeable.cpp.
Referenced by GLIMSProject::fromXML(), XMLSerializeable::setCurrentVersion(), and XMLSerializeable::stringToQDateTime().
std::string XMLSerializeable::qDateTimeToString | ( | const QDateTime * | aQDateTime | ) | [protected, virtual, inherited] |
Definition at line 149 of file xmlserializeable.cpp.
References XMLSerializeable::qDateToString().
bool XMLSerializeable::stringToQDateTime | ( | const std::string | aStrDateTime, | |
QDateTime * | aQDateTime | |||
) | [protected, virtual, inherited] |
Definition at line 205 of file xmlserializeable.cpp.
References XMLSerializeable::stringToQDate().
bool XMLSerializeable::toXMLFile | ( | std::string | fname, | |
std::string | docname | |||
) | [virtual, inherited] |
Definition at line 87 of file xmlserializeable.cpp.
References XMLSerializeable::mCurrentVersion, XMLSerializeable::qDateToString(), and XMLSerializeable::toXML().
Referenced by MainToolbar::closeEvent(), LineSelectorDlg::exportFile(), PluginSet::importPlugin(), GLIMSProject::save(), GLIMSProject::saveAs(), and MainToolbar::~MainToolbar().
bool XMLSerializeable::fromXMLFile | ( | std::string | fname, | |
std::string | docname | |||
) | [virtual, inherited] |
Definition at line 53 of file xmlserializeable.cpp.
References XMLSerializeable::fromXML().
Referenced by MainToolbar::buildViews(), LineSelectorDlg::importFile(), LineDefSet::LineDefSet(), GLIMSGlobals::loadGlobals(), GLIMSProject::open(), and PluginSet::PluginSet().
void XMLSerializeable::setCurrentVersion | ( | std::string | versionString | ) | [virtual, inherited] |
Definition at line 249 of file xmlserializeable.cpp.
References XMLSerializeable::mCurrentVersion, and XMLSerializeable::stringToQDate().
Referenced by MainToolbar::setupProj().
void XMLSerializeable::setCurrentVersion | ( | QDate | versionQDate | ) | [virtual, inherited] |
QDate XMLSerializeable::getCurrentVersion | ( | ) | [virtual, inherited] |
std::string XMLSerializeable::getCurrentVersionStr | ( | ) | [virtual, inherited] |
Definition at line 262 of file xmlserializeable.cpp.
References XMLSerializeable::mCurrentVersion, and XMLSerializeable::qDateToString().
std::string ImageInf::mInstID |
Instrument ID.
Definition at line 45 of file imageinf.h.
Referenced by GLIMSProject::exportGLIMSIngest(), fromXML(), ImageInfDlg::ImageInfDlg(), GLIMSProject::importGLIMSIngestImageInfo(), ImageInfDlg::instIdChanged(), ImageInfDlg::loadData(), HdfEosFrmt::open(), toXML(), and validate().
std::string ImageInf::mOrigID |
Origin ID.
Definition at line 46 of file imageinf.h.
Referenced by fromXML(), ImageInfDlg::ImageInfDlg(), GLIMSProject::importGLIMSIngestImageInfo(), ImageInfDlg::loadData(), HdfEosFrmt::open(), ImageInfDlg::origIdChanged(), toXML(), and validate().
std::string ImageInf::mLocURL |
Location URL.
Definition at line 47 of file imageinf.h.
Referenced by ImageInfDlg::fnchanged(), fromXML(), ImageInfDlg::ImageInfDlg(), GLIMSProject::importGLIMSIngestImageInfo(), ImageInfDlg::loadData(), L7A_Nlaps::open(), L7A_Geotiff::open(), L7A_Fast::open(), HdfEosFrmt::open(), GDALFrmt::open(), toXML(), and validate().
std::string ImageInf::mAquiDateTime |
Image Acquisition Date/Time.
Definition at line 48 of file imageinf.h.
Referenced by ImageInfDlg::aquchanged(), NlapsFrmt::fillImageInf(), fromXML(), ImageInfDlg::getAquiDate(), ImageInfDlg::ImageInfDlg(), GLIMSProject::importGLIMSIngestImageInfo(), ImageInfDlg::loadData(), HdfEosFrmt::open(), toXML(), and validate().
double ImageInf::mCenterLat |
Center Latitude of Image.
Definition at line 49 of file imageinf.h.
Referenced by ImageInfDlg::cLatChanged(), NlapsFrmt::fillImageInf(), fromXML(), ImageInfDlg::ImageInfDlg(), GLIMSProject::importGLIMSIngestImageInfo(), ImageInfDlg::loadData(), L7A_Nlaps::open(), L7A_Geotiff::open(), L7A_Fast::open(), HdfEosFrmt::open(), GDALFrmt::open(), toXML(), GLIMSDataset::toXML(), and validate().
double ImageInf::mCenterLon |
Center Longitude of Image.
Definition at line 50 of file imageinf.h.
Referenced by ImageInfDlg::cLonChanged(), NlapsFrmt::fillImageInf(), fromXML(), ImageInfDlg::ImageInfDlg(), GLIMSProject::importGLIMSIngestImageInfo(), ImageInfDlg::loadData(), L7A_Nlaps::open(), L7A_Geotiff::open(), L7A_Fast::open(), HdfEosFrmt::open(), GDALFrmt::open(), toXML(), GLIMSDataset::toXML(), and validate().
double ImageInf::mCenterLatUnc |
Uncertainty of Center Latitude of Image.
Definition at line 51 of file imageinf.h.
Referenced by ImageInfDlg::cLatUncChanged(), fromXML(), ImageInfDlg::ImageInfDlg(), GLIMSProject::importGLIMSIngestImageInfo(), ImageInfDlg::loadData(), toXML(), and validate().
double ImageInf::mCenterLonUnc |
Uncertainty of Center Longitude of Image.
Definition at line 52 of file imageinf.h.
Referenced by ImageInfDlg::cLonUncChanged(), fromXML(), ImageInfDlg::ImageInfDlg(), GLIMSProject::importGLIMSIngestImageInfo(), ImageInfDlg::loadData(), toXML(), and validate().
double ImageInf::mImageAzim |
Image Azimuth.
Definition at line 53 of file imageinf.h.
Referenced by fromXML(), ImageInfDlg::ImageInfDlg(), ImageInfDlg::imgAzChanged(), GLIMSProject::importGLIMSIngestImageInfo(), ImageInfDlg::loadData(), HdfEosFrmt::open(), toXML(), and validate().
double ImageInf::mCloudPct |
Percentage of Cloud Cover in the Image.
Definition at line 54 of file imageinf.h.
Referenced by ImageInfDlg::cloudPctChanged(), fromXML(), ImageInfDlg::ImageInfDlg(), GLIMSProject::importGLIMSIngestImageInfo(), ImageInfDlg::loadData(), HdfEosFrmt::open(), toXML(), and validate().
double ImageInf::mSunAzim |
Sun Azimuth.
Definition at line 55 of file imageinf.h.
Referenced by fromXML(), ImageInfDlg::ImageInfDlg(), GLIMSProject::importGLIMSIngestImageInfo(), ImageInfDlg::loadData(), HdfEosFrmt::open(), ImageInfDlg::sunAzChanged(), toXML(), and validate().
double ImageInf::mSunElev |
Sun Elevation.
Definition at line 56 of file imageinf.h.
Referenced by fromXML(), ImageInfDlg::ImageInfDlg(), GLIMSProject::importGLIMSIngestImageInfo(), ImageInfDlg::loadData(), HdfEosFrmt::open(), ImageInfDlg::sunElevChanged(), toXML(), and validate().
Instrument Azimuth.
Definition at line 57 of file imageinf.h.
Referenced by fromXML(), ImageInfDlg::ImageInfDlg(), GLIMSProject::importGLIMSIngestImageInfo(), ImageInfDlg::instAzChanged(), ImageInfDlg::loadData(), HdfEosFrmt::open(), toXML(), and validate().
double ImageInf::mInstrument_zenith |
Instrument Zenith.
Definition at line 58 of file imageinf.h.
Referenced by fromXML(), ImageInfDlg::ImageInfDlg(), GLIMSProject::importGLIMSIngestImageInfo(), ImageInfDlg::instZenChanged(), ImageInfDlg::loadData(), HdfEosFrmt::open(), toXML(), and validate().
std::string ImageInf::mProjection |
Projection.
Definition at line 59 of file imageinf.h.
Referenced by NlapsFrmt::fillImageInf(), fromXML(), ImageInfDlg::ImageInfDlg(), GLIMSProject::importGLIMSIngestImageInfo(), ImageInfDlg::loadData(), HdfEosFrmt::open(), ImageInfDlg::projChanged(), toXML(), and validate().
Corner point.
Definition at line 61 of file imageinf.h.
Referenced by fromXML(), ImageFormat::setCornerPnts(), and toXML().
Corner point.
Definition at line 62 of file imageinf.h.
Referenced by fromXML(), ImageFormat::setCornerPnts(), and toXML().
Corner point.
Definition at line 63 of file imageinf.h.
Referenced by fromXML(), ImageFormat::setCornerPnts(), and toXML().
Corner point.
Definition at line 64 of file imageinf.h.
Referenced by fromXML(), ImageFormat::setCornerPnts(), and toXML().
QDate XMLSerializeable::mCurrentVersion [protected, inherited] |
Definition at line 29 of file xmlserializeable.h.
Referenced by XMLSerializeable::getCurrentVersion(), XMLSerializeable::getCurrentVersionStr(), XMLSerializeable::setCurrentVersion(), and XMLSerializeable::toXMLFile().
Home |
Search |
Disclaimers & Privacy |
Contact Us GLIMSView Maintainer: dsoltesz@usgs.gov |