|
QGIS API Documentation
3.2.0-Bonn (bc43194)
|
Base class for providing data for QgsMeshLayer. More...
#include <qgsmeshdataprovider.h>

Public Member Functions | |
| QgsMeshDataProvider (const QString &uri, const QgsDataProvider::ProviderOptions &options) | |
| Ctor. More... | |
| QgsRectangle | extent () const override |
| Returns the extent of the layer. More... | |
Public Member Functions inherited from QgsDataProvider | |
| QgsDataProvider (const QString &uri=QString(), const QgsDataProvider::ProviderOptions &options=QgsDataProvider::ProviderOptions()) | |
| Create a new dataprovider with the specified in the uri. More... | |
| virtual QgsCoordinateReferenceSystem | crs () const =0 |
| Returns the coordinate system for the data source. More... | |
| virtual QString | dataSourceUri (bool expandAuthConfig=false) const |
| Gets the data source specification. More... | |
| virtual QDateTime | dataTimestamp () const |
| Current time stamp of data source. More... | |
| virtual QString | description () const =0 |
| Returns description. More... | |
| virtual bool | enterUpdateMode () |
| Enter update mode. More... | |
| virtual QgsError | error () const |
| Gets current status error. More... | |
| virtual QString | fileRasterFilters () const |
| Returns raster file filter string. More... | |
| virtual QString | fileVectorFilters () const |
| Returns vector file filter string. More... | |
| virtual void | invalidateConnections (const QString &connection) |
| Invalidate connections corresponding to specified name. More... | |
| virtual bool | isValid () const =0 |
| Returns true if this is a valid layer. More... | |
| virtual QgsLayerMetadata | layerMetadata () const |
| Returns layer metadata collected from the provider's source. More... | |
| virtual bool | leaveUpdateMode () |
| Leave update mode. More... | |
| virtual QString | name () const =0 |
| Returns a provider name. More... | |
| QVariant | providerProperty (ProviderProperty property, const QVariant &defaultValue=QVariant()) const |
| Gets the current value of a certain provider property. More... | |
| QVariant | providerProperty (int property, const QVariant &defaultValue) const |
| Gets the current value of a certain provider property. More... | |
| virtual void | reloadData () |
| Reloads the data from the source. More... | |
| virtual bool | renderInPreview (const QgsDataProvider::PreviewContext &context) |
| Returns whether the layer must be rendered in preview jobs. More... | |
| virtual void | setDataSourceUri (const QString &uri) |
| Set the data source specification. More... | |
| virtual void | setLayerOrder (const QStringList &layers) |
| Reorder the list of layer names to be rendered by this provider (in order from bottom to top) More... | |
| virtual void | setListening (bool isListening) |
| Set whether the provider will listen to datasource notifications If set, the provider will issue notify signals. More... | |
| void | setProviderProperty (ProviderProperty property, const QVariant &value) |
| Allows setting arbitrary properties on the provider. More... | |
| void | setProviderProperty (int property, const QVariant &value) |
| Allows setting arbitrary properties on the provider. More... | |
| virtual void | setSubLayerVisibility (const QString &name, bool vis) |
| Set the visibility of the given sublayer name. More... | |
| virtual bool | setSubsetString (const QString &subset, bool updateFeatureCount=true) |
| Set the subset string used to create a subset of features in the layer. More... | |
| void | setUri (const QgsDataSourceUri &uri) |
| Set the data source specification. More... | |
| virtual uint | subLayerCount () const |
| Returns the number of layers for the current data source. More... | |
| virtual QStringList | subLayers () const |
| Sub-layers handled by this provider, in order from bottom to top. More... | |
| virtual QStringList | subLayerStyles () const |
| Sub-layer styles for each sub-layer handled by this provider, in order from bottom to top. More... | |
| virtual QString | subsetString () const |
| Returns the subset definition string (typically sql) currently in use by the layer and used by the provider to limit the feature set. More... | |
| virtual bool | supportsSubsetString () const |
| Returns true if the provider supports setting of subset strings. More... | |
| virtual QDateTime | timestamp () const |
| Time stamp of data source in the moment when data/metadata were loaded by provider. More... | |
| virtual void | updateExtents () |
| Update the extents of the layer. More... | |
| QgsDataSourceUri | uri () const |
| Gets the data source specification. More... | |
| virtual bool | writeLayerMetadata (const QgsLayerMetadata &metadata) |
| Writes layer metadata to the underlying provider source. More... | |
Public Member Functions inherited from QgsMeshDataSourceInterface | |
| virtual | ~QgsMeshDataSourceInterface ()=default |
| Dtor. More... | |
| virtual QgsMeshFace | face (int index) const =0 |
| Returns the mesh face at index. More... | |
| virtual int | faceCount () const =0 |
| Returns number of faces in the native mesh. More... | |
| virtual QgsMeshVertex | vertex (int index) const =0 |
| Returns the mesh vertex at index. More... | |
| virtual int | vertexCount () const =0 |
| Returns number of vertices in the native mesh. More... | |
Public Member Functions inherited from QgsMeshDatasetSourceInterface | |
| virtual | ~QgsMeshDatasetSourceInterface ()=default |
| Dtor. More... | |
| virtual bool | addDataset (const QString &uri)=0 |
| Associate dataset with the mesh. More... | |
| virtual int | datasetCount () const =0 |
| Returns number of datasets loaded. More... | |
| virtual QgsMeshDatasetMetadata | datasetMetadata (int datasetIndex) const =0 |
| Returns dataset metadata. More... | |
| virtual QgsMeshDatasetValue | datasetValue (int datasetIndex, int valueIndex) const =0 |
| Returns vector/scalar value associated with the index from the dataset. More... | |
Additional Inherited Members | |
Public Types inherited from QgsDataProvider | |
| enum | DataCapability { NoDataCapabilities = 0, File = 1, Dir = 1 << 1, Database = 1 << 2, Net = 1 << 3 } |
| enum | ProviderProperty { EvaluateDefaultValues, CustomData = 3000 } |
| Properties are used to pass custom configuration options into data providers. More... | |
Signals inherited from QgsDataProvider | |
| void | dataChanged () |
| This is emitted whenever an asynchronous operation has finished and the data should be redrawn. More... | |
| void | fullExtentCalculated () |
| This is emitted whenever the worker thread has fully calculated the PostGIS extents for this layer, and its event has been received by this provider. More... | |
| void | notify (const QString &msg) |
| Emitted when datasource issues a notification. More... | |
Static Public Attributes inherited from QgsDataProvider | |
| static QString | SUBLAYER_SEPARATOR = QString( "!!::!!" ) |
| String sequence used for separating components of sublayers strings. More... | |
Protected Member Functions inherited from QgsDataProvider | |
| void | appendError (const QgsErrorMessage &message) |
| Add error message. More... | |
| void | setError (const QgsError &error) |
| Sets error message. More... | |
Protected Attributes inherited from QgsDataProvider | |
| QgsError | mError |
| Error. More... | |
| QDateTime | mTimestamp |
| Timestamp of data in the moment when the data were loaded by provider. More... | |
Base class for providing data for QgsMeshLayer.
Responsible for reading native mesh data
Definition at line 250 of file qgsmeshdataprovider.h.
| QgsMeshDataProvider::QgsMeshDataProvider | ( | const QString & | uri, |
| const QgsDataProvider::ProviderOptions & | options | ||
| ) |
Ctor.
Definition at line 21 of file qgsmeshdataprovider.cpp.
|
overridevirtual |
Returns the extent of the layer.
Implements QgsDataProvider.
Definition at line 27 of file qgsmeshdataprovider.cpp.
1.8.13