본문으로 건너뛰기
로딩중...
검색중...
일치하는것 없음
ConnectionLayerUtils.h
1#pragma once
2
3#include "connections/model/ConnectionLayerIdentity.h"
4#include "gdkqt/QtGdkExport.h"
5
6#include <QSet>
7#include <QString>
8#include <QStringList>
9#include <QVector>
10
11namespace GDK {
12class glsFeatureLayer;
13class glsMapView;
14}
15
16namespace GdkQt::ConnectionLayers {
17
18// Exported: qt_gdk_demo's MainWindowActionBinder builds graphics layers with
19// these three.
27QT_GDK_API int nextFeatureLayerZIndex(GDK::glsMapView* view);
37QT_GDK_API QString uniqueLayerId(GDK::glsMapView* view, const QString& baseId);
47QT_GDK_API QString uniqueLayerName(GDK::glsMapView* view, const QString& baseName);
48
49// Exported for the test suite, not for the apps: export_vector_layer_service_test
50// links qt_gdk_dll and calls this directly, so the annotation is load-bearing.
58QT_GDK_API QSet<QString> captureLayerIds(GDK::glsMapView* view);
59
60// DLL-internal: no app and no test calls these, so they carry no QT_GDK_API.
61// Adding one back means something outside the DLL started depending on it --
62// check that it should before you do.
67QString featureLayerDataSourceName(GDK::glsFeatureLayer* layer);
74QString findNewFeatureLayerId(GDK::glsMapView* view,
75 const QSet<QString>& previousLayerIds,
76 const QString& dataSourceName);
84void removeNewLayersExcept(GDK::glsMapView* view,
85 const QSet<QString>& previousLayerIds,
86 const QString& keepLayerId);
87
96QVector<ConnectionModel::MapLayerSnapshot> captureMapLayerSnapshots(GDK::glsMapView* view);
97
103QStringList applyLayerRemovals(GDK::glsMapView* view, const QStringList& layerIds);
104
105} // namespace GdkQt::ConnectionLayers
int nextFeatureLayerZIndex(GDK::glsMapView *view)
새 피처 레이어에 줄 z-index를 계산합니다.
QString featureLayerDataSourceName(GDK::glsFeatureLayer *layer)
피처 레이어가 사용하는 데이터 소스의 이름을 읽습니다.
QString uniqueLayerId(GDK::glsMapView *view, const QString &baseId)
지도 뷰에 아직 없는 레이어 ID를 만듭니다.
void removeNewLayersExcept(GDK::glsMapView *view, const QSet< QString > &previousLayerIds, const QString &keepLayerId)
이전 ID 집합에 없던 최상위 레이어를 keepLayerId 하나만 남기고 지도 뷰에서 제거합니다.
QString findNewFeatureLayerId(GDK::glsMapView *view, const QSet< QString > &previousLayerIds, const QString &dataSourceName)
이전 ID 집합에 없던 피처 레이어 중 데이터 소스 이름이 일치하는 첫 레이어의 ID를 찾습니다.
QString uniqueLayerName(GDK::glsMapView *view, const QString &baseName)
지도 뷰의 최상위에 추가할 레이어 이름을 제안합니다.
QStringList applyLayerRemovals(GDK::glsMapView *view, const QStringList &layerIds)
지정한 레이어 ID를 지도 뷰에서 제거합니다.
QVector< ConnectionModel::MapLayerSnapshot > captureMapLayerSnapshots(GDK::glsMapView *view)
지도 뷰의 최상위 레이어를 모두 값으로 바꿉니다.
QSet< QString > captureLayerIds(GDK::glsMapView *view)
지도 뷰의 최상위 레이어 ID를 모두 모읍니다.