53 void setCrsTransformEnabled(
bool enabled );
95 bool isPointSnapped(
const QgsPoint& pt );
105 void invalidateGraph();
114 void onLayerDestroyed(
QObject* obj );
122 bool mReprojectionEnabled;
129 int mMaxFeatureCount;
133 #endif // QGSTRACER_H bool hasCrsTransformEnabled() const
Return true if reprojection to destination CRS is enabled.
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 geometry is the spatial representation of a feature.
int maxFeatureCount() const
Get maximum possible number of features in graph. If the number is exceeded, graph is not created...
QgsCoordinateReferenceSystem destinationCrs() const
Get CRS used for tracing.
Max feature count threshold was reached while reading features.
PathError
Possible errors that may happen when calling findShortestPath()
Simple graph structure for shortest path search.
QList< QgsVectorLayer * > layers() const
Get layers used for tracing.
A class to represent a point.
End point cannot be joined to the graph.
void setMaxFeatureCount(int count)
Get maximum possible number of features in graph. If the number is exceeded, graph is not created...
bool isInitialized() const
Whether the internal data structures have been initialized.
Class for storing a coordinate reference system (CRS)
QgsRectangle extent() const
Get 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.