본문으로 건너뛰기
로딩중...
검색중...
일치하는것 없음
SnapController.h
1#pragma once
2
3#include "gdkqt/QtGdkExport.h"
4
5#include "gdkqt/GdkQtForward.h"
6#include "maptools/SnapTypes.h"
7
8#include <QString>
9
10#include <functional>
11
12namespace GdkQt {
13
19class QT_GDK_API SnapController final {
20public:
26 SnapController(GdkQtSession* session, std::function<QString()> currentLayerId);
27 // out-of-line 정의(.cpp) — DLL이 소멸자 심볼을 export하도록 보장.
30
39 const SnapSettings& settings() const { return m_settings; }
44 void clearCache() const;
47 QString targetLayerId() const;
48
49private:
50 GdkQtSession* m_session = nullptr;
51 std::function<QString()> m_currentLayerId;
52 SnapSettings m_settings;
53};
54
55} // namespace GdkQt
워크스페이스를 소유하고 지도와 데이터 작업을 Qt 형식으로 제공하는 세션입니다.
정의 GdkQtSession.h:39
QString targetLayerId() const
편집 세션이 대상 레이어를 지정하지 않을 때 EditLayer 범위가 스냅하는 레이어를 돌려줍니다.
~SnapController()
컨트롤러를 파괴합니다. 빌린 세션에는 아무것도 하지 않습니다.
const SnapSettings & settings() const
현재 스냅 설정을 돌려줍니다.
정의 SnapController.h:39
void clearCache() const
세션 지도 뷰의 스냅 캐시를 비웁니다(GDK::glsMapView::ClearSnapCache).
void setSettings(const SnapSettings &settings)
스냅 설정을 바꿉니다.
SnapController(GdkQtSession *session, std::function< QString()> currentLayerId)
스냅 컨트롤러를 만듭니다.
glsGdkQt의 공개 형식과 함수가 있는 네임스페이스입니다.
정의 AppSettings.h:15
지도 도구가 쓰는 스냅 설정입니다.
정의 SnapTypes.h:48