|
| | WMTSLayer (const QUrl &serviceUrl, OpenSWMMVisWorkspace *parent=nullptr) |
| |
| | ~WMTSLayer () override |
| |
| QUrl | serviceUrl () const |
| |
| WMTSServiceInfo | serviceInfo () const |
| |
| bool | capabilitiesReady () const |
| |
| QString | sourceDescription () const override |
| | Human-readable source of this layer: a file path, a service URL, or a description for in-memory / derived layers.
|
| |
| void | fetchCapabilities () |
| | Asynchronously fetches and parses the GetCapabilities document.
|
| |
| void | setServiceInfo (const WMTSServiceInfo &info) |
| | Injects an already-fetched service info (e.g. from a connection dialog) so the layer can render immediately without a second GetCapabilities round-trip.
|
| |
| QString | activeLayerId () const |
| |
| void | setActiveLayerId (const QString &id) |
| |
| QString | activeTileMatrixSet () const |
| |
| void | setActiveTileMatrixSet (const QString &id) |
| |
| QString | activeStyle () const |
| |
| void | setActiveStyle (const QString &style) |
| |
| QString | imageFormat () const |
| |
| void | setImageFormat (const QString &fmt) |
| |
| int | tileSize () const |
| |
| int | tileCacheMaxSize () const |
| |
| void | setTileCacheMaxSize (int maxTiles) |
| | Sets the maximum number of tiles held in the in-memory cache.
|
| |
| bool | isRasterLayer () const override |
| | Returns true for layers that render into a raster buffer (WMS, WMTS, GISRaster) rather than populating QGraphicsItems.
|
| |
| bool | isBasemapLayer () const override |
| | Returns true for world-spanning basemap layers (XYZ tile providers, WMS/WMTS services covering the whole world) that should NOT be included when computing the data-driven full extent.
|
| |
| void | fetchCache (const MapExtent &extent, const QSize &viewportSize, const SpatialReferenceSystem *srs) override |
| | Triggers any asynchronous (or synchronous) tile/data fetch needed to populate this layer's internal cache for the given view state.
|
| |
| void | render (QPainter *painter, const MapExtent &extent, const QSize &imageSize, const SpatialReferenceSystem *srs) override |
| | Renders this layer's content directly into painter.
|
| |
| void | populateScene (QGraphicsScene *scene, const MapExtent &canvasExtent, const SpatialReferenceSystem *canvasSRS) override |
| | Creates / updates QGraphicsItems representing this layer in the scene.
|
| |
| void | refreshScene (QGraphicsScene *scene, const MapExtent &canvasExtent, const SpatialReferenceSystem *canvasSRS) override |
| | Smart scene refresh — updates existing items instead of destroying and recreating.
|
| |
| void | depopulateScene (QGraphicsScene *scene) override |
| | Removes all QGraphicsItems belonging to this layer from the scene.
|
| |
| void | onCanvasCRSChanged (const SpatialReferenceSystem *newCanvasSRS) override |
| | Called when the user changes the canvas CRS so layers can pre-compute any CRS-dependent transform caches.
|
| |
| void | fetchTileIfNeeded (const QString &cacheKey, const QUrl &tileUrl, const MapExtent &tileExtent, int level) |
| |
| QUrl | buildTileUrlPublic (const QString &layerId, const QString &style, const QString &tileMatrixSet, const WMTSTileMatrix &matrix, int col, int row) const |
| |
| const WMTSTileMatrix * | selectTileMatrixPublic (const WMTSTileMatrixSet &tms, const MapExtent &canvasExtent, int pixelWidth) const |
| |
| const OpenSWMM::Render::BasemapRenderParams & | basemapRenderParams () const |
| |
| void | setBasemapRenderParams (const OpenSWMM::Render::BasemapRenderParams &p) |
| |
| | TilePyramidLayer (OpenSWMMVisWorkspace *parent=nullptr) |
| |
| | ~TilePyramidLayer () override |
| |
| | OpenSWMMVisLayer (OpenSWMMVisWorkspace *parent) |
| |
| | OpenSWMMVisLayer (const QString &name="Unlabeled Layer", OpenSWMMVisWorkspace *parent=nullptr) |
| |
| virtual | ~OpenSWMMVisLayer () |
| |
| QString | layerId () const |
| | Returns the layer's immutable unique identifier (UUID).
|
| |
| QString | name () const |
| | Returns the user-visible name of this layer.
|
| |
| void | setName (const QString &name) |
| | Sets the user-visible name.
|
| |
| OpenSWMMVisLayerType | layerType () const |
| | Returns the layer type discriminator.
|
| |
| bool | isVisible () const |
| | Returns true when this layer should be drawn.
|
| |
| void | setVisible (bool visible) |
| | Shows or hides this layer.
|
| |
| double | opacity () const |
| | Returns the layer opacity in the range [0.0, 1.0]. 0.0 = fully transparent; 1.0 = fully opaque.
|
| |
| void | setOpacity (double opacity) |
| | Sets the layer opacity. Values are clamped to [0.0, 1.0].
|
| |
| SpatialReferenceSystem * | srs () const |
| | Returns the spatial reference system for this layer, or nullptr if the layer has no known CRS.
|
| |
| void | setSRS (SpatialReferenceSystem *srs, bool ownsSRS=false) |
| | Sets (or replaces) the CRS for this layer.
|
| |
| QString | crsDescription () const |
| | Returns a human-readable summary of this layer's CRS for display in the Properties window.
|
| |
| MapExtent | extent () const |
| | Returns the layer extent in the layer's own CRS.
|
| |
| void | setExtent (const MapExtent &extent) |
| | Sets the layer spatial extent (in the layer's CRS).
|
| |
| virtual QVector< QPair< QString, QString > > | extendedMetadata () const |
| | Ordered key→value pairs of TYPE-SPECIFIC metadata, rendered by the Metadata tab below the common block the dialog builds itself.
|
| |
| void | setViewportSize (int w, int h) |
| | Called by MapCanvas before refreshScene so layers can request the correct pixel dimensions for tile/image requests.
|
| |
| int | viewportWidth () const |
| |
| int | viewportHeight () const |
| |
| QVector< OpenSWMMVisLayer * > | children () const |
| | Returns the ordered list of child layers.
|
| |
| double | layerZValue () const |
| | Returns the z-value base assigned to this layer by the canvas. Items within the layer should use z-values relative to this.
|
| |
| virtual std::vector< std::unique_ptr< openswmmvis::ui::ILayerStyleSubject > > | styleSubjects () |
| | Slice U-2 — return the styleable subjects for the unified LayerStyleDialog.
|
| |
| void | setLayerZValue (double z) |
| | Called by the canvas to set this layer's z-value band.
|
| |
| virtual OpenSWMM::Render::IFeatureRenderer * | renderer () const |
| |
| virtual void | setRenderer (std::unique_ptr< OpenSWMM::Render::IFeatureRenderer >) |
| |
| virtual OpenSWMM::Render::RuleList * | ruleList () |
| |
| virtual const OpenSWMM::Render::RuleList * | ruleList () const |
| |
| const OpenSWMM::Render::TemporalSpec & | temporalSpec () const |
| |
| void | setTemporalSpec (const OpenSWMM::Render::TemporalSpec &spec) |
| |
| const OpenSWMM::Render::LabelConfig & | labelConfig () const |
| |
| virtual void | setLabelConfig (const OpenSWMM::Render::LabelConfig &cfg) |
| |
| const OpenSWMM::Render::MaskSpec & | maskSpec () const |
| |
| void | setMaskSpec (const OpenSWMM::Render::MaskSpec &spec) |
| |
| const OpenSWMM::Render::AuxiliaryStorageSpec & | auxStorageSpec () const |
| |
| void | setAuxStorageSpec (const OpenSWMM::Render::AuxiliaryStorageSpec &spec) |
| |
| const QVector< OpenSWMM::Render::JoinSpec > & | joins () const |
| |
| void | setJoins (const QVector< OpenSWMM::Render::JoinSpec > &joins) |
| |
| const OpenSWMM::Render::DiagramSpec & | diagramSpec () const |
| |
| void | setDiagramSpec (const OpenSWMM::Render::DiagramSpec &spec) |
| |
| OpenSWMMVisWorkspace * | workspace () const |
| |
| void | setBasicAuth (const QString &username, const QString &password) |
| | Sets HTTP Basic authentication for all subsequent network requests.
|
| |
| void | setHttpHeaders (const BasemapHttpHeaders &headers) |
| | Sets arbitrary extra HTTP headers applied to every request.
|
| |
| BasemapHttpHeaders | httpHeaders () const |
| |
|
| enum | OpenSWMMVisLayerType {
SWMMDefaultLayer = 0
,
SWMMModelLayer = 1
,
SWMMResultsLayer = 2
,
SWMMGISLayer = 3
,
SWMMVectorLayer = 4
,
SWMMRasterLayer = 5
,
SWMMImageryLayer = 6
,
SWMMTabularDataLayer = 7
,
SWMMTabularyTimeSeriesLayer = 8
,
SWMMSubProjectLayer = 9
,
SWMMWMSLayer = 10
,
SWMMWMTSLayer = 11
,
SWMM2DMeshLayer = 12
,
SWMM2DResultsLayer = 13
,
SWMMAnnotationLayer = 14
,
SWMMFeatureLayer = 15
} |
| | Discriminator for the concrete layer class. More...
|
| |
| void | cacheTile (const QString &key, const QImage &img, const MapExtent &extent, int level) |
| | Insert a produced tile (no-op for null images). extent is the tile's geographic extent in the subclass's tile CRS; level is the subclass's pyramid-level tag (metadata only — the fallback search is extent-based).
|
| |
| bool | isTileCached (const QString &key) const |
| | True when key holds a non-null cached tile. Does not promote the entry in the LRU.
|
| |
| QImage | cachedTileImage (const QString &key) const |
| | The cached image for key, or a null QImage.
|
| |
| void | clearTiles () |
| | Drop every cached tile (style / CRS / source change).
|
| |
| void | setTileCacheCapacity (int maxTiles) |
| |
| int | tileCacheCapacity () const |
| |
| bool | resolveTileForDraw (const QString &key, const MapExtent &tileExtent, double maxSpanRatio, TileDraw &out) const |
| | Resolve the image + source sub-rect that should paint the tile key with geographic extent tileExtent.
|
| |
| bool | addChild (OpenSWMMVisLayer *child) |
| |
| bool | removeChild (OpenSWMMVisLayer *child) |
| |
| void | setLayerType (OpenSWMMVisLayerType type) |
| |
| QByteArray | m_authHeader |
| | "Basic <base64>" or empty
|
| |
| BasemapHttpHeaders | m_httpHeaders |
| | arbitrary headers (incl. "referer")
|
| |
A map layer that fetches tiled imagery from an OGC WMTS service.
Implements the OGC Web Map Tile Service protocol using Qt's QNetworkAccessManager — no QGIS dependency.
Tiles are fetched in parallel, cached in the TilePyramidLayer base (keyed by "layerId/style/tileMatrixSet/zoom/col/row", each with its tile-CRS extent), and painted synchronously in render(); a tile still in flight paints as a sub-rect of the nearest cached coarser tile instead of a blank hole. Stale cache entries are automatically evicted when the cache exceeds its maximum size.
Supports both RESTful (KVP) and template URL tile addressing.