-
-
Notifications
You must be signed in to change notification settings - Fork 3k
/
graphbuilder.h
59 lines (49 loc) · 1.7 KB
/
graphbuilder.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
/***************************************************************************
graphbuilder.h
--------------------------------------
Date : 2010-10-22
Copyright : (C) 2010 by Yakushev Sergey
Email : YakushevS <at> list.ru
****************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef ROADGRAPH_GRAPHBUILDER
#define ROADGRAPH_GRAPHBUILDER
#include "utils.h"
//QT4 includes
//QGIS includes
#include <qgspoint.h>
#include <qgscoordinatereferencesystem.h>
//forward declarations
/**
* \class RgGraphDirector
* \brief Determine making the graph, contained the settings
*/
class RgGraphBuilder
{
public:
//! Constructor
RgGraphBuilder( const QgsCoordinateReferenceSystem& crs );
//! Destructor
virtual ~RgGraphBuilder();
/**
* get destinaltion Crs
*/
QgsCoordinateReferenceSystem& destinationCrs();
/**
* add vertex
*/
virtual void addVertex( const QgsPoint& pt ) = 0;
/**
* add arc
*/
virtual void addArc( const QgsPoint& pt1, const QgsPoint& pt2, double cost, double speed ) = 0;
private:
QgsCoordinateReferenceSystem mCrs;
};
#endif //GRAPHBUILDER