GLIMSView Source Code Documentation

SimpleLineData Class Reference

#include <simplelinedata.h>

Inheritance diagram for SimpleLineData:

Inheritance graph
[legend]

List of all members.


Detailed Description

An extension of VectorData for the sole purpose of masking out Point functions.

This remains abstract and allows its child implementations to only implement those functions that pertain to line data.

Definition at line 12 of file simplelinedata.h.


Public Types

enum  ShapeType { POINT, LINE, POLY }

Public Slots

void transformDataset ()

Signals

void datasetChanged ()

Public Member Functions

 SimpleLineData ()
virtual ~SimpleLineData ()
virtual void delNode (int)
virtual void moveNode (Node &, int=-1)
virtual void insertNode (Node &, int)
virtual void addNode (Node &, int=-1)
virtual bool fromXML (QDomElement &elem)=0
virtual bool toXML (QDomDocument &doc, QDomElement &elem, std::string id)=0
virtual void addLine (Node &node)=0
virtual void delLine (int iline)=0
virtual void breakLine (int iline, int inode)=0
virtual void joinLine (int il1, int il2, int in1, int in2)=0
virtual void addLineNode (Node &node, int iline, int inode=-1)=0
virtual void insertLineNode (Node &node, int iline, int inode=-1)=0
virtual void delLineNode (int iline, int inode)=0
virtual void moveLineNode (int iline, int inode, Node &node)=0
virtual void push ()=0
virtual void pushSelection ()=0
virtual void pop ()=0
virtual void redo ()=0
void setImage (Image *img)
ShapeType getType ()
std::vector< Shape * > & getXYSet ()
std::vector< Shape * > & getLLSet ()
unsigned int size ()
SelectionSetgetSelSet ()
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

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< Shape * > mLLSet
std::vector< Shape * > mXYSet
SelectionSet mSelSet
std::stack< std::vector< Shape * > > mUndoLL
std::stack< std::vector< Shape * > > mUndoXY
std::stack< SelectionSetmUndoSel
std::stack< std::vector< Shape * > > mRedoLL
std::stack< std::vector< Shape * > > mRedoXY
std::stack< SelectionSetmRedoSel
ShapeType mType
ImagemImg
QDate mCurrentVersion

Member Enumeration Documentation

enum VectorData::ShapeType [inherited]

Enumerator:
POINT 
LINE 
POLY 

Definition at line 24 of file vectordata.h.


Constructor & Destructor Documentation

SimpleLineData::SimpleLineData (  )  [inline]

Definition at line 14 of file simplelinedata.h.

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

Definition at line 16 of file simplelinedata.h.


Member Function Documentation

virtual void SimpleLineData::delNode ( int   )  [inline, virtual]

Implements VectorData.

Definition at line 19 of file simplelinedata.h.

virtual void SimpleLineData::moveNode ( Node ,
int  = -1 
) [inline, virtual]

Implements VectorData.

Definition at line 21 of file simplelinedata.h.

virtual void SimpleLineData::insertNode ( Node ,
int   
) [inline, virtual]

Implements VectorData.

Definition at line 23 of file simplelinedata.h.

virtual void SimpleLineData::addNode ( Node ,
int  = -1 
) [inline, virtual]

Implements VectorData.

Definition at line 25 of file simplelinedata.h.

virtual bool SimpleLineData::fromXML ( QDomElement &  elem  )  [pure virtual]

Implements VectorData.

Implemented in GLIMSLineData.

virtual bool SimpleLineData::toXML ( QDomDocument &  doc,
QDomElement &  elem,
std::string  id 
) [pure virtual]

Implements VectorData.

Implemented in GLIMSLineData.

virtual void SimpleLineData::addLine ( Node node  )  [pure virtual]

Implements VectorData.

Implemented in GLIMSLineData.

virtual void SimpleLineData::delLine ( int  iline  )  [pure virtual]

Implements VectorData.

Implemented in GLIMSLineData.

virtual void SimpleLineData::breakLine ( int  iline,
int  inode 
) [pure virtual]

Implements VectorData.

Implemented in GLIMSLineData.

virtual void SimpleLineData::joinLine ( int  il1,
int  il2,
int  in1,
int  in2 
) [pure virtual]

Implements VectorData.

Implemented in GLIMSLineData.

virtual void SimpleLineData::addLineNode ( Node node,
int  iline,
int  inode = -1 
) [pure virtual]

Implements VectorData.

Implemented in GLIMSLineData.

virtual void SimpleLineData::insertLineNode ( Node node,
int  iline,
int  inode = -1 
) [pure virtual]

Implements VectorData.

Implemented in GLIMSLineData.

virtual void SimpleLineData::delLineNode ( int  iline,
int  inode 
) [pure virtual]

Implements VectorData.

Implemented in GLIMSLineData.

virtual void SimpleLineData::moveLineNode ( int  iline,
int  inode,
Node node 
) [pure virtual]

Implements VectorData.

Implemented in GLIMSLineData.

virtual void SimpleLineData::push (  )  [pure virtual]

Implements VectorData.

Implemented in GLIMSLineData.

virtual void SimpleLineData::pushSelection (  )  [pure virtual]

Implements VectorData.

Implemented in GLIMSLineData.

virtual void SimpleLineData::pop (  )  [pure virtual]

Implements VectorData.

Implemented in GLIMSLineData.

virtual void SimpleLineData::redo (  )  [pure virtual]

Implements VectorData.

Implemented in GLIMSLineData.

void VectorData::setImage ( Image img  )  [inline, inherited]

Definition at line 87 of file vectordata.h.

References VectorData::mImg.

Referenced by GLIMSDataset::GLIMSDataset().

ShapeType VectorData::getType (  )  [inline, inherited]

std::vector<Shape*>& VectorData::getXYSet (  )  [inline, inherited]

std::vector<Shape*>& VectorData::getLLSet (  )  [inline, inherited]

unsigned int VectorData::size (  )  [inline, inherited]

SelectionSet& VectorData::getSelSet (  )  [inline, inherited]

void VectorData::transformDataset (  )  [slot, inherited]

void VectorData::datasetChanged (  )  [signal, 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<Shape*> VectorData::mLLSet [protected, inherited]

std::vector<Shape*> VectorData::mXYSet [protected, inherited]

SelectionSet VectorData::mSelSet [protected, inherited]

std::stack<std::vector<Shape*> > VectorData::mUndoLL [protected, inherited]

Definition at line 35 of file vectordata.h.

Referenced by GLIMSGIDData::pop(), and GLIMSGIDData::push().

std::stack<std::vector<Shape*> > VectorData::mUndoXY [protected, inherited]

Definition at line 38 of file vectordata.h.

Referenced by GLIMSGIDData::pop(), and GLIMSGIDData::push().

std::stack<SelectionSet> VectorData::mUndoSel [protected, inherited]

std::stack<std::vector<Shape*> > VectorData::mRedoLL [protected, inherited]

std::stack<std::vector<Shape*> > VectorData::mRedoXY [protected, inherited]

std::stack<SelectionSet> VectorData::mRedoSel [protected, inherited]

ShapeType VectorData::mType [protected, inherited]

Definition at line 55 of file vectordata.h.

Referenced by VectorData::getType(), and VectorData::transformDataset().

Image* VectorData::mImg [protected, inherited]

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