GLIMSView Source Code Documentation

GlacierLine Class Reference

#include <glacierline.h>

Inheritance diagram for GlacierLine:

Inheritance graph
[legend]

List of all members.


Detailed Description

An extension of a Line that provides indecies into the GLIMSDataset equivalents of GlacierIDDef and LineDef.

This also provides easy serialization routines.

Definition at line 14 of file glacierline.h.


Public Member Functions

 GlacierLine ()
 Construct line not associated with a line definition or glacier ID.
 GlacierLine (int igid, int ildf)
 Construct line associated with a line definition or glacier ID.
virtual bool fromXML (QDomElement &elem)
 Read line information from project XML file.
virtual bool toXML (QDomDocument &doc, QDomElement &elem, std::string id="")
 Write line information to project XML file.
void operator= (const GlacierLine &gline)
 Copy attributes of another line to this line.
void setAttr (DspAttr &attr)
Nodeoperator[] (int inode) const
NodegetNode (int inode) const
std::vector< Node > & nodeset ()
unsigned int size () const
void delNode (unsigned int inode)
virtual DspAttrgetAttr ()
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 mGID
 glacier config listbox index associated with this line
int mLDF
 line definition listbox index associated with this line
DspAttr mAttr

Protected Member Functions

virtual bool nodesetFromXML (QDomElement &elem)
virtual bool nodesetToXML (QDomDocument &doc, QDomElement &elem)
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

std::vector< NodemNodeSet
QDate mCurrentVersion

Constructor & Destructor Documentation

GlacierLine::GlacierLine (  )  [inline]

Construct line not associated with a line definition or glacier ID.

Definition at line 22 of file glacierline.h.

GlacierLine::GlacierLine ( int  igid,
int  ildf 
) [inline]

Construct line associated with a line definition or glacier ID.

Parameters:
igid listbox index of associated glacier ID
ildf listbox index of associated line definition

Definition at line 30 of file glacierline.h.


Member Function Documentation

virtual bool GlacierLine::fromXML ( QDomElement &  elem  )  [inline, virtual]

Read line information from project XML file.

Parameters:
elem XML document structure
Returns:
true if a glacier line was found in the file

Reimplemented from Line.

Definition at line 38 of file glacierline.h.

References Line::nodesetFromXML(), and XMLSerializeable::readIntTag().

Referenced by GLIMSLineData::fromXML().

Here is the call graph for this function:

virtual bool GlacierLine::toXML ( QDomDocument &  doc,
QDomElement &  elem,
std::string  id = "" 
) [inline, virtual]

Write line information to project XML file.

Parameters:
doc XML document
elem XML document structure
id glacier id (?)
Returns:
true no matter what

Reimplemented from Line.

Definition at line 56 of file glacierline.h.

References Line::nodesetToXML(), and XMLSerializeable::writeIntTag().

Referenced by GLIMSLineData::toXML().

Here is the call graph for this function:

void GlacierLine::operator= ( const GlacierLine gline  )  [inline]

Copy attributes of another line to this line.

Parameters:
gline line to copy attributes from

Definition at line 74 of file glacierline.h.

References Shape::mAttr, mGID, mLDF, and Line::size().

Here is the call graph for this function:

bool Line::nodesetFromXML ( QDomElement &  elem  )  [protected, virtual, inherited]

Definition at line 14 of file line.cpp.

References Node::fromXML(), and Line::mNodeSet.

Referenced by Line::fromXML(), and fromXML().

Here is the call graph for this function:

bool Line::nodesetToXML ( QDomDocument &  doc,
QDomElement &  elem 
) [protected, virtual, inherited]

Definition at line 3 of file line.cpp.

References Line::mNodeSet, and Line::toXML().

Referenced by Line::toXML(), and toXML().

Here is the call graph for this function:

void Line::setAttr ( DspAttr attr  )  [inline, inherited]

Definition at line 120 of file shape.h.

Referenced by GLIMSLineData::addLine(), and ImageCalculator::calculate().

Node& Line::operator[] ( int  inode  )  const [inline, inherited]

Definition at line 124 of file shape.h.

Node& Line::getNode ( int  inode  )  const [inline, inherited]

Definition at line 128 of file shape.h.

std::vector<Node>& Line::nodeset (  )  [inline, inherited]

unsigned int Line::size (  )  const [inline, inherited]

void Line::delNode ( unsigned int  inode  )  [inline, inherited]

