SWMMVis  6.0.0-alpha.4
Qt6/C++ GIS-based graphical user interface for the SWMMVis engine (6.0.0-alpha.4)
Loading...
Searching...
No Matches
IPreviewLayers.hpp File Reference

SDK 1.8 capability resolving an extension's native preview layer for selection sync. More...

#include <QList>
#include <QObject>
#include <QUuid>
Include dependency graph for IPreviewLayers.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  OpenSWMM::Sdk::IPreviewLayers
 Optional GUI-thread lookup of this extension's attached native preview layer. More...
 

Namespaces

namespace  OpenSWMM
 
namespace  OpenSWMM::Sdk
 Public header-only ABI for independently compiled native GUI extensions.
 

Macros

#define OPENSWMM_PREVIEW_LAYERS_IID   "io.opensimulator.openswmm.IPreviewLayers/1.0"
 Frozen discovery identity for native preview-layer resolution.
 

Detailed Description

SDK 1.8 capability resolving an extension's native preview layer for selection sync.

Discover this optional interface with qobject_cast on ExtensionHost::lifetime(). IProject::showPreview() with previewStyle.asFeatureLayer creates a host-owned temporary GIS layer. This capability names that layer's runtime attachment and maps each accepted collection feature to its native FID, so an extension can read and replace the layer's selection through IViewControls and observe LayerSelectionChanged on IViewEvents. Existing SDK interfaces and their binary layouts remain unchanged.

Author
Caleb Buahin caleb.nosp@m..bua.nosp@m.hin@g.nosp@m.mail.nosp@m..com
License
GPL-3.0-or-later

Macro Definition Documentation

◆ OPENSWMM_PREVIEW_LAYERS_IID

#define OPENSWMM_PREVIEW_LAYERS_IID   "io.opensimulator.openswmm.IPreviewLayers/1.0"

Frozen discovery identity for native preview-layer resolution.