#include <glimsproject.h>
Creation of a GLIMSProject results in an initialized GLIMSDataset and ties menu actions pertaining to the dialogs. This can be saved or opened from it's XML serialization routines or a new project can be created.
This also provides routines that import/export a shapefile set that corresponds to a GLIMS ingest.
Definition at line 48 of file glimsproject.h.
Public Slots | |
bool | open () |
Open a project. | |
bool | create () |
Create a project. | |
bool | save () |
Save the current project. | |
bool | saveAs () |
Save the current work to a new project file. | |
void | openConfigDlg () |
Show the Configuration dialog, which contains the panels for displaying and modifying Image, Session, Line, and Glacier ID information. | |
void | exportGLIMSIngest () |
Export the current project to GLIMS Shapefile format. | |
QString | importGLIMSIngestImageInfo () |
Start importing GLIMS ingestion shapefiles. | |
void | importGLIMSIngestData () |
Finish importing GLIMS ingestion shapefiles. | |
void | importSegmentsFromShapefile () |
Import vector data (glacier outlines/segments) from a generic shapefile. | |
void | importGIDsFromShapefile () |
Import vector data (points, GLIMS IDs) from a generic shapefile. | |
void | setUnsaved () |
Sets status of project to "not saved." Connected to datasetChanged() signals from other classes. | |
bool | close () |
Close the project. | |
bool | validate () |
Validate the project. | |
Signals | |
void | finishedIngestion () |
void | finishedValidation () |
Public Member Functions | |
GLIMSProject (QWidget *, ViewSet *) | |
virtual | ~GLIMSProject () |
virtual bool | toXML (QDomDocument &doc, QDomElement &elem, std::string id="") |
Writes project metadata to the XML-formatted project file. | |
virtual bool | fromXML (QDomElement &elem) |
Reads project metadata from the XML-formatted project file. | |
Image * | getImage () |
Returns a pointer to the Image object, which contains the base image and related image information for the project. | |
GLIMSDataset * | getDataset () |
Returns a pointer to the GLIMSDataset object, which contains all the structures holding metadata, user-digitized data, the base image, and session information. | |
VectorLayerSet * | getVectorLayerSet () |
Returns a pointer to the Vector layer. | |
VectorEditor * | getVectorEditor () |
Returns a pointer to the VectorEditor. | |
ViewSet * | getViewSet () |
Returns a pointer to the ViewSet, i.e. | |
QDate * | getVersion () |
Returns the GLIMSView XML version, which is stored as a date. | |
bool | isOpen () |
Is there a project open? | |
void | setTimeStamp () |
Creates a timestamp when the project is exported to GLIMS Shapefile format. | |
std::string | getFileName () |
Return the filename of the project. | |
void | putLoc (QString newLoc) |
Push QString file location (for use by ingest functions). | |
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 () |
Protected Member Functions | |
void | setup (Image *) |
bool | checkShapefileSet (const std::string &prefix) const |
Checks a GLIMS Shapefile set to see if it's valid: (1) whether all files exists (2) whether the files contain the correct data fields. | |
int | findIndex (const std::string &str, const std::vector< Attr > &attr) |
Searches attributes list for match and returns index of the matching index value (or 0 if not found). | |
int | findIndexOfIdOrValue (const std::string &str, const std::vector< Attr > &attr) |
Searches attributes list for match in either ID or Value, and returns index of the matching index value (or 0 if not found). | |
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 | |
Image * | mImg |
ImageState | mImgState |
GLIMSDataset * | mGData |
VectorLayerSet * | mLyrSet |
VectorEditor * | mEditor |
ViewSet * | mViewSet |
ConfigDlg * | mConfigDlg |
ValidationReportDlg * | mValRepDlg |
bool | mOpen |
bool | mNeedSave |
QWidget * | mParent |
QDate * | mVersion |
std::string | mFileName |
ValidationReport * | mValidationReport |
QString | mLoc |
QDate | mCurrentVersion |
Definition at line 4 of file glimsproject.cpp.
References GLIMSGlobals::loadGlobals(), mConfigDlg, mEditor, mFileName, mGData, mImg, mLyrSet, mNeedSave, mOpen, mParent, mValidationReport, mVersion, and mViewSet.
virtual GLIMSProject::~GLIMSProject | ( | ) | [inline, virtual] |
Definition at line 127 of file glimsproject.h.
void GLIMSProject::setup | ( | Image * | img | ) | [protected] |
Definition at line 78 of file glimsproject.cpp.
References VectorLayerSet::addLayer(), finishedValidation(), GLIMSDataset::getGIDData(), GLIMSDataset::getLineData(), mConfigDlg, mEditor, mGData, mImg, mLyrSet, mParent, mValidationReport, mValRepDlg, mViewSet, VectorLayerSet::setActiveLayer(), and setUnsaved().
Referenced by create(), fromXML(), and importGLIMSIngestImageInfo().
bool GLIMSProject::checkShapefileSet | ( | const std::string & | prefix | ) | const [protected] |
Checks a GLIMS Shapefile set to see if it's valid: (1) whether all files exists (2) whether the files contain the correct data fields.
Definition at line 1766 of file glimsproject.cpp.
References DBFHeader::fieldName.
Referenced by importGLIMSIngestData(), and importGLIMSIngestImageInfo().
int GLIMSProject::findIndex | ( | const std::string & | str, | |
const std::vector< Attr > & | attr | |||
) | [inline, protected] |
Searches attributes list for match and returns index of the matching index value (or 0 if not found).
Definition at line 89 of file glimsproject.h.
Referenced by importGLIMSIngestData().
int GLIMSProject::findIndexOfIdOrValue | ( | const std::string & | str, | |
const std::vector< Attr > & | attr | |||
) | [inline, protected] |
Searches attributes list for match in either ID or Value, and returns index of the matching index value (or 0 if not found).
Definition at line 110 of file glimsproject.h.
Referenced by importGIDsFromShapefile(), and importSegmentsFromShapefile().
bool GLIMSProject::toXML | ( | QDomDocument & | doc, | |
QDomElement & | elem, | |||
std::string | id = "" | |||
) | [virtual] |
Writes project metadata to the XML-formatted project file.
Implements XMLSerializeable.
Definition at line 127 of file glimsproject.cpp.
References Image::getImageState(), mGData, mImg, GLIMSDataset::toXML(), and ImageState::toXML().
bool GLIMSProject::fromXML | ( | QDomElement & | elem | ) | [virtual] |
Reads project metadata from the XML-formatted project file.
Implements XMLSerializeable.
Definition at line 137 of file glimsproject.cpp.
References GLIMSDataset::fromXML(), ImageState::fromXML(), mConfigDlg, mFileName, ImageState::mFileName, mGData, mImgState, ImageState::mType, mVersion, Image::openImage(), ConfigDlg::resetAll(), Image::setBandSel(), setup(), XMLSerializeable::stringToQDate(), and GLIMSDataset::updateVersion().
Image* GLIMSProject::getImage | ( | ) | [inline] |
Returns a pointer to the Image object, which contains the base image and related image information for the project.
Definition at line 148 of file glimsproject.h.
Referenced by ImageInterface::getImage(), ImageInterface::getImageFormat(), GtoSConverter::getSelectedShapes(), MainToolbar::setMemBuf(), and MainToolbar::setupProj().
GLIMSDataset* GLIMSProject::getDataset | ( | ) | [inline] |
Returns a pointer to the GLIMSDataset object, which contains all the structures holding metadata, user-digitized data, the base image, and session information.
Definition at line 156 of file glimsproject.h.
Referenced by ImageCalculatorDialog::buildDialog(), ImageCalculator::calculate(), and GtoSConverter::getSelectedShapeList().
VectorLayerSet* GLIMSProject::getVectorLayerSet | ( | ) | [inline] |
Returns a pointer to the Vector layer.
Definition at line 162 of file glimsproject.h.
Referenced by MainToolbar::setGIDTool(), MainToolbar::setLineTool(), and MainToolbar::setupProj().
VectorEditor* GLIMSProject::getVectorEditor | ( | ) | [inline] |
Returns a pointer to the VectorEditor.
Definition at line 168 of file glimsproject.h.
Referenced by MainToolbar::setupProj().
ViewSet* GLIMSProject::getViewSet | ( | ) | [inline] |
Returns a pointer to the ViewSet, i.e.
the windows showing the image and digitized vector data at various zoom levels and information about selection coordinates
Definition at line 176 of file glimsproject.h.
Referenced by ImageCalculator::calculate().
QDate* GLIMSProject::getVersion | ( | ) | [inline] |
Returns the GLIMSView XML version, which is stored as a date.
The GLIMSView XML version is used to "correct" XML changes when functions related to reading/writing the XML project file are modified to the point of actually altering how the XML is written and what values/data are stored.
Definition at line 186 of file glimsproject.h.
bool GLIMSProject::isOpen | ( | ) | [inline] |
Is there a project open?
Definition at line 192 of file glimsproject.h.
Referenced by MainToolbar::newProject().
void GLIMSProject::setTimeStamp | ( | ) |
Creates a timestamp when the project is exported to GLIMS Shapefile format.
The timestamp is reflected in the project as the "analysis time"
Definition at line 1728 of file glimsproject.cpp.
References GLIMSDataset::getSession(), Session::manaly_time, and mGData.
Referenced by exportGLIMSIngest().
std::string GLIMSProject::getFileName | ( | ) | [inline] |
Return the filename of the project.
Definition at line 205 of file glimsproject.h.
Referenced by MainToolbar::openProject().
void GLIMSProject::putLoc | ( | QString | newLoc | ) | [inline] |
Push QString file location (for use by ingest functions).
Definition at line 213 of file glimsproject.h.
bool GLIMSProject::open | ( | ) | [slot] |
Open a project.
Definition at line 67 of file glimsproject.cpp.
References XMLSerializeable::fromXMLFile(), mFileName, and mOpen.
Referenced by MainToolbar::openProject().
bool GLIMSProject::create | ( | ) | [slot] |
Create a project.
Definition at line 42 of file glimsproject.cpp.
References GLIMSDataset::getLineData(), GLIMSLineData::loadDefaultSet(), mGData, mOpen, Image::openImage(), and setup().
Referenced by MainToolbar::newProject().
bool GLIMSProject::save | ( | ) | [slot] |
Save the current project.
Definition at line 20 of file glimsproject.cpp.
References mFileName, mNeedSave, saveAs(), and XMLSerializeable::toXMLFile().
Referenced by close(), and MainToolbar::saveProject().
bool GLIMSProject::saveAs | ( | ) | [slot] |
Save the current work to a new project file.
Definition at line 31 of file glimsproject.cpp.
References mFileName, mNeedSave, and XMLSerializeable::toXMLFile().
Referenced by save(), and MainToolbar::saveProjectAs().
void GLIMSProject::openConfigDlg | ( | ) | [slot] |
Show the Configuration dialog, which contains the panels for displaying and modifying Image, Session, Line, and Glacier ID information.
Definition at line 196 of file glimsproject.cpp.
References mConfigDlg.
Referenced by MainToolbar::openConfigDlg().
void GLIMSProject::exportGLIMSIngest | ( | ) | [slot] |
Export the current project to GLIMS Shapefile format.
This format is made up of four shapefiles that contain the Image, Session, GlacierID, and Line Segment data and information. This format is the "final product" created by the analyst for submission to the GLIMS project. The information in the shapefiles is ingested into a geospatial database.
Definition at line 202 of file glimsproject.cpp.
References GLIMSGIDData::getDefSet(), GLIMSDataset::getGIDData(), GLIMSDataset::getImageInf(), GLIMSLineData::getLDFSet(), GLIMSDataset::getLineData(), Image::getLL(), VectorData::getLLSet(), GLIMSDataset::getSession(), Image::height(), ValidationReportDlg::hide(), Session::m3d_desc, GlacierIDDef::mAbzoneArea, Session::manaly_time, Session::manlst_givn, Session::manlst_surn, GlacierIDDef::mArea, mConfigDlg, Session::mDataSrc, GlacierIDDef::mDomMassSrc, GlacierIDDef::mELA, GlacierIDDef::mELADesc, GlacierIDDef::mFChar, GlacierIDDef::mForm, mGData, GlacierLine::mGID, LineDef::mGlacType, GLIMSGlobals::mGlbFtrs, GLIMSGlobals::mGlbGlacTypes, GLIMSGlobals::mGlbLbls, GLIMSGlobals::mGlbMDF, GLIMSGlobals::mGlbTypes, LineDef::mGXUncert, LineDef::mGYUncert, mImg, ImageInf::mInstID, LineDef::mLabel, GlacierIDDef::mLat, GlacierIDDef::mLChar, GlacierLine::mLDF, GlacierIDDef::mLength, LineDef::mLFeature, LineDef::mLMat, GlacierIDDef::mLocalID, GlacierIDDef::mLon, LineDef::mLXUncert, LineDef::mLYUncert, GlacierIDDef::mName, GlacierIDDef::mParentID, GlacierIDDef::mPrimCsfn, Session::mProcDesc, Session::mRC_ID, LineDef::mRFeature, LineDef::mRMat, GlacierIDDef::mSnowLineElev, GlacierIDDef::mSpeed, GlacierIDDef::mTongueAct, LineDef::mType, mValRepDlg, GlacierIDDef::mWGMSID, GlacierIDDef::mWidth, ConfigDlg::resetAll(), Image::setCornerPnts(), setTimeStamp(), Line::size(), GlacierIDDef::toString(), validate(), and Image::width().
Referenced by MainToolbar::exportGLIMSIngest().
QString GLIMSProject::importGLIMSIngestImageInfo | ( | ) | [slot] |
Start importing GLIMS ingestion shapefiles.
Gets file set from user, imports image information, returns directory location so it can be passed to importGLIMSIngestData to finish the import.
For internal use only.
Bad cross-platform here, but not finding better (note by Dan Mingus)
Definition at line 1379 of file glimsproject.cpp.
References checkShapefileSet(), GLIMSDataset::getImageInf(), ImageInf::mAquiDateTime, ImageInf::mCenterLat, ImageInf::mCenterLatUnc, ImageInf::mCenterLon, ImageInf::mCenterLonUnc, ImageInf::mCloudPct, mGData, ImageInf::mImageAzim, ImageInf::mInstID, ImageInf::mInstrument_azimuth, ImageInf::mInstrument_zenith, mLoc, ImageInf::mLocURL, mOpen, ImageInf::mOrigID, ImageInf::mProjection, ImageInf::mSunAzim, ImageInf::mSunElev, Image::openImage(), and setup().
Referenced by MainToolbar::importGLIMSIngest().
void GLIMSProject::importGLIMSIngestData | ( | ) | [slot] |
Finish importing GLIMS ingestion shapefiles.
Takes file location returned by importGLIMSIngestImageInfo, imports session, segments, glacier shapefiles.
For internal use only.
Bad cross-platform here, but not finding better (note by Dan Mingus)
Definition at line 1493 of file glimsproject.cpp.
References GLIMSGIDData::addGID(), GLIMSLineData::addLDF(), GLIMSLineData::addLineLL(), GLIMSLineData::addLineNodeLL(), checkShapefileSet(), findIndex(), finishedIngestion(), GLIMSGIDData::getDefSet(), GLIMSDataset::getGIDData(), GLIMSLineData::getLDFSet(), GLIMSDataset::getLineData(), GLIMSDataset::getSession(), GlacierIDDef::mAbzoneArea, GlacierIDDef::mArea, LineDef::mColor, mConfigDlg, GlacierIDDef::mDomMassSrc, GlacierIDDef::mELA, GlacierIDDef::mELADesc, GlacierIDDef::mFChar, GlacierIDDef::mForm, mGData, LineDef::mGlacType, GLIMSGlobals::mGlbFtrs, GLIMSGlobals::mGlbGlacTypes, GLIMSGlobals::mGlbLbls, GLIMSGlobals::mGlbMDF, GLIMSGlobals::mGlbTypes, LineDef::mGXUncert, LineDef::mGYUncert, LineDef::mLabel, GlacierIDDef::mLat, GlacierIDDef::mLChar, GlacierIDDef::mLength, LineDef::mLFeature, LineDef::mLMat, mLoc, GlacierIDDef::mLocalID, GlacierIDDef::mLon, LineDef::mLXUncert, LineDef::mLYUncert, GlacierIDDef::mName, mOpen, GlacierIDDef::mParentID, GlacierIDDef::mPrimCsfn, Session::mRC_ID, LineDef::mRFeature, LineDef::mRMat, GlacierIDDef::mSnowLineElev, GlacierIDDef::mSpeed, LineDef::mStyle, GlacierIDDef::mTongueAct, LineDef::mType, mViewSet, GlacierIDDef::mWGMSID, LineDef::mWidth, GlacierIDDef::mWidth, ConfigDlg::refreshAll(), ViewSet::repaintViews(), GLIMSLineData::setGID(), GLIMSLineData::setLDF(), VectorData::size(), LineDefSet::size(), Node::x, Node::y, and Node::z.
void GLIMSProject::importSegmentsFromShapefile | ( | ) | [slot] |
Import vector data (glacier outlines/segments) from a generic shapefile.
Definition at line 1036 of file glimsproject.cpp.
References GLIMSGIDData::addGID(), GLIMSLineData::addLDF(), GLIMSLineData::addLineLL(), GLIMSLineData::addLineNodeLL(), findIndexOfIdOrValue(), finishedIngestion(), GLIMSGIDData::getDefSet(), GLIMSDataset::getGIDData(), GLIMSLineData::getLDFSet(), GLIMSDataset::getLineData(), LineDef::mColor, mConfigDlg, mGData, LineDef::mGlacType, GLIMSGlobals::mGlbFtrs, GLIMSGlobals::mGlbGlacTypes, GLIMSGlobals::mGlbLbls, GLIMSGlobals::mGlbMDF, GLIMSGlobals::mGlbTypes, LineDef::mGXUncert, LineDef::mGYUncert, LineDef::mLabel, LineDef::mLFeature, LineDef::mLMat, LineDef::mLXUncert, LineDef::mLYUncert, mOpen, LineDef::mRFeature, LineDef::mRMat, LineDef::mStyle, LineDef::mType, mViewSet, LineDef::mWidth, ConfigDlg::refreshAll(), ViewSet::repaintViews(), GLIMSLineData::setGID(), GLIMSLineData::setLDF(), VectorData::size(), LineDefSet::size(), Node::x, Node::y, and Node::z.
Referenced by MainToolbar::importSegmentsFromShapefile().
void GLIMSProject::importGIDsFromShapefile | ( | ) | [slot] |
Import vector data (points, GLIMS IDs) from a generic shapefile.
Definition at line 655 of file glimsproject.cpp.
References GLIMSGIDData::addGID(), findIndexOfIdOrValue(), finishedIngestion(), GLIMSDataset::getGIDData(), GlacierIDDef::mAbzoneArea, GlacierIDDef::mArea, mConfigDlg, GlacierIDDef::mDomMassSrc, GlacierIDDef::mELA, GlacierIDDef::mELADesc, GlacierIDDef::mFChar, GlacierIDDef::mForm, mGData, GLIMSGlobals::mGlbDomMassSrc, GLIMSGlobals::mGlbForm, GLIMSGlobals::mGlbFrntChar, GLIMSGlobals::mGlbLonChar, GLIMSGlobals::mGlbPrimCsfn, GLIMSGlobals::mGlbTongueAct, GlacierIDDef::mLat, GlacierIDDef::mLChar, GlacierIDDef::mLength, GlacierIDDef::mLocalID, GlacierIDDef::mLon, GlacierIDDef::mName, mOpen, GlacierIDDef::mParentID, GlacierIDDef::mPrimCsfn, GlacierIDDef::mSnowLineElev, GlacierIDDef::mSpeed, GlacierIDDef::mTongueAct, mViewSet, GlacierIDDef::mWGMSID, GlacierIDDef::mWidth, ConfigDlg::refreshAll(), and ViewSet::repaintViews().
Referenced by MainToolbar::importGIDsFromShapefile().
void GLIMSProject::setUnsaved | ( | ) | [inline, slot] |
Sets status of project to "not saved." Connected to datasetChanged() signals from other classes.
Definition at line 358 of file glimsproject.h.
Referenced by setup().
bool GLIMSProject::close | ( | ) | [slot] |
Close the project.
Definition at line 1996 of file glimsproject.cpp.
References mConfigDlg, mEditor, mGData, mImg, mLyrSet, mNeedSave, mValidationReport, mValRepDlg, save(), and validate().
Referenced by MainToolbar::closeEvent().
bool GLIMSProject::validate | ( | ) | [slot] |
Validate the project.
Definition at line 2068 of file glimsproject.cpp.
References ValidationReport::clearReport(), finishedValidation(), GLIMSDataset::getGIDData(), GLIMSDataset::getImageInf(), GLIMSDataset::getLineData(), GLIMSDataset::getSession(), mGData, mValidationReport, mValRepDlg, ValidationReportDlg::show(), GLIMSGIDData::validate(), ImageInf::validate(), Session::validate(), and GLIMSLineData::validate().
Referenced by close(), and exportGLIMSIngest().
void GLIMSProject::finishedIngestion | ( | ) | [signal] |
Referenced by importGIDsFromShapefile(), importGLIMSIngestData(), and importSegmentsFromShapefile().
void GLIMSProject::finishedValidation | ( | ) | [signal] |
Referenced by setup(), and validate().
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(), ImageInf::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(), ImageInf::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(), ImageInf::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(), ImageInf::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 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(), save(), 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(), 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().
Image* GLIMSProject::mImg [protected] |
Definition at line 51 of file glimsproject.h.
Referenced by close(), exportGLIMSIngest(), GLIMSProject(), setup(), and toXML().
ImageState GLIMSProject::mImgState [protected] |
GLIMSDataset* GLIMSProject::mGData [protected] |
Definition at line 53 of file glimsproject.h.
Referenced by close(), create(), exportGLIMSIngest(), fromXML(), GLIMSProject(), importGIDsFromShapefile(), importGLIMSIngestData(), importGLIMSIngestImageInfo(), importSegmentsFromShapefile(), setTimeStamp(), setup(), toXML(), and validate().
VectorLayerSet* GLIMSProject::mLyrSet [protected] |
VectorEditor* GLIMSProject::mEditor [protected] |
ViewSet* GLIMSProject::mViewSet [protected] |
Definition at line 56 of file glimsproject.h.
Referenced by GLIMSProject(), importGIDsFromShapefile(), importGLIMSIngestData(), importSegmentsFromShapefile(), and setup().
ConfigDlg* GLIMSProject::mConfigDlg [protected] |
Definition at line 57 of file glimsproject.h.
Referenced by close(), exportGLIMSIngest(), fromXML(), GLIMSProject(), importGIDsFromShapefile(), importGLIMSIngestData(), importSegmentsFromShapefile(), openConfigDlg(), and setup().
ValidationReportDlg* GLIMSProject::mValRepDlg [protected] |
Definition at line 58 of file glimsproject.h.
Referenced by close(), exportGLIMSIngest(), setup(), and validate().
bool GLIMSProject::mOpen [protected] |
Definition at line 59 of file glimsproject.h.
Referenced by create(), GLIMSProject(), importGIDsFromShapefile(), importGLIMSIngestData(), importGLIMSIngestImageInfo(), importSegmentsFromShapefile(), and open().
bool GLIMSProject::mNeedSave [protected] |
Definition at line 60 of file glimsproject.h.
Referenced by close(), GLIMSProject(), save(), and saveAs().
QWidget* GLIMSProject::mParent [protected] |
QDate* GLIMSProject::mVersion [protected] |
std::string GLIMSProject::mFileName [protected] |
Definition at line 64 of file glimsproject.h.
Referenced by fromXML(), GLIMSProject(), open(), save(), and saveAs().
ValidationReport* GLIMSProject::mValidationReport [protected] |
Definition at line 66 of file glimsproject.h.
Referenced by close(), GLIMSProject(), setup(), and validate().
QString GLIMSProject::mLoc [protected] |
Definition at line 68 of file glimsproject.h.
Referenced by importGLIMSIngestData(), and importGLIMSIngestImageInfo().
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 |