18#include "moc_qgslayoutreportcontext.cpp" 
   31  mGeometryCache.clear();
 
 
   48  if ( mLayer->crs() == 
crs )
 
   54  const auto it = mGeometryCache.constFind( 
crs.
srsid() );
 
   55  if ( it != mGeometryCache.constEnd() )
 
   63  mGeometryCache[
crs.
srsid()] = transformed;
 
 
   81  mPredefinedScales = scales;
 
   83  std::sort( mPredefinedScales.begin(), mPredefinedScales.end() ); 
 
 
Represents a coordinate reference system (CRS).
 
bool isValid() const
Returns whether this CRS is correctly initialized and usable.
 
long srsid() const
Returns the internal CRS ID, if available.
 
The feature class encapsulates a single feature including its unique ID, geometry and a list of field...
 
bool hasGeometry() const
Returns true if the feature has an associated geometry.
 
bool isValid() const
Returns the validity of this feature.
 
A geometry is the spatial representation of a feature.
 
Qgis::GeometryOperationResult transform(const QgsCoordinateTransform &ct, Qgis::TransformDirection direction=Qgis::TransformDirection::Forward, bool transformZ=false)
Transforms this geometry as described by the coordinate transform ct.
 
void setLayer(QgsVectorLayer *layer)
Sets the vector layer associated with the layout's context.
 
void setFeature(const QgsFeature &feature)
Sets the current feature for evaluating the layout.
 
QgsFeature feature() const
Returns the current feature for evaluating the layout.
 
Q_DECL_DEPRECATED void setPredefinedScales(const QVector< qreal > &scales)
Sets the list of predefined scales to use with the layout.
 
void layerChanged(QgsVectorLayer *layer)
Emitted when the context's layer is changed.
 
QgsLayoutReportContext(QgsLayout *layout)
Constructor for QgsLayoutReportContext.
 
void changed()
Emitted certain settings in the context is changed, e.g.
 
QgsVectorLayer * layer() const
Returns the vector layer associated with the layout's context.
 
QgsGeometry currentGeometry(const QgsCoordinateReferenceSystem &crs=QgsCoordinateReferenceSystem()) const
Returns the current feature() geometry in the given crs.
 
Base class for layouts, which can contain items such as maps, labels, scalebars, etc.
 
QgsProject * project() const
The project associated with the layout.
 
Represents a vector layer which manages a vector based dataset.
 
const QgsCoordinateReferenceSystem & crs