QGIS API Documentation
3.14.0-Pi (9f7028fd23)
|
Go to the documentation of this file.
21 #include "qgis_core.h"
55 QList<QgsVectorLayer *>
layers()
const {
return mLayers; }
57 void setLayers(
const QList<QgsVectorLayer *> &layers );
87 double offset()
const {
return mOffset; }
94 void setOffset(
double offset );
100 void offsetParameters(
int &quadSegments
SIP_OUT,
int &joinStyle
SIP_OUT,
double &miterLimit
SIP_OUT );
106 void setOffsetParameters(
int quadSegments,
int joinStyle,
double miterLimit );
162 void invalidateGraph();
171 void onAttributeValueChanged(
QgsFeatureId fid,
int idx,
const QVariant &value );
172 void onDataChanged( );
173 void onStyleChanged( );
174 void onLayerDestroyed( QObject *obj );
178 std::unique_ptr< QgsTracerGraph > mGraph;
180 QList<QgsVectorLayer *> mLayers;
186 std::unique_ptr<QgsRenderContext> mRenderContext;
193 int mOffsetSegments = 8;
195 int mOffsetJoinStyle = 2;
197 double mOffsetMiterLimit = 5.;
203 int mMaxFeatureCount = 0;
209 bool mHasTopologyProblem =
false;
213 #endif // QGSTRACER_H
const QgsCoordinateReferenceSystem & crs
@ ErrNoPath
Points are not connected in the graph.
double offset() const
Gets offset in map units that should be applied to the traced paths returned from findShortestPath().
QList< QgsVectorLayer * > layers() const
Gets layers used for tracing.
@ ErrPoint2
End point cannot be joined to the graph.
bool isInitialized() const
Whether the internal data structures have been initialized.
QgsRectangle extent() const
Gets extent to which graph's features will be limited (empty extent means no limit)
@ ErrTooManyFeatures
Max feature count threshold was reached while reading features.
void setMaxFeatureCount(int count)
Gets maximum possible number of features in graph. If the number is exceeded, graph is not created.
int maxFeatureCount() const
Gets maximum possible number of features in graph. If the number is exceeded, graph is not created.
bool hasTopologyProblem() const
Whether there was an error during graph creation due to noding exception, indicating some input data ...
QgsCoordinateReferenceSystem destinationCrs() const
Returns the CRS used for tracing.
Simple graph structure for shortest path search.
virtual void configure()
Allows derived classes to setup the settings just before the tracer is initialized.
PathError
Possible errors that may happen when calling findShortestPath()
@ ErrPoint1
Start point cannot be joined to the graph.