#include <linedef.h>
Each line has a reference to zero or one of these.
Definition at line 27 of file linedef.h.
Public Member Functions | |
LineDef () | |
Constructor. | |
virtual bool | fromXML (QDomElement &elem) |
virtual bool | toXML (QDomDocument &doc, QDomElement &elem, std::string id="") |
bool | operator== (LineDef &ldf) |
bool | operator!= (LineDef &ldf) |
bool | validate (ValidationReport *valRep) |
Check that this line definition has required metadata. | |
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 | |
int | mGlacType |
int | mType |
int | mLabel |
int | mLMat |
int | mRMat |
float | mLXUncert |
float | mLYUncert |
float | mGXUncert |
float | mGYUncert |
int | mLFeature |
int | mRFeature |
int | mColor |
int | mStyle |
int | mWidth |
char * | mName |
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 |
LineDef::LineDef | ( | ) | [inline] |
Constructor.
Definition at line 47 of file linedef.h.
References mColor, mGlacType, mGXUncert, mGYUncert, mLabel, mLFeature, mLMat, mLXUncert, mLYUncert, mName, mRFeature, mRMat, mStyle, mType, and mWidth.
virtual bool LineDef::fromXML | ( | QDomElement & | elem | ) | [inline, virtual] |
Implements XMLSerializeable.
Definition at line 65 of file linedef.h.
References mColor, mGlacType, mGXUncert, mLabel, mLFeature, mLMat, mLXUncert, mLYUncert, mName, mRFeature, mRMat, mStyle, mType, mWidth, XMLSerializeable::readDoubleTag(), XMLSerializeable::readIntTag(), and XMLSerializeable::readTextTag().
Referenced by LineDefSet::fromXML().
virtual bool LineDef::toXML | ( | QDomDocument & | doc, | |
QDomElement & | elem, | |||
std::string | id = "" | |||
) | [inline, virtual] |
Implements XMLSerializeable.
Definition at line 88 of file linedef.h.
References mColor, mGlacType, mGXUncert, mGYUncert, mLabel, mLFeature, mLMat, mLXUncert, mLYUncert, mName, mRFeature, mRMat, mStyle, mType, mWidth, XMLSerializeable::writeDoubleTag(), XMLSerializeable::writeIntTag(), and XMLSerializeable::writeTextTag().
bool LineDef::operator== | ( | LineDef & | ldf | ) | [inline] |
bool LineDef::validate | ( | ValidationReport * | valRep | ) | [inline] |
Check that this line definition has required metadata.
Definition at line 144 of file linedef.h.
References mGlacType, mGXUncert, mGYUncert, mLabel, mLFeature, mLMat, mLXUncert, mLYUncert, mRFeature, mRMat, mType, ValidationReport::reportError(), and ValidationReport::reportWarning().
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(), 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(), 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(), 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(), 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(), 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(), 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 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().
Definition at line 29 of file linedef.h.
Referenced by ImageCalculatorDialog::buildDialog(), LineDefDlg::butOkPress(), GLIMSProject::exportGLIMSIngest(), fromXML(), GLIMSProject::importGLIMSIngestData(), GLIMSProject::importSegmentsFromShapefile(), LineDef(), LineSelectorDlg::loadList(), operator==(), LineDefDlg::setSelected(), toXML(), and validate().
int LineDef::mType |
Definition at line 30 of file linedef.h.
Referenced by LineDefDlg::butOkPress(), GLIMSProject::exportGLIMSIngest(), fromXML(), GLIMSProject::importGLIMSIngestData(), GLIMSProject::importSegmentsFromShapefile(), LineDef(), LineSelectorDlg::loadList(), operator==(), LineDefDlg::setSelected(), toXML(), and validate().
int LineDef::mLabel |
Definition at line 31 of file linedef.h.
Referenced by LineDefDlg::butOkPress(), GLIMSProject::exportGLIMSIngest(), fromXML(), GLIMSProject::importGLIMSIngestData(), GLIMSProject::importSegmentsFromShapefile(), LineDef(), LineSelectorDlg::loadList(), operator==(), LineDefDlg::setSelected(), toXML(), and validate().
int LineDef::mLMat |
Definition at line 32 of file linedef.h.
Referenced by LineDefDlg::butOkPress(), GLIMSProject::exportGLIMSIngest(), fromXML(), GLIMSProject::importGLIMSIngestData(), GLIMSProject::importSegmentsFromShapefile(), LineDef(), LineSelectorDlg::loadList(), operator==(), LineDefDlg::setSelected(), toXML(), and validate().
int LineDef::mRMat |
Definition at line 32 of file linedef.h.
Referenced by LineDefDlg::butOkPress(), GLIMSProject::exportGLIMSIngest(), fromXML(), GLIMSProject::importGLIMSIngestData(), GLIMSProject::importSegmentsFromShapefile(), LineDef(), LineSelectorDlg::loadList(), operator==(), LineDefDlg::setSelected(), toXML(), and validate().
float LineDef::mLXUncert |
Definition at line 33 of file linedef.h.
Referenced by LineDefDlg::butOkPress(), GLIMSProject::exportGLIMSIngest(), fromXML(), GLIMSProject::importGLIMSIngestData(), GLIMSProject::importSegmentsFromShapefile(), LineDef(), operator==(), LineDefDlg::setSelected(), toXML(), and validate().
float LineDef::mLYUncert |
Definition at line 33 of file linedef.h.
Referenced by LineDefDlg::butOkPress(), GLIMSProject::exportGLIMSIngest(), fromXML(), GLIMSProject::importGLIMSIngestData(), GLIMSProject::importSegmentsFromShapefile(), LineDef(), operator==(), LineDefDlg::setSelected(), toXML(), and validate().
float LineDef::mGXUncert |
Definition at line 34 of file linedef.h.
Referenced by LineDefDlg::butOkPress(), GLIMSProject::exportGLIMSIngest(), fromXML(), GLIMSProject::importGLIMSIngestData(), GLIMSProject::importSegmentsFromShapefile(), LineDef(), operator==(), LineDefDlg::setSelected(), toXML(), and validate().
float LineDef::mGYUncert |
Definition at line 34 of file linedef.h.
Referenced by LineDefDlg::butOkPress(), GLIMSProject::exportGLIMSIngest(), GLIMSProject::importGLIMSIngestData(), GLIMSProject::importSegmentsFromShapefile(), LineDef(), operator==(), LineDefDlg::setSelected(), toXML(), and validate().
Definition at line 35 of file linedef.h.
Referenced by LineDefDlg::butOkPress(), GLIMSProject::exportGLIMSIngest(), fromXML(), GLIMSProject::importGLIMSIngestData(), GLIMSProject::importSegmentsFromShapefile(), LineDef(), operator==(), LineDefDlg::setSelected(), toXML(), and validate().
Definition at line 35 of file linedef.h.
Referenced by LineDefDlg::butOkPress(), GLIMSProject::exportGLIMSIngest(), fromXML(), GLIMSProject::importGLIMSIngestData(), GLIMSProject::importSegmentsFromShapefile(), LineDef(), operator==(), LineDefDlg::setSelected(), toXML(), and validate().
int LineDef::mColor |
Definition at line 36 of file linedef.h.
Referenced by GLIMSLineData::addLine(), ImageCalculatorDialog::buildDialog(), LineDefDlg::butOkPress(), fromXML(), GLIMSProject::importGLIMSIngestData(), GLIMSProject::importSegmentsFromShapefile(), LineDef(), LineSelectorDlg::loadList(), LineDefDlg::setSelected(), toXML(), and GLIMSLineData::toXY().
int LineDef::mStyle |
Definition at line 37 of file linedef.h.
Referenced by GLIMSLineData::addLine(), ImageCalculatorDialog::buildDialog(), LineDefDlg::butOkPress(), fromXML(), GLIMSProject::importGLIMSIngestData(), GLIMSProject::importSegmentsFromShapefile(), LineDef(), LineSelectorDlg::loadList(), LineDefDlg::setSelected(), toXML(), and GLIMSLineData::toXY().
int LineDef::mWidth |
Definition at line 38 of file linedef.h.
Referenced by GLIMSLineData::addLine(), LineDefDlg::butOkPress(), fromXML(), GLIMSProject::importGLIMSIngestData(), GLIMSProject::importSegmentsFromShapefile(), LineDef(), LineSelectorDlg::loadList(), LineDefDlg::setSelected(), toXML(), and GLIMSLineData::toXY().
char* LineDef::mName |
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 |