83 void setLayerName(
const QString & name );
126 QString abstract()
const {
return mAbstract; }
230 void setBlendMode( QPainter::CompositionMode blendMode );
232 QPainter::CompositionMode blendMode()
const;
284 virtual void setLayerOrder(
const QStringList &layers );
287 virtual void setSubLayerVisibility(
const QString& name,
bool vis );
290 virtual bool isEditable()
const;
306 bool readLayerXML(
const QDomElement& layerElement );
344 void removeCustomProperty(
const QString& key );
348 Q_DECL_DEPRECATED
virtual QString lastErrorTitle();
351 Q_DECL_DEPRECATED
virtual QString lastError();
386 virtual QString loadDefaultStyle(
bool & theResultFlag );
401 virtual QString loadNamedStyle(
const QString &theURI,
bool &theResultFlag );
440 virtual QString saveDefaultStyle(
bool & theResultFlag );
455 virtual QString saveNamedStyle(
const QString &theURI,
bool &theResultFlag );
457 virtual QString saveSldStyle(
const QString &theURI,
bool &theResultFlag );
458 virtual QString loadSldStyle(
const QString &theURI,
bool &theResultFlag );
461 { Q_UNUSED( node ); errorMessage =
QString(
"Layer type %1 not supported" ).
arg( type() );
return false; }
470 virtual bool readSymbology(
const QDomNode& node,
QString& errorMessage ) = 0;
492 Q_DECL_DEPRECATED
void setCacheImage(
QImage * );
521 float minimumScale()
const;
530 float maximumScale()
const;
538 bool hasScaleBasedVisibility()
const;
543 virtual void invalidTransformInput();
552 void setMinimumScale(
const float theMinScale );
561 void setMaximumScale(
const float theMaxScale );
569 void setScaleBasedVisibility(
const bool enabled );
574 Q_DECL_DEPRECATED
void toggleScaleBasedVisibility(
bool theVisibilityFlag );
579 Q_DECL_DEPRECATED
void clearCacheImage();
587 void triggerRepaint();
598 Q_DECL_DEPRECATED
void drawingProgress(
int theProgress,
int theTotalSteps );
601 void statusChanged(
const QString& theStatus );
604 void layerNameChanged();
607 void layerCrsChanged();
612 void repaintRequested();
615 void screenUpdateRequested();
618 void recalculateExtents();
624 void blendModeChanged( QPainter::CompositionMode blendMode );
627 void rendererChanged();
633 void legendChanged();
640 void setValid(
bool valid );
645 virtual bool readXml(
const QDomNode& layer_node );
656 void readCustomProperties(
const QDomNode& layerNode,
const QString& keyStartsWith =
"" );
662 void readStyleManager(
const QDomNode& layerNode );
737 QPainter::CompositionMode mBlendMode;
747 bool mScaleBasedVisibility;
void setMetadataUrl(const QString &metaUrl)
Set the metadata URL of the layer used by QGIS Server in GetCapabilities request MetadataUrl is a a l...
A rectangle specified with double values.
Base class for all map layer types.
void setShortName(const QString &shortName)
Set the short name of the layer used by QGIS Server to identify the layer.
QString shortName() const
Get the short name of the layer used by QGIS Server to identify the layer.
virtual void reload()
Synchronises with changes in the datasource.
QString title() const
Get the title of the layer used by QGIS Server in GetCapabilities request.
void setMetadataUrlType(const QString &metaUrlType)
Set the metadata type of the layer used by QGIS Server in GetCapabilities request MetadataUrlType ind...
virtual QgsMapLayerRenderer * createMapRenderer(QgsRenderContext &rendererContext)
Return new instance of QgsMapLayerRenderer that will be used for rendering of given context...
QString dataUrl() const
Get the DataUrl of the layer used by QGIS Server in GetCapabilities request DataUrl is a a link to th...
QString mLayerName
Name of the layer - used for display.
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)
Set the keyword list of the layer used by QGIS Server in GetCapabilities request. ...
void setTitle(const QString &title)
Set the title of the layer used by QGIS Server in GetCapabilities request.
Q_DECL_DEPRECATED QImage * cacheImage()
LayerType
Layers enum defining the types of layers that can be added to a map.
QString mDataUrl
DataUrl of the layer.
The QgsMapLayerLegend class is abstract interface for implementations of legends for one map layer...
QString attributionUrl() const
Get the attribution URL of the layer used by QGIS Server in GetCapabilities request Attribution indic...
QString dataUrlFormat() const
Get the DataUrl format of the layer used by QGIS Server in GetCapabilities request DataUrl is a a lin...
QgsErrorMessage represents single error message.
bool mValid
Indicates if the layer is valid and can be drawn.
void setDataUrlFormat(const QString &dataUrlFormat)
Set the DataUrl format of the layer used by QGIS Server in GetCapabilities request DataUrl is a a lin...
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)
Set the metadata format of the layer used by QGIS Server in GetCapabilities request MetadataUrlType i...
QString mAttribution
Attribution of the layer.
QString mAbstract
Description of the layer.
virtual Q_DECL_DEPRECATED void onCacheImageDelete()
QString metadataUrl() const
Get the metadata URL of the layer used by QGIS Server in GetCapabilities request MetadataUrl is a a l...
Contains information about the context of a rendering operation.
QString legendUrlFormat() const
QString mDataSource
Data source description string, varies by layer type.
QString legendUrl() const
QgsError is container for error messages (report).
QString mLegendUrl
WMS legend.
Class for storing a coordinate reference system (CRS)
QString originalName() const
Get the original name of the layer.
QString metadataUrlType() const
Get the metadata type of the layer used by QGIS Server in GetCapabilities request MetadataUrlType ind...
Simple key-value store (keys = strings, values = variants) that supports loading/saving to/from XML i...
void setAttributionUrl(const QString &attribUrl)
Set the attribution URL of the layer used by QGIS Server in GetCapabilities request Attribution indic...
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)
Set the attribution of the layer used by QGIS Server in GetCapabilities request Attribution indicates...
QString keywordList() const
Get the keyword list of the layer used by QGIS Server in GetCapabilities request. ...
Management of styles for use with one map layer.
QString attribution() const
Get the attribution of the layer used by QGIS Server in GetCapabilities request Attribution indicates...
QString arg(qlonglong a, int fieldWidth, int base, const QChar &fillChar) const
void setDataUrl(const QString &dataUrl)
Set the DataUrl of the layer used by QGIS Server in GetCapabilities request DataUrl is a a link to th...
QString mLayerOrigName
Original name of the layer.
QString metadataUrlFormat() const
Get the metadata format of the layer used by QGIS Server in GetCapabilities request MetadataUrlType i...
void setAbstract(const QString &abstract)
Set the abstract of the layer used by QGIS Server in GetCapabilities request.