#include <glimsglobals.h>
This includes default types/values within the GLIMS database. Most of the data comes from XML serialized files located in the globals file in the Glimsviewer file structure. Available display attributes are available here as well.
Definition at line 23 of file glimsglobals.h.
Static Public Member Functions | |
static void | loadGlobals () |
static void | readAttrFile (std::vector< Attr > &, std::string fname) |
static std::string | getIDOf (const std::vector< Attr > glacierAttribute, const std::string attributeValue) |
static int | getIntIDOf (const std::vector< Attr > glacierAttribute, const std::string attributeValue) |
static int | getNdxOfValue (const std::vector< Attr > glacierAttribute, const std::string attributeValue) |
static int | getNdxOfID (const std::vector< Attr > glacierAttribute, const int attributeID) |
static int | getNdxOfID (const std::vector< Attr > glacierAttribute, const std::string attributeID) |
Static Public Attributes | |
static bool | mGlbsLoaded = false |
static std::vector< Attr > | mGlbGlacTypes |
static std::vector< Attr > | mGlbMDF |
static std::vector< Attr > | mGlbTypes |
static std::vector< Attr > | mGlbFtrs |
static std::vector< Attr > | mGlbLbls |
static std::vector< Attr > | mGlbPrimCsfn |
static std::vector< Attr > | mGlbForm |
static std::vector< Attr > | mGlbFrntChar |
static std::vector< Attr > | mGlbLonChar |
static std::vector< Attr > | mGlbDomMassSrc |
static std::vector< Attr > | mGlbTongueAct |
static const std::string | GLDF_FILE = "globals/global.ldf" |
static const std::string | GMDF_FILE = "globals/linemat.atr" |
static const std::string | GTYPE_FILE = "globals/linetypes.atr" |
static const std::string | GLBL_FILE = "globals/linelbls.atr" |
static const std::string | GFTR_FILE = "globals/lineftrs.atr" |
static const std::string | GCAT_FILE = "globals/linecatagory.atr" |
static const std::string | GPCLASS_FILE = "globals/glacpclass.atr" |
static const std::string | GFORM_FILE = "globals/glacform.atr" |
static const std::string | GFCHAR_FILE = "globals/glacfrontalchar.atr" |
static const std::string | GLCHAR_FILE = "globals/glaclonchar.atr" |
static const std::string | GDOMMS_FILE = "globals/glacdommass.atr" |
static const std::string | GTGACT_FILE = "globals/glactongueact.atr" |
static LineDefSet | mGlbLDFSet |
static std::vector< QColor > | AVAILCOLORS |
static std::vector< std::string > | AVAILCOLORSTR |
void GLIMSGlobals::loadGlobals | ( | ) | [static] |
Definition at line 39 of file glimsglobals.cpp.
References AVAILCOLORS, AVAILCOLORSTR, XMLSerializeable::fromXMLFile(), GCAT_FILE, GDOMMS_FILE, GFCHAR_FILE, GFORM_FILE, GFTR_FILE, GLBL_FILE, GLCHAR_FILE, GLDF_FILE, GMDF_FILE, GPCLASS_FILE, GTGACT_FILE, GTYPE_FILE, mGlbDomMassSrc, mGlbForm, mGlbFrntChar, mGlbFtrs, mGlbGlacTypes, mGlbLbls, mGlbLDFSet, mGlbLonChar, mGlbMDF, mGlbPrimCsfn, mGlbsLoaded, mGlbTongueAct, mGlbTypes, and readAttrFile().
Referenced by GLIMSProject::GLIMSProject().
void GLIMSGlobals::readAttrFile | ( | std::vector< Attr > & | vec, | |
std::string | fname | |||
) | [static] |
Definition at line 84 of file glimsglobals.cpp.
References Attr::fromXML().
Referenced by loadGlobals().
std::string GLIMSGlobals::getIDOf | ( | const std::vector< Attr > | glacierAttribute, | |
const std::string | attributeValue | |||
) | [static] |
int GLIMSGlobals::getIntIDOf | ( | const std::vector< Attr > | glacierAttribute, | |
const std::string | attributeValue | |||
) | [static] |
Definition at line 120 of file glimsglobals.cpp.
References getIDOf().
Referenced by GlacierIDDlg::addClicked().
int GLIMSGlobals::getNdxOfValue | ( | const std::vector< Attr > | glacierAttribute, | |
const std::string | attributeValue | |||
) | [static] |
Definition at line 138 of file glimsglobals.cpp.
int GLIMSGlobals::getNdxOfID | ( | const std::vector< Attr > | glacierAttribute, | |
const int | attributeID | |||
) | [static] |
int GLIMSGlobals::getNdxOfID | ( | const std::vector< Attr > | glacierAttribute, | |
const std::string | attributeID | |||
) | [static] |
Definition at line 162 of file glimsglobals.cpp.
bool GLIMSGlobals::mGlbsLoaded = false [static] |
std::vector< Attr > GLIMSGlobals::mGlbGlacTypes [static] |
Definition at line 28 of file glimsglobals.h.
Referenced by ImageCalculatorDialog::buildDialog(), GLIMSProject::exportGLIMSIngest(), GLIMSProject::importGLIMSIngestData(), GLIMSProject::importSegmentsFromShapefile(), loadGlobals(), LineSelectorDlg::loadList(), LineDefDlg::loadValids(), and LineDefSet::validate().
std::vector< Attr > GLIMSGlobals::mGlbMDF [static] |
Definition at line 29 of file glimsglobals.h.
Referenced by GLIMSProject::exportGLIMSIngest(), GLIMSProject::importGLIMSIngestData(), GLIMSProject::importSegmentsFromShapefile(), loadGlobals(), LineSelectorDlg::loadList(), and LineDefDlg::loadValids().
std::vector< Attr > GLIMSGlobals::mGlbTypes [static] |
Definition at line 30 of file glimsglobals.h.
Referenced by GLIMSProject::exportGLIMSIngest(), GLIMSProject::importGLIMSIngestData(), GLIMSProject::importSegmentsFromShapefile(), loadGlobals(), LineSelectorDlg::loadList(), and LineDefDlg::loadValids().
std::vector< Attr > GLIMSGlobals::mGlbFtrs [static] |
Definition at line 31 of file glimsglobals.h.
Referenced by GLIMSProject::exportGLIMSIngest(), GLIMSProject::importGLIMSIngestData(), GLIMSProject::importSegmentsFromShapefile(), loadGlobals(), and LineDefDlg::loadValids().
std::vector< Attr > GLIMSGlobals::mGlbLbls [static] |
Definition at line 32 of file glimsglobals.h.
Referenced by GLIMSProject::exportGLIMSIngest(), GLIMSProject::importGLIMSIngestData(), GLIMSProject::importSegmentsFromShapefile(), loadGlobals(), LineSelectorDlg::loadList(), and LineDefDlg::loadValids().
std::vector< Attr > GLIMSGlobals::mGlbPrimCsfn [static] |
Definition at line 35 of file glimsglobals.h.
Referenced by GlacierIDDlg::addClicked(), GLIMSProject::importGIDsFromShapefile(), GlacierIDDlg::loadGID(), loadGlobals(), and GlacierIDDlg::loadValids().
std::vector< Attr > GLIMSGlobals::mGlbForm [static] |
Definition at line 36 of file glimsglobals.h.
Referenced by GlacierIDDlg::addClicked(), GLIMSProject::importGIDsFromShapefile(), GlacierIDDlg::loadGID(), loadGlobals(), and GlacierIDDlg::loadValids().
std::vector< Attr > GLIMSGlobals::mGlbFrntChar [static] |
Definition at line 37 of file glimsglobals.h.
Referenced by GlacierIDDlg::addClicked(), GLIMSProject::importGIDsFromShapefile(), GlacierIDDlg::loadGID(), loadGlobals(), and GlacierIDDlg::loadValids().
std::vector< Attr > GLIMSGlobals::mGlbLonChar [static] |
Definition at line 38 of file glimsglobals.h.
Referenced by GlacierIDDlg::addClicked(), GLIMSProject::importGIDsFromShapefile(), GlacierIDDlg::loadGID(), loadGlobals(), and GlacierIDDlg::loadValids().
std::vector< Attr > GLIMSGlobals::mGlbDomMassSrc [static] |
Definition at line 39 of file glimsglobals.h.
Referenced by GlacierIDDlg::addClicked(), GLIMSProject::importGIDsFromShapefile(), GlacierIDDlg::loadGID(), loadGlobals(), and GlacierIDDlg::loadValids().
std::vector< Attr > GLIMSGlobals::mGlbTongueAct [static] |
Definition at line 40 of file glimsglobals.h.
Referenced by GlacierIDDlg::addClicked(), GLIMSProject::importGIDsFromShapefile(), GlacierIDDlg::loadGID(), loadGlobals(), and GlacierIDDlg::loadValids().
const std::string GLIMSGlobals::GLDF_FILE = "globals/global.ldf" [static] |
Definition at line 43 of file glimsglobals.h.
Referenced by LineDefSet::LineDefSet(), and loadGlobals().
const std::string GLIMSGlobals::GMDF_FILE = "globals/linemat.atr" [static] |
const std::string GLIMSGlobals::GTYPE_FILE = "globals/linetypes.atr" [static] |
const std::string GLIMSGlobals::GLBL_FILE = "globals/linelbls.atr" [static] |
const std::string GLIMSGlobals::GFTR_FILE = "globals/lineftrs.atr" [static] |
const std::string GLIMSGlobals::GCAT_FILE = "globals/linecatagory.atr" [static] |
const std::string GLIMSGlobals::GPCLASS_FILE = "globals/glacpclass.atr" [static] |
const std::string GLIMSGlobals::GFORM_FILE = "globals/glacform.atr" [static] |
const std::string GLIMSGlobals::GFCHAR_FILE = "globals/glacfrontalchar.atr" [static] |
const std::string GLIMSGlobals::GLCHAR_FILE = "globals/glaclonchar.atr" [static] |
const std::string GLIMSGlobals::GDOMMS_FILE = "globals/glacdommass.atr" [static] |
const std::string GLIMSGlobals::GTGACT_FILE = "globals/glactongueact.atr" [static] |
LineDefSet GLIMSGlobals::mGlbLDFSet [static] |
Definition at line 56 of file glimsglobals.h.
Referenced by GLIMSLineData::loadDefaultSet(), and loadGlobals().
std::vector< QColor > GLIMSGlobals::AVAILCOLORS [static] |
Definition at line 58 of file glimsglobals.h.
Referenced by GLIMSLineData::addLine(), ImageCalculator::calculate(), GLIMSLineData::fromXML(), loadGlobals(), GLIMSLineData::setLDF(), and GLIMSLineData::toXY().
std::vector< std::string > GLIMSGlobals::AVAILCOLORSTR [static] |
Definition at line 59 of file glimsglobals.h.
Referenced by ImageCalculatorDialog::buildDialog(), loadGlobals(), LineSelectorDlg::loadList(), LineDefDlg::loadValids(), and LineDefSet::validate().
Home |
Search |
Disclaimers & Privacy |
Contact Us GLIMSView Maintainer: dsoltesz@usgs.gov |