16 #ifndef QGSATLASCOMPOSITION_H
17 #define QGSATLASCOMPOSITION_H
24 #include <QDomElement>
25 #include <QDomDocument>
26 #include <QStringList>
59 void setEnabled(
bool enabled );
71 void setHideCoverage(
bool hide );
90 bool setFilenamePattern(
const QString& pattern );
132 QString nameForPage(
int pageNumber )
const;
195 int numFeatures()
const;
202 bool prepareForFeature(
const int i,
const bool updateMaps =
true );
207 bool prepareForFeature(
const QgsFeature *feat );
210 const QString& currentFilename()
const;
235 int updateFeatures();
245 QString currentPageName()
const;
271 Q_DECL_DEPRECATED
bool fixedScale()
const;
276 Q_DECL_DEPRECATED
void setFixedScale(
bool fixed );
281 Q_DECL_DEPRECATED
float margin()
const;
286 Q_DECL_DEPRECATED
void setMargin(
float margin );
288 Q_DECL_DEPRECATED
int sortKeyAttributeIndex()
const;
289 Q_DECL_DEPRECATED
void setSortKeyAttributeIndex(
int idx );
299 void refreshFeature();
308 void parameterChanged();
311 void toggled(
bool );
314 void statusMsgChanged(
QString message );
331 void numberFeaturesChanged(
int numFeatures );
337 bool updateFilenameExpression();
360 int mCurrentFeatureNo;
370 SorterKeys mFeatureKeys;
377 bool mFilterFeatures;
395 void updateAtlasMaps();
Class for parsing and evaluation of expressions (formerly called "search strings").
QMap< QgsFeatureId, QVariant > SorterKeys
const QVector< qreal > & predefinedScales() const
Returns the current list of predefined scales for the atlas.
A rectangle specified with double values.
void setSortFeatures(bool doSort)
QString pageNameExpression() const
Returns the expression used for calculating the page name.
bool hideCoverage() const
Returns true if the atlas is set to hide the coverage layer.
QgsComposition * composition()
bool enabled() const
Returns whether the atlas generation is enabled.
bool sortAscending() const
QgsFeature feature() const
Returns the current atlas feature.
The feature class encapsulates a single feature including its id, geometry and a list of field/values...
bool filterFeatures() const
QString featureFilterErrorString() const
Returns an error string from parsing the feature filter expression.
void setSortKeyAttributeName(const QString &fieldName)
QString sortKeyAttributeName() const
void setSortAscending(bool ascending)
bool singleFile() const
Returns whether the atlas will be exported to a single file.
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...
QString filenamePatternErrorString() const
Returns an error string from parsing the filename expression.
Graphics scene for map printing.
Object representing map window.
void setFilterFeatures(bool doFilter)
void setFeatureFilter(const QString &expression)
bool sortFeatures() const
QString filenamePattern() const
Returns the filename expression used for generating output filenames for each atlas page...
void setSingleFile(bool single)
Sets whether the atlas should be exported to a single file.
QString featureFilter() const
Class used to render an Atlas, iterating over geometry features.
QgsVectorLayer * coverageLayer() const
Returns the coverage layer used for the atlas features.
int currentFeatureNumber() const
Returns the current feature number, where a value of 0 corresponds to the first feature.
Q_DECL_DEPRECATED QgsFeature * currentFeature()
Returns the current atlas feature.
Represents a vector layer which manages a vector based data sets.