QGIS API Documentation  2.5.0-Master
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | List of all members
QgsGraphBuilderInterface Class Reference

Determine interface for creating a graph. More...

#include <qgsgraphbuilderintr.h>

Inheritance diagram for QgsGraphBuilderInterface:
Inheritance graph

Public Member Functions

 QgsGraphBuilderInterface (const QgsCoordinateReferenceSystem &crs, bool ctfEnabled=true, double topologyTolerance=0.0, const QString &ellipsoidID="WGS84")
 QgsGraphBuilderInterface constructor. More...
virtual ~QgsGraphBuilderInterface ()
 Destructor. More...
QgsCoordinateReferenceSystemdestinationCrs ()
 get destinaltion Crs More...
bool coordinateTransformationEnabled ()
 get coordinate transformation enabled More...
double topologyTolerance ()
 get topology tolerance More...
QgsDistanceAreadistanceArea ()
 get measurement tool More...
virtual void addVertex (int id, const QgsPoint &pt)
 add vertex More...
virtual void addArc (int pt1id, const QgsPoint &pt1, int pt2id, const QgsPoint &pt2, const QVector< QVariant > &properties)
 add arc More...

Detailed Description

Determine interface for creating a graph.

Contains the settings of the graph. QgsGraphBuilder and QgsGraphDirector is a Builder pattern

Constructor & Destructor Documentation

QgsGraphBuilderInterface::QgsGraphBuilderInterface ( const QgsCoordinateReferenceSystem crs,
bool  ctfEnabled = true,
double  topologyTolerance = 0.0,
const QString &  ellipsoidID = "WGS84" 

QgsGraphBuilderInterface constructor.

crsCoordinate reference system for new graph vertex
ctfEnabledenable coordinate transform from source graph CRS to CRS graph
topologyTolerancesqrt distance between source point as one graph vertex
ellipsoidIDellipsoid for edge measurement
virtual QgsGraphBuilderInterface::~QgsGraphBuilderInterface ( )


Member Function Documentation

virtual void QgsGraphBuilderInterface::addArc ( int  pt1id,
const QgsPoint pt1,
int  pt2id,
const QgsPoint pt2,
const QVector< QVariant > &  properties 

add arc

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

Reimplemented in QgsGraphBuilder.

virtual void QgsGraphBuilderInterface::addVertex ( int  id,
const QgsPoint pt 

add vertex

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

Reimplemented in QgsGraphBuilder.

bool QgsGraphBuilderInterface::coordinateTransformationEnabled ( )

get coordinate transformation enabled

QgsCoordinateReferenceSystem& QgsGraphBuilderInterface::destinationCrs ( )

get destinaltion Crs

QgsDistanceArea* QgsGraphBuilderInterface::distanceArea ( )

get measurement tool

double QgsGraphBuilderInterface::topologyTolerance ( )

get topology tolerance

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