21 #include "qgis_core.h" 53 QList<QgsVectorLayer *>
layers()
const {
return mLayers; }
55 void setLayers(
const QList<QgsVectorLayer *> &layers );
79 double offset()
const {
return mOffset; }
86 void setOffset(
double offset );
92 void offsetParameters(
int &quadSegments
SIP_OUT,
int &joinStyle SIP_OUT,
double &miterLimit SIP_OUT );
98 void setOffsetParameters(
int quadSegments,
int joinStyle,
double miterLimit );
154 void invalidateGraph();
163 void onLayerDestroyed( QObject *obj );
167 std::unique_ptr< QgsTracerGraph > mGraph;
169 QList<QgsVectorLayer *> mLayers;
180 int mOffsetSegments = 8;
182 int mOffsetJoinStyle = 2;
184 double mOffsetMiterLimit = 5.;
190 int mMaxFeatureCount = 0;
196 bool mHasTopologyProblem =
false;
200 #endif // QGSTRACER_H bool hasTopologyProblem() const
Whether there was an error during graph creation due to noding exception, indicating some input data ...
A rectangle specified with double values.
virtual void configure()
Allows derived classes to setup the settings just before the tracer is initialized.
Utility class that construct a planar graph from the input vector layers and provides shortest path s...
A class to represent a 2D point.
A geometry is the spatial representation of a feature.
const QgsCoordinateReferenceSystem & crs
int maxFeatureCount() const
Gets maximum possible number of features in graph. If the number is exceeded, graph is not created...
QgsCoordinateReferenceSystem destinationCrs() const
Returns the CRS used for tracing.
Max feature count threshold was reached while reading features.
PathError
Possible errors that may happen when calling findShortestPath()
double offset() const
Gets offset in map units that should be applied to the traced paths returned from findShortestPath()...
Simple graph structure for shortest path search.
Contains information about the context in which a coordinate transform is executed.
End point cannot be joined to the graph.
void setMaxFeatureCount(int count)
Gets maximum possible number of features in graph. If the number is exceeded, graph is not created...
QList< QgsVectorLayer * > layers() const
Gets layers used for tracing.
bool isInitialized() const
Whether the internal data structures have been initialized.
This class represents a coordinate reference system (CRS).
QgsRectangle extent() const
Gets extent to which graph's features will be limited (empty extent means no limit) ...
Represents a vector layer which manages a vector based data sets.
Points are not connected in the graph.
Start point cannot be joined to the graph.