본문으로 건너뛰기
로딩중...
검색중...
일치하는것 없음
glsMapToolHost.h
1#pragma once
2
3#include "gdk_dll/maptools/glsMapToolMessage.h"
4#include "gdk_dll/maptools/glsMapToolTypes.h"
5
6#include <cstdint>
7
8namespace GDK {
9
10// Design 4.3.
11
27{
28public:
30 virtual ~IGlsMapToolHost() = default;
31
34
39 virtual void RequestMapUpdate() noexcept = 0;
44 virtual void RequestOverlayUpdate() noexcept = 0;
48 virtual void NotifyViewChanged() noexcept = 0;
52 virtual void SyncViewport() noexcept = 0;
57 virtual void ShowMessage(const glsMapToolMessage& message) noexcept = 0;
58
64 virtual void SetPointerCapture(bool capture) noexcept = 0;
69 virtual int32_t GetDragThresholdPixels() const noexcept = 0;
70
72
75
82 virtual bool GetSnapSettings(glsMapToolSnapSettings* outSettings) const noexcept = 0;
91 virtual const char* GetSnapTargetLayerId() const noexcept = 0;
92
98 virtual void ExecuteSelection(const glsMapToolSelectionRequest& request) noexcept = 0;
101 virtual void IdentifyAt(glsScreenPoint devicePos) noexcept = 0;
107 virtual void IdentifyInRect(glsScreenPoint a, glsScreenPoint b) noexcept = 0;
120 virtual void CreateFeature(glsMapToolMode mode, const glsMapPoint* points, int32_t count) noexcept = 0;
121
123
126
132 virtual glsMapAppCommandState GetAppCommandState(glsMapAppCommand command) const noexcept = 0;
139 virtual void InvokeAppCommand(glsMapAppCommand command) noexcept = 0;
140
154 // Qt: the editing workflow's IsOperationAllowed(Update); C#: GeometryEditService.
155
163 virtual bool CanEditFeatureGeometry(const char* layerId) noexcept = 0;
164 // C#: the host opens the layer session here itself (no editing workflow).
165
175 virtual bool BeginFeatureGeometryEdit(const char* layerId) noexcept = 0;
183 virtual void EndFeatureGeometryEdit(const char* layerId, int32_t changedCount) noexcept = 0;
185
186};
187
188} // namespace GDK
애플리케이션이 기본 지도 도구에 제공하는 콜백의 인터페이스입니다.
정의 glsMapToolHost.h:27
virtual glsMapToolEditTargetResult SelectEditTargetAt(const glsMapToolSelectionRequest &request) noexcept=0
애플리케이션에 클릭 위치의 편집 대상 하나를 선택하도록 요청합니다.
virtual bool CanEditFeatureGeometry(const char *layerId) noexcept=0
편집 도구가 레이어의 피처를 불러와 지오메트리를 기록할 수 있는지 조회합니다.
virtual void NotifyViewChanged() noexcept=0
도구가 지도 뷰를 변경했다고 애플리케이션에 알립니다.
virtual bool GetSnapSettings(glsMapToolSnapSettings *outSettings) const noexcept=0
스냅 설정을 가져옵니다.
virtual void ShowMessage(const glsMapToolMessage &message) noexcept=0
활성 도구의 상태 메시지를 표시합니다.
virtual bool BeginFeatureGeometryEdit(const char *layerId) noexcept=0
편집 도구가 레이어 지오메트리를 기록하기 직전에 허용 여부를 확인합니다.
virtual glsMapAppCommandState GetAppCommandState(glsMapAppCommand command) const noexcept=0
애플리케이션 명령의 상태를 조회합니다.
virtual void CreateFeature(glsMapToolMode mode, const glsMapPoint *points, int32_t count) noexcept=0
애플리케이션에 지도 CRS의 점으로 피처 생성을 요청합니다.
virtual void RequestOverlayUpdate() noexcept=0
애플리케이션에 도구 오버레이 다시 그리기를 요청합니다.
virtual void ExecuteSelection(const glsMapToolSelectionRequest &request) noexcept=0
애플리케이션에 선택 실행을 요청합니다.
virtual int32_t GetDragThresholdPixels() const noexcept=0
클릭이 드래그로 바뀌는 디바이스 픽셀 단위 이동 거리를 반환합니다.
virtual void EndFeatureGeometryEdit(const char *layerId, int32_t changedCount) noexcept=0
BeginFeatureGeometryEdit()이 허용한 기록을 마무리합니다.
virtual void RequestMapUpdate() noexcept=0
애플리케이션에 지도 다시 그리기를 요청합니다.
virtual ~IGlsMapToolHost()=default
호스트를 소멸시킵니다.
virtual void SetPointerCapture(bool capture) noexcept=0
애플리케이션에 지도 표면의 포인터 캡처 또는 해제를 요청합니다.
virtual void InvokeAppCommand(glsMapAppCommand command) noexcept=0
애플리케이션에 명령 실행을 요청합니다.
virtual void IdentifyInRect(glsScreenPoint a, glsScreenPoint b) noexcept=0
애플리케이션에 디바이스 픽셀 사각형의 피처 식별을 요청합니다.
virtual const char * GetSnapTargetLayerId() const noexcept=0
애플리케이션이 그리는 대상 레이어의 ID를 반환합니다.
virtual void IdentifyAt(glsScreenPoint devicePos) noexcept=0
애플리케이션에 디바이스 픽셀 위치의 피처 식별을 요청합니다.
virtual void SyncViewport() noexcept=0
드래그 전에 애플리케이션이 화면과 지도 뷰를 맞출 수 있게 합니다.
glsMapAppCommand
도구가 애플리케이션에 위임할 명령입니다.
정의 glsMapToolTypes.h:124
glsMapAppCommandState
호스트가 보고하는 glsMapAppCommand의 상태입니다.
정의 glsMapToolTypes.h:140
glsMapToolMode
glsMapToolController::SetMode()로 선택하는 기본 지도 도구입니다.
정의 glsMapToolTypes.h:20
glsMapToolEditTargetResult
IGlsMapToolHost::SelectEditTargetAt()에서 호스트가 반환하는 결과입니다.
정의 glsMapToolTypes.h:204
glsGdk SDK의 네이티브 C++ API 이름 공간입니다.
정의 glsAttributeTable.h:5
사용 API가 지정한 좌표 참조계의 지도 좌표입니다.
정의 glsTypes.h:111
내장 지도 도구의 상태 메시지, 오버레이 라벨 또는 메뉴 라벨 하나입니다.
정의 glsMapToolMessage.h:112
IGlsMapToolHost::ExecuteSelection()과 SelectEditTargetAt()에 전달할 선택 요청입니다.
정의 glsMapToolTypes.h:191
IGlsMapToolHost::GetSnapSettings()에서 호스트가 반환하는 스냅 설정입니다.
정의 glsMapToolTypes.h:215
왼쪽 위가 원점인 기기 픽셀 좌표입니다.
정의 glsTypes.h:133