본문으로 건너뛰기
GDK
메뉴
API 가이드
API 레퍼런스
UI API 가이드
UI API 레퍼런스
테마
밝게
어둡게
자동
목차
Toggle main menu visibility
로딩중...
검색중...
일치하는것 없음
LayerPanelController.h
1
#pragma once
2
3
#include "gdkqt/GdkQtForward.h"
4
#include "gdkqt/QtGdkExport.h"
5
6
#include <QObject>
7
#include <QHash>
8
#include <QIcon>
9
#include <QPixmap>
10
#include <QSet>
11
#include <QStringList>
12
13
class
QNetworkAccessManager;
14
class
QNetworkReply;
15
class
QStatusBar;
16
17
namespace
GdkQt
{
18
class
LayerPanel
;
19
class
MapViewController
;
20
34
class
QT_GDK_API
LayerPanelController
final :
public
QObject
35
{
36
Q_OBJECT
37
public
:
50
LayerPanelController
(
LayerPanel
* panel,
51
GdkQtSession
* session,
52
GdkMapWidget
* mapWidget,
53
MapViewController
* mapView,
54
QStatusBar* statusBar,
55
QObject* parent =
nullptr
);
56
69
void
syncFromSession
();
79
void
applyToMap
();
83
void
populateMockupIfEmpty
();
84
85
signals:
90
void
layersSynced
();
95
void
mapStateApplied
();
102
void
layersDeleted
(
const
QStringList& ids);
103
104
private
:
105
void
onDeleteLayer(
const
QString&
id
);
106
void
onDeleteLayers(
const
QStringList& ids);
107
void
onEnterGroup(
const
QString&
id
);
108
void
onUpGroup();
109
void
onSelectableTargetsRequested(
const
QStringList& ids,
bool
targetSelectable);
110
void
requestWmsLegendIcon(
const
QString& url);
111
void
onWmsLegendReply(QNetworkReply* reply);
114
void
onWmsLegendPreviewRequested(
const
QString& layerId,
int
legendIndex);
115
116
LayerPanel
* m_panel =
nullptr
;
117
GdkQtSession
* m_session =
nullptr
;
118
GdkMapWidget
* m_mapWidget =
nullptr
;
119
MapViewController
* m_mapView =
nullptr
;
120
QStatusBar* m_statusBar =
nullptr
;
121
QStringList m_groupPath;
122
QNetworkAccessManager* m_legendNetwork =
nullptr
;
123
QHash<QString, QPixmap> m_wmsLegendImages;
126
QHash<QString, QPixmap> m_wmsLegendFullImages;
127
QSet<QString> m_pendingWmsLegendUrls;
128
QSet<QString> m_failedWmsLegendUrls;
129
};
130
131
}
// namespace GdkQt
GdkQt::GdkMapWidget
GdkQtSession의 지도를 보여 주는 재사용 가능한 Qt Widgets 지도 위젯입니다.
정의
GdkMapWidget.h:79
GdkQt::GdkQtSession
워크스페이스를 소유하고 지도와 데이터 작업을 Qt 형식으로 제공하는 세션입니다.
정의
GdkQtSession.h:39
GdkQt::LayerPanelController::applyToMap
void applyToMap()
패널에 표시된 행의 표시 여부, 선택 가능 여부, 순서를 지도 레이어에 적용합니다.
GdkQt::LayerPanelController::LayerPanelController
LayerPanelController(LayerPanel *panel, GdkQtSession *session, GdkMapWidget *mapWidget, MapViewController *mapView, QStatusBar *statusBar, QObject *parent=nullptr)
컨트롤러를 만들고 패널의 요청 시그널을 연결합니다.
GdkQt::LayerPanelController::populateMockupIfEmpty
void populateMockupIfEmpty()
지도 뷰에 레이어가 있으면 syncFromSession()을 실행하고, 없으면 패널을 비웁니다.
GdkQt::LayerPanelController::layersSynced
void layersSynced()
패널의 행을 다시 채운 뒤 발생합니다.
GdkQt::LayerPanelController::mapStateApplied
void mapStateApplied()
패널의 상태를 지도 레이어에 적용하고 지도를 다시 그린 뒤 발생합니다.
GdkQt::LayerPanelController::syncFromSession
void syncFromSession()
세션의 지도 뷰에서 레이어 목록을 읽어 패널의 행을 다시 채웁니다.
GdkQt::LayerPanelController::layersDeleted
void layersDeleted(const QStringList &ids)
해당 레이어들을 지도에서 제거한 뒤 발생합니다.
GdkQt::LayerPanel
레이어 목록을 트리로 보여 주는 위젯입니다.
정의
LayerPanel.h:160
GdkQt::MapViewController
지도 뷰 이동 명령과 상태 표시줄의 좌표, 축척, 좌표 참조계 문구를 담당하는 컨트롤러입니다.
정의
MapViewController.h:34
GdkQt
glsGdkQt의 공개 형식과 함수가 있는 네임스페이스입니다.
정의
AppSettings.h:15
layers
controllers
LayerPanelController.h
다음에 의해 생성됨 :
1.18.0