16 #ifndef QGSATLASCOMPOSITION_H
17 #define QGSATLASCOMPOSITION_H
24 #include <QDomElement>
25 #include <QDomDocument>
57 void setEnabled(
bool enabled );
79 void setHideCoverage(
bool hide );
84 Q_DECL_DEPRECATED
bool fixedScale()
const;
89 Q_DECL_DEPRECATED
void setFixedScale(
bool fixed );
94 Q_DECL_DEPRECATED
float margin()
const;
99 Q_DECL_DEPRECATED
void setMargin(
float margin );
118 bool setFilenamePattern(
const QString& pattern );
177 Q_DECL_DEPRECATED
int sortKeyAttributeIndex()
const;
178 Q_DECL_DEPRECATED
void setSortKeyAttributeIndex(
int idx );
194 void setPredefinedScales(
const QVector<double>& scales );
203 int numFeatures()
const;
208 bool prepareForFeature(
int i );
216 const QString& currentFilename()
const;
218 void writeXML( QDomElement& elem, QDomDocument& doc )
const;
219 void readXML(
const QDomElement& elem,
const QDomDocument& doc );
225 int updateFeatures();
240 void parameterChanged();
243 void toggled(
bool );
246 void statusMsgChanged( QString message );
264 bool updateFilenameExpression();
269 bool evalFeatureFilename();
317 void updateAtlasMaps();
Class for parsing and evaluation of expressions (formerly called "search strings").
QMap< QgsFeatureId, QVariant > SorterKeys
A rectangle specified with double values.
void setSortFeatures(bool doSort)
QgsVectorLayer * mCoverageLayer
QVector< QgsFeatureId > mFeatureIds
QString mFilenameParserError
bool hideCoverage() const
Returns true if the atlas is set to hide the coverage layer.
QVector< double > mPredefinedScales
QgsComposition * composition()
bool enabled() const
Returns whether the atlas generation is enabled.
void setSortKeyAttributeName(QString fieldName)
bool sortAscending() const
QgsCoordinateTransform mTransform
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.
QgsRectangle mTransformedFeatureBounds
QString sortKeyAttributeName() const
void setSortAscending(bool ascending)
bool singleFile() const
Returns whether the atlas will be exported to a single file.
QString mSortKeyAttributeName
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.
QgsComposition * mComposition
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...
QString mFilterParserError
const QVector< double > & 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.
QString featureFilter() const
QgsFeature mCurrentFeature
Class used to render an Atlas, iterating over geometry features.
std::auto_ptr< QgsExpression > mFilenameExpr
QgsVectorLayer * coverageLayer() const
Returns the coverage layer used for the atlas features.
Represents a vector layer which manages a vector based data sets.