|
| QgsMapCanvasTracer (QgsMapCanvas *canvas, QgsMessageBar *messageBar=nullptr) |
| Create tracer associated with a particular map canvas, optionally message bar for reporting. More...
|
|
| ~QgsMapCanvasTracer () override |
|
QAction * | actionEnableSnapping () const |
| Access to action that user may use to toggle snapping on/off. More...
|
|
QAction * | actionEnableTracing () const |
| Access to action that user may use to toggle tracing on/off. May be nullptr if no action was associated. More...
|
|
void | reportError (PathError err, bool addingVertex) |
| Report a path finding error to the user. More...
|
|
void | setActionEnableSnapping (QAction *action) |
| Assign "enable snapping" checkable action to the tracer. More...
|
|
void | setActionEnableTracing (QAction *action) |
| Assign "enable tracing" checkable action to the tracer. More...
|
|
| QgsTracer () |
| Constructor for QgsTracer. More...
|
|
| ~QgsTracer () override |
|
QgsCoordinateReferenceSystem | destinationCrs () const |
| Returns the CRS used for tracing. More...
|
|
QgsRectangle | extent () const |
| Gets extent to which graph's features will be limited (empty extent means no limit) More...
|
|
QVector< QgsPointXY > | findShortestPath (const QgsPointXY &p1, const QgsPointXY &p2, PathError *error=nullptr) |
| Given two points, find the shortest path and return points on the way. More...
|
|
bool | hasTopologyProblem () const |
| Whether there was an error during graph creation due to noding exception, indicating some input data topology problems. More...
|
|
bool | init () |
| Build the internal data structures. More...
|
|
bool | isInitialized () const |
| Whether the internal data structures have been initialized. More...
|
|
bool | isPointSnapped (const QgsPointXY &pt) |
| Find out whether the point is snapped to a vertex or edge (i.e. it can be used for tracing start/stop) More...
|
|
QList< QgsVectorLayer * > | layers () const |
| Gets layers used for tracing. More...
|
|
int | maxFeatureCount () const |
| Gets maximum possible number of features in graph. If the number is exceeded, graph is not created. More...
|
|
double | offset () const |
| Gets offset in map units that should be applied to the traced paths returned from findShortestPath(). More...
|
|
void | offsetParameters (int &quadSegments, int &joinStyle, double &miterLimit) |
| Gets extra parameters for offset curve algorithm (used when offset is non-zero) More...
|
|
void | setDestinationCrs (const QgsCoordinateReferenceSystem &crs, const QgsCoordinateTransformContext &context) |
| Sets the crs and transform context used for tracing. More...
|
|
void | setExtent (const QgsRectangle &extent) |
| Sets extent to which graph's features will be limited (empty extent means no limit) More...
|
|
void | setLayers (const QList< QgsVectorLayer * > &layers) |
| Sets layers used for tracing. More...
|
|
void | setMaxFeatureCount (int count) |
| Gets maximum possible number of features in graph. If the number is exceeded, graph is not created. More...
|
|
void | setOffset (double offset) |
| Set offset in map units that should be applied to the traced paths returned from findShortestPath(). More...
|
|
void | setOffsetParameters (int quadSegments, int joinStyle, double miterLimit) |
| Set extra parameters for offset curve algorithm (used when offset is non-zero) More...
|
|
void | setRenderContext (const QgsRenderContext *renderContext) |
| Sets the renderContext used for tracing only on visible features. More...
|
|