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").
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.
A geometry is the spatial representation of a feature.
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.
Class for storing a coordinate reference system (CRS)
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.