|
| | FeatureLayer (OpenSWMMVisWorkspace *parent=nullptr) |
| | Constructs an unopened layer. Use create or openTable.
|
| |
| | ~FeatureLayer () override |
| |
| bool | openTable (const QString &gpkgPath, const QString &table, QString *error=nullptr) |
| | Open an existing table for editing.
|
| |
| QString | gpkgPath () const |
| |
| QString | tableName () const |
| |
| bool | isEditable () const |
| | True when the store is open for writing — a CAPABILITY, not a mode. A layer can be writable and still not be in an edit session; see isEditing.
|
| |
| bool | isEditing () const |
| | Whether this layer is currently being edited.
|
| |
| void | setEditing (bool on) |
| |
| Schema | schema () const |
| |
| bool | addField (const FieldDef &f, QString *error=nullptr) |
| |
| bool | removeField (const QString &name, QString *error=nullptr) |
| |
| GeometryType | geometryType () const |
| |
| bool | isThreeD () const |
| |
| int | count () const |
| |
| QVector< FeatureId > | featureIds () const |
| |
| bool | feature (FeatureId id, Feature &out) const |
| |
| QVector< Feature > | allFeatures () const |
| |
| FeatureId | addFeature (const Feature &f, QString *error=nullptr) |
| | Insert f, reusing its id when free (stable ids across undo/redo — see FeatureStore::addFeature).
|
| |
| bool | setGeometry (FeatureId id, const FeatureGeometry &g, QString *error=nullptr) |
| |
| bool | setAttributes (FeatureId id, const QVariantMap &attrs, QString *error=nullptr) |
| |
| bool | setFeature (FeatureId id, const Feature &f, QString *error=nullptr) |
| |
| bool | removeFeature (FeatureId id, QString *error=nullptr) |
| |
| FeatureLayerRole | role () const |
| |
| void | setRole (FeatureLayerRole r) |
| |
| ZPolicy | zPolicy () const |
| |
| void | setZPolicy (const ZPolicy &p) |
| |
| int | sampleZ (FeatureGeometry &g, const MapCanvas *canvas, bool densify=true) const |
| | Sample Z for g according to zPolicy, in place.
|
| |
| int | resampleAllZ (const MapCanvas *canvas, QString *error=nullptr) |
| | sampleZ every feature, writing the results back. Returns the number of features changed. Callers wrap this in a ResampleZCommand so one Ctrl+Z reverts the lot.
|
| |
| int | unsampledZCount () const |
| | Total NaN-Z vertices across every feature.
|
| |
| QString | sourceDescription () const override |
| | Human-readable source of this layer: a file path, a service URL, or a description for in-memory / derived layers.
|
| |
| QVector< QPair< QString, QString > > | extendedMetadata () const override |
| | Ordered key→value pairs of TYPE-SPECIFIC metadata, rendered by the Metadata tab below the common block the dialog builds itself.
|
| |
| QJsonObject | toJson () const |
| | The .oswp payload, minus the keys ProjectSerializer owns (path / name / visible / opacity).
|
| |
| void | applyJson (const QJsonObject &o) |
| |
| | GISVectorLayer (const QString &filePath, const QString &layerName={}, OpenSWMMVisWorkspace *parent=nullptr) |
| |
| | ~GISVectorLayer () override |
| |
| void | openAsync (const QString &filePath, const QString &layerName={}) |
| | Asynchronously open filePath / layerName. GDALOpenEx + GetExtent (which forces a scan on some drivers) run on a worker thread; the layer is populated on the GUI thread and openFinished(bool) fires on completion. Construct with an empty path first; the synchronous openDataset path (tests / project restore) is unchanged.
|
| |
| QString | filePath () const |
| | Returns the file path to the OGR dataset.
|
| |
| QString | ogrLayerName () const |
| | Returns the OGR sub-layer name opened within the dataset.
|
| |
| class OGRLayer * | ogrLayer () const |
| | Read-only OGRLayer handle for callers that need to walk features directly (e.g. mesh-generator constraint pulls). Returns nullptr if the dataset is not open.
|
| |
| void | appendScenePolygonsTo (QPainterPath &out) const |
| | Slice Z.14-paint — append every polygon ring this layer currently exposes (post-attribute-filter) to out in canvas-scene coords (Y-flipped, same space the canvas QGraphicsItems paint into).
|
| |
| int | featureCount () const |
| | Returns the number of features currently visible (after filtering).
|
| |
| QStringList | fieldNames () const |
| | Returns the list of field (attribute column) names.
|
| |
| QString | sourceDescription () const override |
| | Human-readable source of this layer: a file path, a service URL, or a description for in-memory / derived layers.
|
| |
| QVector< QPair< QString, QString > > | extendedMetadata () const override |
| | Ordered key→value pairs of TYPE-SPECIFIC metadata, rendered by the Metadata tab below the common block the dialog builds itself.
|
| |
| QVector< OpenSWMM::Render::AttributeField > | availableAttributes (OpenSWMMVis::SwmmCategory cat) const override |
| |
| QString | filterExpression () const |
| | Returns the current OGR attribute filter expression.
|
| |
| void | setFilterExpression (const QString &expr) |
| | Sets an OGR SQL WHERE-clause filter on the features.
|
| |
| GISVectorSymbol | symbol () const |
| |
| void | setSymbol (const GISVectorSymbol &symbol) |
| |
| void | setLabelConfig (const OpenSWMM::Render::LabelConfig &cfg) override |
| | Slice X.18 — full label configuration.
|
| |
| QStringList | ogrFieldNames () const |
| | Names of the OGR fields available for label expressions. Empty when no dataset has been opened yet. Used by the Labels tab to populate the field combobox.
|
| |
| std::vector< std::unique_ptr< openswmmvis::ui::ILayerStyleSubject > > | styleSubjects () override |
| |
| OpenSWMM::Render::IFeatureRenderer * | renderer () const |
| | The IFeatureRenderer that will drive this layer's paint pass.
|
| |
| void | setRenderer (std::unique_ptr< OpenSWMM::Render::IFeatureRenderer > r) |
| | Replaces the current renderer.
|
| |
| OpenSWMM::Render::RuleList * | ruleList () override |
| |
| const OpenSWMM::Render::RuleList * | ruleList () const override |
| |
| QSet< long long > | selectedFeatureIds () const |
| | Returns the set of currently selected feature IDs.
|
| |
| void | setSelectedFeatureIds (const QSet< long long > &ids) |
| | Selects the features with the given IDs (replacing any prior selection).
|
| |
| void | clearSelection () |
| | Clears all selected features.
|
| |
| QSet< long long > | featureIdsInRect (const MapExtent &rectCanvasCrs) const |
| | SVBC round B — fids of every feature whose GEOMETRY intersects rectCanvasCrs (OGR bbox prefilter, then precise Intersects). The rect arrives in canvas CRS and is inverse-transformed when the layer is reprojected. Any pre-existing spatial filter is saved and restored (clone dance).
|
| |
| QVector< QPointF > | selectedFeatureAnchors () const |
| | Scene-space centres of the selected features' items — beacon anchors for MapCanvas::flashSelection.
|
| |
| QList< QVariantMap > | identifyAt (double mapX, double mapY, const SpatialReferenceSystem *canvasSRS, double tolerance=1e-6) const |
| | Returns attributes of features that intersect the given map point.
|
| |
| QList< QVariantMap > | identifyAt (double mapX, double mapY, double tolerance=1e-6) const |
| | Convenience overload — no CRS needed (uses current layer CRS).
|
| |
| void | populateScene (QGraphicsScene *scene, const MapExtent &canvasExtent, const SpatialReferenceSystem *canvasSRS) override |
| | Creates / updates QGraphicsItems representing this layer in the scene.
|
| |
| void | depopulateScene (QGraphicsScene *scene) override |
| | Removes all QGraphicsItems belonging to this layer from 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 | onCanvasCRSChanged (const SpatialReferenceSystem *newCanvasSRS) override |
| | Called when the user changes the canvas CRS so layers can pre-compute any CRS-dependent transform caches.
|
| |
| | 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 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 |
| |
| void | setTemporalSpec (const OpenSWMM::Render::TemporalSpec &spec) |
| |
| const OpenSWMM::Render::LabelConfig & | labelConfig () const |
| |
| 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 |
| |
| virtual | ~IAttributeProvider ()=default |
| |
An editable, GeoPackage-backed vector layer.