| 
    QGIS API Documentation
    3.26.3-Buenos Aires (65e4edfdad)
    
   | 
 
 
 
 
Go to the documentation of this file.
   21 #include "qgis_core.h" 
   56     QList<QgsVectorLayer *> 
layers()
 const { 
return mLayers; }
 
   58     void setLayers( 
const QList<QgsVectorLayer *> &layers );
 
   88     double offset()
 const { 
return mOffset; }
 
   95     void setOffset( 
double offset );
 
  103     void offsetParameters( 
int &quadSegments 
SIP_OUT, 
int &joinStyle 
SIP_OUT, 
double &miterLimit 
SIP_OUT );
 
  111     void setOffsetParameters( 
int quadSegments, 
int joinStyle, 
double miterLimit );
 
  167     void invalidateGraph();
 
  176     void onAttributeValueChanged( 
QgsFeatureId fid, 
int idx, 
const QVariant &value );
 
  177     void onDataChanged( );
 
  178     void onStyleChanged( );
 
  179     void onLayerDestroyed( QObject *obj );
 
  183     std::unique_ptr< QgsTracerGraph > mGraph;
 
  185     QList<QgsVectorLayer *> mLayers;
 
  191     std::unique_ptr<QgsRenderContext> mRenderContext;
 
  198     int mOffsetSegments = 8;
 
  202     double mOffsetMiterLimit = 5.;
 
  208     int mMaxFeatureCount = 0;
 
  214     bool mHasTopologyProblem = 
false;
 
  218 #endif // QGSTRACER_H 
  
Contains information about the context in which a coordinate transform is executed.
 
Utility class that construct a planar graph from the input vector layers and provides shortest path s...
 
const QgsCoordinateReferenceSystem & crs
 
Contains information about the context of a rendering operation.
 
@ 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.
 
A rectangle specified with double values.
 
@ 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.
 
JoinStyle
Join styles for buffers.
 
int maxFeatureCount() const
Gets maximum possible number of features in graph. If the number is exceeded, graph is not created.
 
This class represents a coordinate reference system (CRS).
 
bool hasTopologyProblem() const
Whether there was an error during graph creation due to noding exception, indicating some input data ...
 
A class to represent a 2D point.
 
QgsCoordinateReferenceSystem destinationCrs() const
Returns the CRS used for tracing.
 
A geometry is the spatial representation of a feature.
 
Simple graph structure for shortest path search.
 
Represents a vector layer which manages a vector based data sets.
 
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.
 
qint64 QgsFeatureId
64 bit feature ids negative numbers are used for uncommitted/newly added features