Quantum GIS API Documentation  1.8
Public Member Functions | Private Attributes
QgsGraphBuilder Class Reference

This class making the QgsGraph object. More...

#include <qgsgraphbuilder.h>

Inheritance diagram for QgsGraphBuilder:
Inheritance graph
[legend]
Collaboration diagram for QgsGraphBuilder:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 QgsGraphBuilder (const QgsCoordinateReferenceSystem &crs, bool otfEnabled=true, double topologyTolerance=0.0, const QString &ellipsoidID="WGS84")
 default constructor
 ~QgsGraphBuilder ()
virtual void addVertex (int id, const QgsPoint &pt)
 add vertex
virtual void addArc (int pt1id, const QgsPoint &pt1, int pt2id, const QgsPoint &pt2, const QVector< QVariant > &prop)
 add arc
QgsGraphgraph ()
 return QgsGraph result;

Private Attributes

QgsGraphmGraph

Detailed Description

This class making the QgsGraph object.

Definition at line 36 of file qgsgraphbuilder.h.


Constructor & Destructor Documentation

QgsGraphBuilder::QgsGraphBuilder ( const QgsCoordinateReferenceSystem crs,
bool  otfEnabled = true,
double  topologyTolerance = 0.0,
const QString &  ellipsoidID = "WGS84" 
)

default constructor

Definition at line 24 of file qgsgraphbuilder.cpp.

References mGraph.

Definition at line 30 of file qgsgraphbuilder.cpp.

References mGraph.


Member Function Documentation

void QgsGraphBuilder::addArc ( int  pt1id,
const QgsPoint pt1,
int  pt2id,
const QgsPoint pt2,
const QVector< QVariant > &  properties 
) [virtual]

add arc

Parameters:
pt1idfirst vertex identificator
pt1first vertex coordinate
pt2idsecond vertex identificator
pt2second vertex coordinate
propertiesarc properties
Note:
pt1id, pt1 and pt2id, pt2 is a redundant interface. You can use vertex coordinates or their identificators.

Reimplemented from QgsGraphBuilderInterface.

Definition at line 41 of file qgsgraphbuilder.cpp.

References QgsGraph::addArc(), and mGraph.

void QgsGraphBuilder::addVertex ( int  id,
const QgsPoint pt 
) [virtual]

add vertex

Parameters:
idvertex identifier
ptvertex coordinate
Note:
id and pt are redundant. You can use pt or id to identify the vertex

Reimplemented from QgsGraphBuilderInterface.

Definition at line 36 of file qgsgraphbuilder.cpp.

References QgsGraph::addVertex(), and mGraph.

return QgsGraph result;

Definition at line 46 of file qgsgraphbuilder.cpp.

References mGraph.


Member Data Documentation

Definition at line 60 of file qgsgraphbuilder.h.

Referenced by addArc(), addVertex(), graph(), QgsGraphBuilder(), and ~QgsGraphBuilder().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines