GLIMSView Source Code Documentation

SimplePointData Class Reference

#include <simplepointdata.h>

Inheritance diagram for SimplePointData:

Inheritance graph
[legend]

List of all members.


Detailed Description

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

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

Definition at line 12 of file simplepointdata.h.


Public Types

enum  ShapeType { POINT, LINE, POLY }

Public Slots

void transformDataset ()

Signals

void datasetChanged ()

Public Member Functions

 SimplePointData ()
virtual ~SimplePointData ()
virtual void delLineNode (int, int)
virtual void delLine (int)
virtual void addLineNode (Node &, int, int=-1)
virtual void joinLine (int, int, int, int)
virtual void breakLine (int, int)
virtual void moveLineNode (int, int, Node &)
virtual void addLine (Node &)
virtual void insertLineNode (Node &, int, int=-1)
virtual bool fromXML (QDomElement &elem)=0
virtual bool toXML (QDomDocument &doc, QDomElement &elem, std::string id="")=0
virtual void insertNode (Node &node, int inode)=0
virtual void delNode (int inode)=0
virtual void moveNode (Node &node, int inode=-1)=0
virtual void addNode (Node &node, int inode=-1)=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

SimplePointData::SimplePointData (  )  [inline]

Definition at line 14 of file simplepointdata.h.

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

Definition at line 16 of file simplepointdata.h.


Member Function Documentation

virtual void SimplePointData::delLineNode ( int  ,
int   
) [inline, virtual]

Implements VectorData.

Definition at line 19 of file simplepointdata.h.

Referenced by GlacierConfigDlg::delSel().

virtual void SimplePointData::delLine ( int   )  [inline, virtual]

Implements VectorData.

Definition at line 21 of file simplepointdata.h.

Referenced by GlacierConfigDlg::delSel().

virtual void SimplePointData::addLineNode ( Node ,
int  ,
int  = -1 
) [inline, virtual]

Implements VectorData.

Definition at line 23 of file simplepointdata.h.

virtual void SimplePointData::joinLine ( int  ,
int  ,
int  ,
int   
) [inline, virtual]

Implements VectorData.

Definition at line 25 of file simplepointdata.h.

virtual void SimplePointData::breakLine ( int  ,
int   
) [inline, virtual]

Implements VectorData.

Definition at line 27 of file simplepointdata.h.

virtual void SimplePointData::moveLineNode ( int  ,
int  ,
Node  
) [inline, virtual]

Implements VectorData.

Definition at line 29 of file simplepointdata.h.

virtual void SimplePointData::addLine ( Node  )  [inline, virtual]

Implements VectorData.

Definition at line 31 of file simplepointdata.h.

virtual void SimplePointData::insertLineNode ( Node ,
int  ,
int  = -1 
) [inline, virtual]

Implements VectorData.

Definition at line 33 of file simplepointdata.h.

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

Implements VectorData.

Implemented in GLIMSGIDData.

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

Implements VectorData.

Implemented in GLIMSGIDData.

virtual void SimplePointData::insertNode ( Node node,
int  inode 
) [pure virtual]

Implements VectorData.

Implemented in GLIMSGIDData.

virtual void SimplePointData::delNode ( int  inode  )  [pure virtual]

Implements VectorData.

Implemented in GLIMSGIDData.

virtual void SimplePointData::moveNode ( Node node,
int  inode = -1 
) [pure virtual]

Implements VectorData.

Implemented in GLIMSGIDData.

virtual void SimplePointData::addNode ( Node node,
int  inode = -1 
) [pure virtual]

Implements VectorData.

Implemented in GLIMSGIDData.

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

Implements VectorData.

Implemented in GLIMSGIDData.

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

Implements VectorData.

Implemented in GLIMSGIDData.

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

Implements VectorData.

Implemented in GLIMSGIDData.

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

Implements VectorData.

Implemented in GLIMSGIDData.

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