53 Q_PROPERTY(
QString name READ name WRITE setName NOTIFY nameChanged )
86 Q_DECL_DEPRECATED
void setLayerName(
const QString & name );
137 QString abstract()
const {
return mAbstract; }
241 void setBlendMode( QPainter::CompositionMode blendMode );
243 QPainter::CompositionMode blendMode()
const;
298 virtual void setLayerOrder(
const QStringList &layers );
301 virtual void setSubLayerVisibility(
const QString& name,
bool vis );
304 virtual bool isEditable()
const;
364 void removeCustomProperty(
const QString& key );
368 Q_DECL_DEPRECATED
virtual QString lastErrorTitle();
371 Q_DECL_DEPRECATED
virtual QString lastError();
407 virtual QString loadDefaultStyle(
bool & theResultFlag );
422 virtual QString loadNamedStyle(
const QString &theURI,
bool &theResultFlag );
461 virtual QString saveDefaultStyle(
bool & theResultFlag );
476 virtual QString saveNamedStyle(
const QString &theURI,
bool &theResultFlag );
478 virtual QString saveSldStyle(
const QString &theURI,
bool &theResultFlag );
479 virtual QString loadSldStyle(
const QString &theURI,
bool &theResultFlag );
482 { Q_UNUSED( node ); errorMessage =
QString(
"Layer type %1 not supported" ).
arg( type() );
return false; }
491 virtual bool readSymbology(
const QDomNode& node,
QString& errorMessage ) = 0;
537 Q_DECL_DEPRECATED
void setCacheImage(
QImage * );
567 bool isInScaleRange(
double scale )
const;
577 double minimumScale()
const;
587 double maximumScale()
const;
596 bool hasScaleBasedVisibility()
const;
601 virtual void invalidTransformInput();
610 void setMinimumScale(
double theMinScale );
619 void setMaximumScale(
double theMaxScale );
627 void setScaleBasedVisibility(
const bool enabled );
632 Q_DECL_DEPRECATED
void toggleScaleBasedVisibility(
bool theVisibilityFlag );
637 Q_DECL_DEPRECATED
void clearCacheImage();
645 void triggerRepaint();
656 void emitStyleChanged();
661 Q_DECL_DEPRECATED
void drawingProgress(
int theProgress,
int theTotalSteps );
664 void statusChanged(
const QString& theStatus );
669 Q_DECL_DEPRECATED
void layerNameChanged();
679 void layerCrsChanged();
684 void repaintRequested();
687 void screenUpdateRequested();
690 void recalculateExtents();
696 void blendModeChanged( QPainter::CompositionMode blendMode );
701 void rendererChanged();
715 void legendChanged();
721 void configChanged();
728 void setValid(
bool valid );
733 virtual bool readXml(
const QDomNode& layer_node );
744 void readCustomProperties(
const QDomNode& layerNode,
const QString& keyStartsWith =
"" );
750 void readStyleManager(
const QDomNode& layerNode );
812 virtual bool isReadOnly()
const {
return true; }
831 QPainter::CompositionMode mBlendMode;
841 bool mScaleBasedVisibility;
QString attributionUrl() const
Get the attribution URL of the layer used by QGIS Server in GetCapabilities request Attribution indic...
void setMetadataUrl(const QString &metaUrl)
Set the metadata URL of the layer used by QGIS Server in GetCapabilities request MetadataUrl is a a l...
QString dataUrlFormat() const
Get the DataUrl format of the layer used by QGIS Server in GetCapabilities request DataUrl is a a lin...
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.
virtual bool isSpatial() const
Returns true if the layer is considered a spatial layer, ie it has some form of geometry associated w...
QString shortName() const
Get the short name of the layer used by QGIS Server to identify the layer.
QString dataUrl() const
Get the DataUrl of the layer used by QGIS Server in GetCapabilities request DataUrl is a a link to th...
virtual QgsError error() const
Get current status error.
virtual void reload()
Synchronises with changes in the datasource.
Q_DECLARE_METATYPE(QgsMimeDataUtils::UriList)
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...
virtual QDateTime timestamp() const
Time stamp of data source in the moment when data/metadata were loaded by provider.
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)
QString metadataUrlFormat() const
Get the metadata format of the layer used by QGIS Server in GetCapabilities request MetadataUrlType i...
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()
QString originalName() const
Get the original name of the layer.
LayerType
Layers enum defining the types of layers that can be added to a map.
QString keywordList() const
Get the keyword list of the layer used by QGIS Server in GetCapabilities request. ...
QString mDataUrl
DataUrl of the layer.
The QgsMapLayerLegend class is abstract interface for implementations of legends for one map layer...
QString legendUrl() const
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 bool readSld(const QDomNode &node, QString &errorMessage)
QString legendUrlFormat() const
QString mMetadataUrlFormat
void setName(const char *name)
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 title() const
Get the title of the layer used by QGIS Server in GetCapabilities request.
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)
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...
bool readOnly() const
Returns if this layer is read only.
void appendError(const QgsErrorMessage &theMessage)
Add error message.
QString metadataUrl() const
Get the metadata URL of the layer used by QGIS Server in GetCapabilities request MetadataUrl is a a l...
void setAttribution(const QString &attrib)
Set the attribution of the layer used by QGIS Server in GetCapabilities request Attribution indicates...
Management of styles for use with one map layer.
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.
void setAbstract(const QString &abstract)
Set the abstract of the layer used by QGIS Server in GetCapabilities request.
QString attribution() const
Get the attribution of the layer used by QGIS Server in GetCapabilities request Attribution indicates...
QString metadataUrlType() const
Get the metadata type of the layer used by QGIS Server in GetCapabilities request MetadataUrlType ind...