GLIMSView Source Code Documentation

Line Class Reference

#include <shape.h>

Inheritance diagram for Line:

Inheritance graph
[legend]

List of all members.


Detailed Description

This implements the common line and provides access and modification routines.

Definition at line 100 of file shape.h.


Public Member Functions

virtual ~Line ()
virtual bool fromXML (QDomElement &elem)
virtual bool toXML (QDomDocument &doc, QDomElement &elem, std::string id="")
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

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

virtual Line::~Line (  )  [inline, virtual]

Definition at line 110 of file shape.h.


Member Function Documentation

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

Definition at line 14 of file line.cpp.

References Node::fromXML(), and mNodeSet.

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

Here is the call graph for this function:

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

Definition at line 3 of file line.cpp.

References mNodeSet, and toXML().

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

Here is the call graph for this function:

bool Line::fromXML ( QDomElement &  elem  )  [virtual]

Implements XMLSerializeable.

Reimplemented in GlacierLine.

Definition at line 33 of file line.cpp.

References nodesetFromXML().

Here is the call graph for this function:

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

Implements XMLSerializeable.

Reimplemented in GlacierLine.

Definition at line 41 of file line.cpp.

References nodesetToXML().

Referenced by nodesetToXML().

Here is the call graph for this function:

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

Definition at line 120 of file shape.h.

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

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

Definition at line 124 of file shape.h.

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

Definition at line 128 of file shape.h.

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

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

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

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

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

Definition at line 103 of file shape.h.

Referenced by nodesetFromXML(), and nodesetToXML().

DspAttr Shape::mAttr [inherited]

Definition at line 40 of file shape.h.

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

QDate XMLSerializeable::mCurrentVersion [protected, inherited]


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

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