16 #ifndef QGSATLASCOMPOSITION_H
17 #define QGSATLASCOMPOSITION_H
24 #include <QDomElement>
25 #include <QDomDocument>
26 #include <QStringList>
58 void setEnabled(
bool enabled );
80 void setHideCoverage(
bool hide );
85 Q_DECL_DEPRECATED
bool fixedScale()
const;
90 Q_DECL_DEPRECATED
void setFixedScale(
bool fixed );
95 Q_DECL_DEPRECATED
float margin()
const;
100 Q_DECL_DEPRECATED
void setMargin(
float margin );
119 bool setFilenamePattern(
const QString& pattern );
178 Q_DECL_DEPRECATED
int sortKeyAttributeIndex()
const;
179 Q_DECL_DEPRECATED
void setSortKeyAttributeIndex(
int idx );
204 int numFeatures()
const;
211 bool prepareForFeature(
const int i,
const bool updateMaps =
true );
216 bool prepareForFeature(
const QgsFeature *feat );
219 const QString& currentFilename()
const;
244 int updateFeatures();
257 void refreshFeature();
266 void parameterChanged();
269 void toggled(
bool );
272 void statusMsgChanged(
QString message );
290 bool updateFilenameExpression();
295 bool evalFeatureFilename();
313 int mCurrentFeatureNo;
328 bool mFilterFeatures;
346 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)
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.
void setSortKeyAttributeName(QString fieldName)
bool sortAscending() const
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.
QString sortKeyAttributeName() const
void setSortAscending(bool ascending)
bool singleFile() const
Returns whether the atlas will be exported to a single file.
QString filenamePatternErrorString() const
Returns an error string from parsing the filename expression.
Graphics scene for map printing.
QgsFeature * currentFeature()
Returns the current atlas feature.
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.
Represents a vector layer which manages a vector based data sets.