GLIMSView Source Code Documentation

VectorData Class Reference

#include <vectordata.h>

Inheritance diagram for VectorData:

Inheritance graph
[legend]

List of all members.


Detailed Description

An interface with all methods for point and line data.

All vector data is derived from this allowing easy handling of vector objects.

Definition at line 21 of file vectordata.h.


Public Types

enum  ShapeType { POINT, LINE, POLY }

Public Slots

void transformDataset ()

Signals

void datasetChanged ()

Public Member Functions

 VectorData (ShapeType type, Image *img=NULL)
virtual ~VectorData ()
virtual bool toXML (QDomDocument &doc, QDomElement &elem, std::string id)=0
virtual bool fromXML (QDomElement &elem)=0
virtual void addNode (Node &node, int inode=-1)=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 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 pop ()=0
virtual void redo ()=0
virtual void pushSelection ()=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

Enumerator:
POINT 
LINE 
POLY 

Definition at line 24 of file vectordata.h.


Constructor & Destructor Documentation

VectorData::VectorData ( ShapeType  type,
Image img = NULL 
)

Definition at line 6 of file vectordata.cpp.

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

Definition at line 60 of file vectordata.h.


Member Function Documentation

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

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

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

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

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

Implemented in GLIMSGIDData, SimpleLineData, and SimplePointData.

Referenced by VectorEditor::delSel().

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Definition at line 87 of file vectordata.h.

References mImg.

Referenced by GLIMSDataset::GLIMSDataset().

ShapeType VectorData::getType (  )  [inline]

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

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

Definition at line 96 of file vectordata.h.

References mLLSet.

Referenced by GLIMSProject::exportGLIMSIngest(), and GtoSConverter::getSelectedShapeList().

unsigned int VectorData::size (  )  [inline]

SelectionSet& VectorData::getSelSet (  )  [inline]

void VectorData::transformDataset (  )  [slot]

void VectorData::datasetChanged (  )  [signal]

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]

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

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

Definition at line 35 of file vectordata.h.

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

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

Definition at line 38 of file vectordata.h.

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

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

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

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

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

Definition at line 55 of file vectordata.h.

Referenced by getType(), and transformDataset().

Image* VectorData::mImg [protected]

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