GUI-owned observation layer with read-only, independently owned source samples.
More...
|
| | TimeSeriesLayer (OpenSWMMVisWorkspace *parent=nullptr) |
| | Construct an unopened collection; no engine, plugin or file is required.
|
| |
| | ~TimeSeriesLayer () override |
| | Release presentation connections; source files are never deleted.
|
| |
| bool | openTimeSeries (const QString &path, const QString &expectedDatasetId={}, QString *error=nullptr) |
| | Validate and open metadata and the bounded station table.
|
| |
| std::shared_ptr< const OpenSWMM::TimeSeries::TimeSeriesDataset > | dataset () const |
| |
| QString | sourcePath () const |
| |
| QString | datasetId () const |
| |
| QString | sourceError () const |
| |
| QString | sourceDescription () const override |
| |
| QVector< QPair< QString, QString > > | extendedMetadata () const override |
| |
| QStringList | seriesIds () const |
| |
| OpenSWMM::TimeSeries::SeriesInfo | seriesInfo (const QString &id) const |
| |
| QString | seriesCaption (const QString &id) const |
| |
| QStringList | selectedSeriesIds () const |
| |
| void | setSelectedSeriesIds (const QStringList &ids) |
| | Replace collection selection and synchronize owned markers and the project bus.
|
| |
| void | bindCanvas (MapCanvas *canvas) |
| | Attach/detach the canvas and its selection/lifecycle signals.
|
| |
| QJsonArray | associations () const |
| |
| void | restoreAssociations (const QJsonArray &links) |
| | Restore validated relationship records without an undo step.
|
| |
| bool | attachToSelectedFeature (const QStringList &ids, QString *error=nullptr) |
| | Attach selected series to one currently selected persistent GIS/model feature.
|
| |
| void | detachFeatures (const QStringList &ids) |
| | Remove relationships as one undoable presentation edit.
|
| |
| QString | associationStatus (const QString &id) const |
| |
| QStringList | seriesForFeature (const SWMMObjectRef &feature, const OpenSWMMVisLayer *targetLayer=nullptr) const |
| | Find series attached to an exact live feature identity.
|
| |
| QStringList | seriesForLocations (const QSet< long long > &fids) const |
| |
| bool | canZoomToLocations (const QStringList &ids) const |
| | Whether exact series have an owned station or a currently resolved feature link.
|
| |
| bool | zoomToLocations (const QStringList &ids) |
| | Frame the requested source stations, falling back to links for unlocated series.
|
| |
| void | showData (QWidget *parent=nullptr, const QString &initialSeries={}) |
| | Show the modeless native series/observation browser.
|
| |
| void | requestPlot (const QStringList &ids={}, QWidget *parent=nullptr) |
| | Request plotting, choosing series when more than one is available.
|
| |
| void | locateSource (QWidget *parent=nullptr) |
| | Present a persistent-source locator; validates the expected dataset UUID.
|
| |
| SWMMObjectRef | seriesRef (const QString &seriesId) const |
| | Build a qualified external-series selection token.
|
| |
| QString | seriesIdForRef (const SWMMObjectRef &ref) const |
| | Interpret a selection token belonging to this layer.
|
| |
| | GISVectorLayer (const QString &filePath, const QString &layerName={}, OpenSWMMVisWorkspace *parent=nullptr) |
| | Construct a vector source with a default single-symbol rule.
|
| |
| | ~GISVectorLayer () override |
| | Close the dataset and coordinate transform, invalidating borrowed OGR handles.
|
| |
| void | openAsync (const QString &filePath, const QString &layerName={}) |
| | Open and inspect a datasource on a worker, then adopt its handle on the GUI thread.
|
| |
| QString | filePath () const |
| |
| QString | ogrLayerName () const |
| |
| class OGRLayer * | ogrLayer () const |
| |
| void | appendScenePolygonsTo (QPainterPath &out) const |
| | Append attribute-filtered polygon exteriors and holes in canvas scene coordinates.
|
| |
| int | featureCount () const |
| |
| QStringList | fieldNames () const |
| |
| QVector< OpenSWMM::Render::AttributeField > | availableAttributes (OpenSWMMVis::SwmmCategory cat) const override |
| | Expose physical vector columns to generic attribute selectors.
|
| |
| QString | filterExpression () const |
| |
| void | setFilterExpression (const QString &expr) |
| | Request an OGR attribute filter and invalidate cached scene/mask geometry.
|
| |
| bool | setValidatedFilterExpression (const QString &expr, QString *error=nullptr) |
| | Apply a vector attribute filter only after the current OGR source accepts it.
|
| |
| GISVectorSymbol | symbol () const |
| |
| void | setSymbol (const GISVectorSymbol &symbol) |
| | Replace typed item symbology and request a scene rebuild.
|
| |
| void | setLabelConfig (const OpenSWMM::Render::LabelConfig &cfg) override |
| | Slice X.18 — full label configuration.
|
| |
| QStringList | ogrFieldNames () const |
| |
| std::vector< std::unique_ptr< openswmmvis::ui::ILayerStyleSubject > > | styleSubjects () override |
| | Expose the typed symbol bag through one persistent QObject adapter.
|
| |
| OpenSWMM::Render::IFeatureRenderer * | renderer () const |
| |
| void | setRenderer (std::unique_ptr< OpenSWMM::Render::IFeatureRenderer > r) |
| | Transfer a renderer into the active rule.
|
| |
| OpenSWMM::Render::RuleList * | ruleList () override |
| |
| const OpenSWMM::Render::RuleList * | ruleList () const override |
| |
| QSet< long long > | selectedFeatureIds () const |
| |
| void | setSelectedFeatureIds (const QSet< long long > &ids) |
| | Replace selection state and request item reconstruction.
|
| |
| void | clearSelection () |
| | Store an empty selection through setSelectedFeatureIds(), always notifying and marking the scene dirty.
|
| |
| QSet< long long > | featureIdsInRect (const MapExtent &rectCanvasCrs) const |
| | Intersect source features against an optionally inverse-projected rectangular search.
|
| |
| QSet< long long > | featureIdsInPolygon (const QPolygonF &polygonCanvasCrs, const SpatialReferenceSystem *canvasSRS=nullptr) const |
| | FIDs of features whose geometry intersects the polygon in canvas CRS, including boundary touches. Applies the inverse layer transform and preserves the existing spatial filter.
|
| |
| QVector< QPointF > | selectedFeatureAnchors () const |
| |
| QList< QVariantMap > | identifyAt (double mapX, double mapY, const SpatialReferenceSystem *canvasSRS, double tolerance=1e-6) const |
| | Read attributes of features within a canvas-coordinate click radius.
|
| |
| QList< QVariantMap > | identifyAt (double mapX, double mapY, double tolerance=1e-6) const |
| | Identify against a source-coordinate tolerance box.
|
| |
| void | populateScene (QGraphicsScene *scene, const MapExtent &canvasExtent, const SpatialReferenceSystem *canvasSRS) override |
| | Append scene items for the entire attribute-filtered vector source.
|
| |
| void | depopulateScene (QGraphicsScene *scene) override |
| | Remove and delete this layer's tracked scene items.
|
| |
| void | refreshScene (QGraphicsScene *scene, const MapExtent &canvasExtent, const SpatialReferenceSystem *canvasSRS) override |
| | Rebuild dirty items or update their opacity and visibility in place.
|
| |
| void | onCanvasCRSChanged (const SpatialReferenceSystem *newCanvasSRS) override |
| |
| | OpenSWMMVisLayer (OpenSWMMVisWorkspace *parent) |
| | Create an unlabeled default-type layer with a fresh UUID.
|
| |
| | OpenSWMMVisLayer (const QString &name="Unlabeled Layer", OpenSWMMVisWorkspace *parent=nullptr) |
| | Create a named default-type layer with a fresh UUID.
|
| |
| virtual | ~OpenSWMMVisLayer () |
| | Delete an owned CRS and release QObject-owned resources.
|
| |
| QString | layerId () const |
| | Returns the layer's immutable unique identifier (UUID).
|
| |
| void | restoreLayerId (const QString &id) |
| | Restore a project identity before external layer references are rebound.
|
| |
| 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 | isTemporary () const |
| | Report whether this auxiliary layer exists only for the current session.
|
| |
| void | setTemporary (bool temporary) |
| | Set session-only ownership before attaching an auxiliary layer to a canvas.
|
| |
| 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 bool | isRasterLayer () const |
| | Returns true for layers that render into a raster buffer (WMS, WMTS, GISRaster) rather than populating QGraphicsItems.
|
| |
| virtual bool | isBasemapLayer () const |
| | 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.
|
| |
| virtual void | render (QPainter *painter, const MapExtent &extent, const QSize &imageSize, const SpatialReferenceSystem *srs) |
| | Renders this layer's content directly into painter.
|
| |
| virtual void | fetchCache (const MapExtent &extent, const QSize &viewportSize, const SpatialReferenceSystem *srs) |
| | Triggers any asynchronous (or synchronous) tile/data fetch needed to populate this layer's internal cache for the given view state.
|
| |
| 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.
|
| |
| void | setLayerZValue (double z) |
| | Called by the canvas to set this layer's z-value band.
|
| |
| const OpenSWMM::Render::TemporalSpec & | temporalSpec () const |
| | Inspect stored animation policy.
|
| |
| void | setTemporalSpec (const OpenSWMM::Render::TemporalSpec &spec) |
| | Replace stored animation policy without resolving external resources.
|
| |
| const OpenSWMM::Render::LabelConfig & | labelConfig () const |
| | Inspect stored element-label styling.
|
| |
| const OpenSWMM::Render::MaskSpec & | maskSpec () const |
| | Inspect stored polygon clip policy.
|
| |
| void | setMaskSpec (const OpenSWMM::Render::MaskSpec &spec) |
| | Replace stored polygon clip policy without resolving external resources.
|
| |
| const OpenSWMM::Render::AuxiliaryStorageSpec & | auxStorageSpec () const |
| | Inspect stored manual override database policy.
|
| |
| void | setAuxStorageSpec (const OpenSWMM::Render::AuxiliaryStorageSpec &spec) |
| | Replace stored manual override database policy without resolving external resources.
|
| |
| const QVector< OpenSWMM::Render::JoinSpec > & | joins () const |
| |
| void | setJoins (const QVector< OpenSWMM::Render::JoinSpec > &joins) |
| |
| const OpenSWMM::Render::DiagramSpec & | diagramSpec () const |
| | Inspect stored embedded chart styling.
|
| |
| void | setDiagramSpec (const OpenSWMM::Render::DiagramSpec &spec) |
| | Replace stored embedded chart styling without resolving external resources.
|
| |
| OpenSWMMVisWorkspace * | workspace () const |
| | Inspect the workspace passed at construction.
|
| |
| 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 |
| |
| virtual | ~IAttributeProvider ()=default |
| | Destroy a provider through its interface without owning its consumers.
|
| |
GUI-owned observation layer with read-only, independently owned source samples.
GISVectorLayer supplies ordinary station markers, labels and FID selection. The optional station table never owns observations: an empty/nonspatial table is valid. Native series selection has a separate namespace from model time-series and GIS feature identities. All layer methods use the GUI thread; sample readers reopen their own handles on workers.