virtual DspAttr& Shape::getAttr (  )  [inline, virtual, inherited]

bool XMLSerializeable::writeTextTag ( QDomDocument &  doc,
QDomElement &  elem,
std::string  tagName,
std::string  text,
std::string  id = "" 
) [protected, virtual, inherited]

virtual bool XMLSerializeable::writeIntTag ( QDomDocument &  doc,
QDomElement &  elem,
std::string  tagName,
int  val,
std::string  id = "" 
) [inline, protected, virtual, inherited]

virtual bool XMLSerializeable::writeDoubleTag ( QDomDocument &  doc,
QDomElement &  elem,
std::string  tagName,
double  val,
std::string  id = "" 
) [inline, protected, virtual, inherited]

std::string XMLSerializeable::readTextTag ( QDomElement  elem,
std::string  tagName = "",
std::string  id = "" 
) [protected, virtual, inherited]

virtual int XMLSerializeable::readIntTag ( QDomElement  elem,
std::string  tagName = "",
std::string  id = "" 
) [inline, protected, virtual, inherited]

virtual double XMLSerializeable::readDoubleTag ( QDomElement  elem,
std::string  tagName = "",
std::string  id = "" 
) [inline, protected, virtual, inherited]

virtual QDomElement XMLSerializeable::createBaseTag ( QDomDocument &  doc,
QDomElement &  elem,
std::string  id,
std::string  tagName 
) [inline, protected, virtual, inherited]

QDomElement XMLSerializeable::getElemByTagName ( QDomElement &  elem,
std::string  name 
) [protected, virtual, inherited]

Definition at line 119 of file xmlserializeable.cpp.

Referenced by GlacierIDDef::fromXML().

std::string XMLSerializeable::qDateToString ( const QDate *  aQDate  )  [protected, virtual, inherited]

bool XMLSerializeable::stringToQDate ( const std::string  aStrDate,
QDate *  aQDate 
) [protected, virtual, inherited]

std::string XMLSerializeable::qDateTimeToString ( const QDateTime *  aQDateTime  )  [protected, virtual, inherited]

Definition at line 149 of file xmlserializeable.cpp.

References XMLSerializeable::qDateToString().

Here is the call graph for this function:

bool XMLSerializeable::stringToQDateTime ( const std::string  aStrDateTime,
QDateTime *  aQDateTime 
) [protected, virtual, inherited]

Definition at line 205 of file xmlserializeable.cpp.

References XMLSerializeable::stringToQDate().

Here is the call graph for this function:

bool XMLSerializeable::toXMLFile ( std::string  fname,
std::string  docname 
) [virtual, inherited]

bool XMLSerializeable::fromXMLFile ( std::string  fname,
std::string  docname 
) [virtual, inherited]

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().

Here is the call graph for this function:

void XMLSerializeable::setCurrentVersion ( QDate  versionQDate  )  [virtual, inherited]

Definition at line 254 of file xmlserializeable.cpp.

References XMLSerializeable::mCurrentVersion.

QDate XMLSerializeable::getCurrentVersion (  )  [virtual, inherited]

Definition at line 258 of file xmlserializeable.cpp.

References XMLSerializeable::mCurrentVersion.

std::string XMLSerializeable::getCurrentVersionStr (  )  [virtual, inherited]

Definition at line 262 of file xmlserializeable.cpp.

References XMLSerializeable::mCurrentVersion, and XMLSerializeable::qDateToString().

Here is the call graph for this function:


Member Data Documentation

line definition listbox index associated with this line

Definition at line 17 of file glacierline.h.

Referenced by GLIMSLineData::breakLine(), GLIMSProject::exportGLIMSIngest(), GLIMSLineData::fromXML(), operator=(), GLIMSLineData::setLDF(), GLIMSLineData::toXY(), and GLIMSLineData::validate().

std::vector<Node> Line::mNodeSet [protected, inherited]

Definition at line 103 of file shape.h.

Referenced by Line::nodesetFromXML(), and Line::nodesetToXML().

DspAttr Shape::mAttr [inherited]

Definition at line 40 of file shape.h.

Referenced by GLIMSLineData::fromXML(), and operator=().

QDate XMLSerializeable::mCurrentVersion [protected, inherited]


The documentation for this class was generated from the following file:

Home | Search | Disclaimers & Privacy | Contact Us
GLIMSView Maintainer: dsoltesz@usgs.gov