16 #ifndef QGSATLASCOMPOSITION_H 17 #define QGSATLASCOMPOSITION_H 25 #include <QDomElement> 26 #include <QDomDocument> 27 #include <QStringList> 60 void setEnabled(
bool enabled );
72 void setHideCoverage(
bool hide );
91 bool setFilenamePattern(
const QString& pattern );
133 QString nameForPage(
int pageNumber )
const;
196 int numFeatures()
const;
203 bool prepareForFeature(
const int i,
const bool updateMaps =
true );
208 bool prepareForFeature(
const QgsFeature *feat );
211 QString currentFilename()
const;
237 int updateFeatures();
247 QString currentPageName()
const;
273 Q_DECL_DEPRECATED
bool fixedScale()
const;
278 Q_DECL_DEPRECATED
void setFixedScale(
bool fixed );
283 Q_DECL_DEPRECATED
float margin()
const;
288 Q_DECL_DEPRECATED
void setMargin(
float margin );
291 Q_DECL_DEPRECATED
int sortKeyAttributeIndex()
const;
293 Q_DECL_DEPRECATED
void setSortKeyAttributeIndex(
int idx );
308 void refreshFeature();
317 void parameterChanged();
320 void toggled(
bool );
323 void statusMsgChanged(
const QString& message );
340 void numberFeaturesChanged(
int numFeatures );
346 bool updateFilenameExpression();
368 int mCurrentFeatureNo;
378 SorterKeys mFeatureKeys;
385 bool mFilterFeatures;
403 void updateAtlasMaps();
Class for parsing and evaluation of expressions (formerly called "search strings").
QString sortKeyAttributeName() const
QMap< QgsFeatureId, QVariant > SorterKeys
A rectangle specified with double values.
void setSortFeatures(bool doSort)
bool sortAscending() const
QString filenamePatternErrorString() const
Returns an error string from parsing the filename expression.
QgsComposition * composition()
A geometry is the spatial representation of a feature.
bool filterFeatures() const
The feature class encapsulates a single feature including its id, geometry and a list of field/values...
QString pageNameExpression() const
Returns the expression used for calculating the page name.
void setSortKeyAttributeName(const QString &fieldName)
void setSortAscending(bool ascending)
void setPageNameExpression(const QString &pageNameExpression)
Sets the expression used for calculating the page name.
Expression contexts are used to encapsulate the parameters around which a QgsExpression should be eva...
bool hideCoverage() const
Returns true if the atlas is set to hide the coverage layer.
QString featureFilter() const
Graphics scene for map printing.
Object representing map window.
int currentFeatureNumber() const
Returns the current feature number, where a value of 0 corresponds to the first feature.
void setFilterFeatures(bool doFilter)
bool sortFeatures() const
void setFeatureFilter(const QString &expression)
const QVector< qreal > & predefinedScales() const
Returns the current list of predefined scales for the atlas.
void setSingleFile(bool single)
Sets whether the atlas should be exported to a single file.
Class for storing a coordinate reference system (CRS)
QString filenamePattern() const
Returns the filename expression used for generating output filenames for each atlas page...
Class used to render an Atlas, iterating over geometry features.
QgsVectorLayer * coverageLayer() const
Returns the coverage layer used for the atlas features.
QgsFeature feature() const
Returns the current atlas feature.
QString featureFilterErrorString() const
Returns an error string from parsing the feature filter expression.
Q_DECL_DEPRECATED QgsFeature * currentFeature()
Returns the current atlas feature.
Represents a vector layer which manages a vector based data sets.
bool enabled() const
Returns whether the atlas generation is enabled.
bool singleFile() const
Returns whether the atlas will be exported to a single file.