83 void setLayerName(
const QString & name );
97 const QString&
abstract()
const {
return mAbstract; }
123 void setBlendMode(
const QPainter::CompositionMode &blendMode );
125 QPainter::CompositionMode blendMode()
const;
177 virtual void setLayerOrder(
const QStringList &layers );
180 virtual void setSubLayerVisibility(
const QString& name,
bool vis );
183 virtual bool isEditable()
const;
199 bool readLayerXML(
const QDomElement& layerElement );
237 void removeCustomProperty(
const QString& key );
241 Q_DECL_DEPRECATED
virtual QString lastErrorTitle();
244 Q_DECL_DEPRECATED
virtual QString lastError();
279 virtual QString loadDefaultStyle(
bool & theResultFlag );
294 virtual QString loadNamedStyle(
const QString &theURI,
bool &theResultFlag );
333 virtual QString saveDefaultStyle(
bool & theResultFlag );
348 virtual QString saveNamedStyle(
const QString &theURI,
bool &theResultFlag );
350 virtual QString saveSldStyle(
const QString &theURI,
bool &theResultFlag );
351 virtual QString loadSldStyle(
const QString &theURI,
bool &theResultFlag );
354 { Q_UNUSED( node ); errorMessage =
QString(
"Layer type %1 not supported" ).
arg( type() );
return false; }
363 virtual bool readSymbology(
const QDomNode& node,
QString& errorMessage ) = 0;
385 Q_DECL_DEPRECATED
void setCacheImage(
QImage * );
414 float minimumScale()
const;
423 float maximumScale()
const;
431 bool hasScaleBasedVisibility()
const;
436 virtual void invalidTransformInput();
445 void setMinimumScale(
const float theMinScale );
454 void setMaximumScale(
const float theMaxScale );
462 void setScaleBasedVisibility(
const bool enabled );
467 Q_DECL_DEPRECATED
void toggleScaleBasedVisibility(
bool theVisibilityFlag );
471 Q_DECL_DEPRECATED
void clearCacheImage();
479 void triggerRepaint();
490 void drawingProgress(
int theProgress,
int theTotalSteps );
493 void statusChanged(
QString theStatus );
496 void layerNameChanged();
499 void layerCrsChanged();
504 void repaintRequested();
507 void screenUpdateRequested();
510 void recalculateExtents();
516 void blendModeChanged(
const QPainter::CompositionMode &blendMode );
519 void rendererChanged();
525 void legendChanged();
532 void setValid(
bool valid );
537 virtual bool readXml(
const QDomNode& layer_node );
548 void readCustomProperties(
const QDomNode& layerNode,
const QString& keyStartsWith =
"" );
554 void readStyleManager(
const QDomNode& layerNode );
628 QPainter::CompositionMode mBlendMode;
638 bool mScaleBasedVisibility;
void setMetadataUrl(const QString &metaUrl)
A rectangle specified with double values.
Base class for all map layer types.
LayerType
Layers enum defining the types of layers that can be added to a map.
const QString & originalName() const
Get the original name of the layer.
virtual void reload()
Synchronises with changes in the datasource.
const QString & attribution() const
void setMetadataUrlType(const QString &metaUrlType)
virtual QgsMapLayerRenderer * createMapRenderer(QgsRenderContext &rendererContext)
Return new instance of QgsMapLayerRenderer that will be used for rendering of given context...
QString mLayerName
Name of the layer - used for display.
const QString & legendUrl() const
QgsRectangle mExtent
Extent of the layer.
const char * name() const
QString mMetadataUrl
MetadataUrl of the layer.
void setLegendUrlFormat(const QString &legendUrlFormat)
void setError(const QgsError &theError)
Set error message.
void setKeywordList(const QString &keywords)
const QString & dataUrl() const
void setTitle(const QString &title)
Q_DECL_DEPRECATED QImage * cacheImage()
const QString & metadataUrlType() const
QString mDataUrl
DataUrl of the layer.
const QString & metadataUrl() const
The QgsMapLayerLegend class is abstract interface for implementations of legends for one map layer...
QgsErrorMessage represents single error message.
bool mValid
Indicates if the layer is valid and can be drawn.
void setDataUrlFormat(const QString &dataUrlFormat)
virtual QgsError error() const
Get current status error.
virtual bool readSld(const QDomNode &node, QString &errorMessage)
QString mMetadataUrlFormat
void setLegendUrl(const QString &legendUrl)
virtual void connectNotify(const char *signal)
void setMetadataUrlFormat(const QString &metaUrlFormat)
QString mAttribution
Attribution of the layer.
QString mAbstract
Description of the layer.
virtual Q_DECL_DEPRECATED void onCacheImageDelete()
Contains information about the context of a rendering operation.
QString mDataSource
Data source description string, varies by layer type.
QgsError is container for error messages (report).
QString mLegendUrl
WMS legend.
Class for storing a coordinate reference system (CRS)
Simple key-value store (keys = strings, values = variants) that supports loading/saving to/from XML i...
void setAttributionUrl(const QString &attribUrl)
Base class for utility classes that encapsulate information necessary for rendering of map layers...
void appendError(const QgsErrorMessage &theMessage)
Add error message.
virtual QDateTime timestamp() const
Time stamp of data source in the moment when data/metadata were loaded by provider.
void setAttribution(const QString &attrib)
const QString & attributionUrl() const
Management of styles for use with one map layer.
const QString & metadataUrlFormat() const
const QString & legendUrlFormat() const
QString arg(qlonglong a, int fieldWidth, int base, const QChar &fillChar) const
const QString & title() const
void setDataUrl(const QString &dataUrl)
QString mLayerOrigName
Original name of the layer.
const QString & keywordList() const
void setAbstract(const QString &abstract)
const QString & dataUrlFormat() const