55    QList<QgsVectorLayer *> 
layers()
 const { 
return mLayers; }
 
   57    void setLayers( 
const QList<QgsVectorLayer *> &layers );
 
   86    double offset()
 const { 
return mOffset; }
 
   92    void setOffset( 
double offset );
 
   99    void offsetParameters( 
int &quadSegments 
SIP_OUT, 
int &joinStyle 
SIP_OUT, 
double &miterLimit 
SIP_OUT );
 
  106    void setOffsetParameters( 
int quadSegments, 
int joinStyle, 
double miterLimit );
 
  155    void setAddPointsOnIntersectionsEnabled( 
bool enable );
 
  174    void invalidateGraph();
 
  183    void onAttributeValueChanged( 
QgsFeatureId fid, 
int idx, 
const QVariant &value );
 
  184    void onDataChanged( );
 
  185    void onStyleChanged( );
 
  186    void onLayerDestroyed( QObject *obj );
 
  190    std::unique_ptr< QgsTracerGraph > mGraph;
 
  192    QList<QgsVectorLayer *> mLayers;
 
  198    std::unique_ptr<QgsRenderContext> mRenderContext;
 
  202    bool mAddPointsOnIntersections = 
true;
 
  209    int mOffsetSegments = 8;
 
  213    double mOffsetMiterLimit = 5.;
 
  219    int mMaxFeatureCount = 0;
 
  225    bool mHasTopologyProblem = 
false;
 
 
JoinStyle
Join styles for buffers.
 
@ Miter
Use mitered joins.
 
Represents a coordinate reference system (CRS).
 
Contains information about the context in which a coordinate transform is executed.
 
Abstract base class for all 2D vector feature renderers.
 
A geometry is the spatial representation of a feature.
 
A rectangle specified with double values.
 
Contains information about the context of a rendering operation.
 
Utility class that constructs a planar graph from the input vector layers and provides shortest path ...
 
void setMaxFeatureCount(int count)
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 ...
 
PathError
Possible errors that may happen when calling findShortestPath()
 
@ ErrNoPath
Points are not connected in the graph.
 
@ ErrPoint2
End point cannot be joined to the graph.
 
@ ErrPoint1
Start point cannot be joined to the graph.
 
@ ErrTooManyFeatures
Max feature count threshold was reached while reading features.
 
QgsTracer()
Constructor for QgsTracer.
 
QgsRectangle extent() const
Gets extent to which graph's features will be limited (empty extent means no limit)
 
int maxFeatureCount() const
Gets maximum possible number of features in graph. If the number is exceeded, graph is not created.
 
bool addPointsOnIntersectionsEnabled() const
Returns whether the shortest path's straight segments will include vertices where the input layers in...
 
double offset() const
Gets offset in map units that should be applied to the traced paths returned from findShortestPath().
 
QgsCoordinateReferenceSystem destinationCrs() const
Returns the CRS used for tracing.
 
QList< QgsVectorLayer * > layers() const
Gets layers used for tracing.
 
virtual void configure()
Allows derived classes to setup the settings just before the tracer is initialized.
 
bool isInitialized() const
Whether the internal data structures have been initialized.
 
Represents a vector layer which manages a vector based dataset.
 
qint64 QgsFeatureId
64 bit feature ids negative numbers are used for uncommitted/newly added features
 
const QgsCoordinateReferenceSystem & crs
 
Simple graph structure for shortest path search.