void setLayer(QgsVectorLayer *layer)
Sets the vector layer associated with the layout's context.
OperationResult transform(const QgsCoordinateTransform &ct, QgsCoordinateTransform::TransformDirection direction=QgsCoordinateTransform::ForwardTransform, bool transformZ=false) SIP_THROW(QgsCsException)
Transforms this geometry as described by the coordinate transform ct.
void setFeature(const QgsFeature &feature)
Sets the current feature for evaluating the layout.
QgsFeature feature() const
Returns the current feature for evaluating the layout.
void changed()
Emitted certain settings in the context is changed, e.g.
QgsGeometry currentGeometry(const QgsCoordinateReferenceSystem &crs=QgsCoordinateReferenceSystem()) const
Returns the current feature() geometry in the given crs.
Q_DECL_DEPRECATED void setPredefinedScales(const QVector< qreal > &scales)
Sets the list of predefined scales to use with the layout.
QgsLayoutReportContext(QgsLayout *layout)
Constructor for QgsLayoutReportContext.
void layerChanged(QgsVectorLayer *layer)
Emitted when the context's layer is changed.
QgsVectorLayer * layer() const
Returns the vector layer associated with the layout's context.