You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit b53e622
Browse filesBrowse the repository at this point in the historyBrowse files
* Этот файл описывает встроенные в QGIS классы описывающие математический граф. Вершина графа идентифицируется своими географическими координатами, никакие дополнительные свойства ей не могут быть присвоены. Количество свойств графа определяется разработчиком и не ограничено, например длина и время движения по дуге. Граф может быть направленным, иметь инцедентные ребра и петли.
20
-
*
20
+
*
21
21
*/
22
22
23
23
#ifndef QGSGRAPHH
@@ -48,7 +48,7 @@ class ANALYSIS_EXPORT QgsGraphArc
48
48
* @param propertyIndex property index
49
49
*/
50
50
QVariant property( int propertyIndex ) const;
51
-
51
+
52
52
/**
53
53
* get array of proertyes
54
54
*/
@@ -73,7 +73,7 @@ class ANALYSIS_EXPORT QgsGraphArc
73
73
intmOut;
74
74
intmIn;
75
75
76
-
friendclassQgsGraph;
76
+
friendclassQgsGraph;
77
77
};
78
78
79
79
@@ -97,28 +97,28 @@ class ANALYSIS_EXPORT QgsGraphVertex
97
97
*/
98
98
99
99
QgsGraphVertex( const QgsPoint& point );
100
-
100
+
101
101
/**
102
102
* return outgoing edges
103
103
*/
104
104
QgsGraphArcIdList outArc() const;
105
-
105
+
106
106
/**
107
107
* return incoming edges
108
108
*/
109
109
QgsGraphArcIdList inArc() const;
110
-
110
+
111
111
/**
112
112
* return vertex point
113
113
*/
114
114
QgsPoint point() const;
115
-
115
+
116
116
private:
117
117
QgsPoint mCoordinate;
118
118
QgsGraphArcIdList mOutArc;
119
119
QgsGraphArcIdList mInArc;
120
120
121
-
friendclassQgsGraph;
121
+
friendclassQgsGraph;
122
122
};
123
123
124
124
/**
@@ -139,28 +139,28 @@ class ANALYSIS_EXPORT QgsGraph
139
139
* add vertex to a grap
140
140
*/
141
141
intaddVertex( const QgsPoint& pt );
142
-
142
+
143
143
/**
144
144
* add edge to a graph
145
145
*/
146
146
intaddArc( int outVertexIdx, int inVertexIdx, const QVector< QVariant >& properties );
147
-
147
+
148
148
/**
149
149
* retrun vertex count
150
150
*/
151
151
intvertexCount() const;
152
-
152
+
153
153
/**
154
154
* return vertex at index
155
155
*/
156
156
const QgsGraphVertex& vertex( int idx ) const;
157
157
158
-
/**
159
-
* retrun edge count
160
-
*/
158
+
/**
159
+
* retrun edge count
160
+
*/
161
161
intarcCount() const;
162
-
163
-
/**
162
+
163
+
/**
164
164
* retrun edge at index
165
165
*/
166
166
const QgsGraphArc& arc( int idx ) const;
@@ -171,9 +171,9 @@ class ANALYSIS_EXPORT QgsGraph
0 commit comments