16 #ifndef QGSATLASCOMPOSITION_H 17 #define QGSATLASCOMPOSITION_H 26 #include <QDomElement> 27 #include <QDomDocument> 28 #include <QStringList> 61 void setEnabled(
bool enabled );
73 void setHideCoverage(
bool hide );
92 bool setFilenamePattern(
const QString& pattern );
134 QString nameForPage(
int pageNumber )
const;
197 int numFeatures()
const;
204 bool prepareForFeature(
const int i,
const bool updateMaps =
true );
209 bool prepareForFeature(
const QgsFeature *feat );
212 QString currentFilename()
const;
238 int updateFeatures();
248 QString currentPageName()
const;
274 Q_DECL_DEPRECATED
bool fixedScale()
const;
279 Q_DECL_DEPRECATED
void setFixedScale(
bool fixed );
284 Q_DECL_DEPRECATED
float margin()
const;
289 Q_DECL_DEPRECATED
void setMargin(
float margin );
292 Q_DECL_DEPRECATED
int sortKeyAttributeIndex()
const;
294 Q_DECL_DEPRECATED
void setSortKeyAttributeIndex(
int idx );
309 void refreshFeature();
318 void parameterChanged();
321 void toggled(
bool );
324 void statusMsgChanged(
const QString& message );
341 void numberFeaturesChanged(
int numFeatures );
347 bool updateFilenameExpression();
369 int mCurrentFeatureNo;
379 SorterKeys mFeatureKeys;
386 bool mFilterFeatures;
404 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.