3#include "gdkqt/MapOverlayRenderer.h"
4#include "gdkqt/QtGdkExport.h"
5#include "maptools/MapToolTypes.h"
6#include "maptools/MapOverlayModel.h"
7#include "maptools/SnapTypes.h"
13#include "gdk_dll/glsGDK.h"
14#include "gdk_dll/maptools/glsMapToolTypes.h"
26class glsEditController;
27class glsEditSessionState;
30class MapToolController;
31class QtImageMapRenderSurface;
141 std::function<
void(MapToolMode,
const QVector<GDK::glsMapPoint>&)> callback);
152 void setEditBinding(GDK::glsEditController* controller, GDK::glsEditSessionState* session);
161 std::function<GDK::glsMapToolEditTargetResult(
const GDK::glsMapToolSelectionRequest&)> callback);
171 std::function<
void(
const QString&,
int)> end);
369 const QString& kind,
int datasetIndex,
370 const QString& dataSourceName);
467 bool handleMapNavigationKey(QKeyEvent* event);
468 void cancelLostCapture();
469 void applyToolCursor();
470 bool panByDevicePixels(
double dx,
double dy);
471 bool zoomByKeyboard(
bool zoomIn);
472 void centerAtWorld(
const GDK::glsMapPoint& world);
473 void buildCommonContextMenu(QMenu& menu,
const QPointF& devicePos);
474 void appendBookmarkMenu(QMenu& parentMenu,
const GDK::glsMapPoint& world,
bool hasWorld);
475 void showAddBookmarkDialog(
const GDK::glsMapPoint& world);
476 void goToBookmark(
int index);
478 void requestMapUpdate();
479 void requestOverlayUpdate();
480 void drawOverlay(QPainter& painter);
481 bool ensureMapBackBuffer(
const QRect& deviceRect);
482 void invalidateMapBackBuffer();
483 bool renderMapToBackBuffer(GDK::glsMapView* view,
const QRect& deviceRect);
484 void paintComposed(QPainter& painter,
const QRect& logicalRect);
485 QRect overlayBoundsDevice()
const;
486 QRect clientDeviceRect()
const;
487 QRect toDeviceRect(
const QRect& logicalRect)
const;
488 QRect toLogicalRect(
const QRect& deviceRect)
const;
489 void ensureFrameReadyCallback();
490 void clearFrameReadyCallback();
491 void observeMapView(GDK::glsMapView* view,
bool forceNewGeneration =
false);
492 void syncHitTestInterest();
503 void onSessionMapViewReplacing();
505 void onSessionMapViewReplaced();
507 void onSessionContentReplaced();
509 void onSessionLayerSourcesReplaced();
510 void notifyViewChanged();
511 void notifyMeasurementOverlayChanged();
512 void notifyMouseWorldPosition(
const QPointF& logicalPos);
513 QPointF toDevicePosition(
const QPointF& logicalPos)
const;
514 GDK::glsMapView* mapView()
const;
515 static GDK::glsScreenRect toScreenRect(
const QRect& rect);
516 bool hasDrawableOverlay()
const;
519 QRect m_dragSelectRectDevice;
522 GDK::glsMapView* m_callbackView =
nullptr;
523 GDK::glsMapView* m_observedMapView =
nullptr;
524 quint64 m_mapViewGeneration = 0;
525 bool m_renderingPaused =
false;
526 bool m_lastMeasurementState =
false;
527 bool m_viewportSynced =
false;
528 int m_viewportWidth = 0;
529 int m_viewportHeight = 0;
530 float m_viewportDpiX = 0.f;
531 float m_viewportDpiY = 0.f;
532 bool m_overlayOnlyUpdatePending =
false;
533 QRect m_lastOverlayBoundsDevice;
534 std::unique_ptr<GdkQt::QtImageMapRenderSurface> m_renderSurface;
536 QVector<GdkQt::MapOverlayPath> m_spatialTargetOverlayPaths;
537 QVector<GdkQt::MapOverlayPath> m_infoSelectionOverlayPaths;
538 QVector<GdkQt::MapOverlayPath> m_highlightOverlayPaths;
540 std::unique_ptr<GdkQt::MapToolController> m_toolController;
541 QTimer* m_wheelRenderDebounceTimer =
nullptr;
546#ifndef QT_GDK_FORWARD_ALIASES
547#define QT_GDK_FORWARD_ALIASES
워크스페이스를 소유하고 지도와 데이터 작업을 Qt 형식으로 제공하는 세션입니다.
정의 GdkQtSession.h:39
지도 도구 오버레이와 공간 대상 강조 경로를 QPainter로 그립니다.
정의 MapOverlayRenderer.h:17
std::function< std::unique_ptr< MapTool >(MapToolHost *)> GdkMapToolFactory
응용 프로그램이 정의한 지도 도구의 인스턴스를 만드는 팩토리입니다.
정의 GdkMapWidget.h:50
glsGdkQt의 공개 형식과 함수가 있는 네임스페이스입니다.
정의 AppSettings.h:15
지도 도구와 오른쪽 클릭 메뉴에 노출하는 선택적 응용 프로그램 명령 모음입니다.
정의 MapTool.h:32
GdkMapWidget이 지도 도구에 전달하는 정규화된 마우스 이벤트입니다.
정의 MapToolTypes.h:71
지도 위젯이 지도 위에 그리는 지도 도구 오버레이 상태입니다.
정의 MapOverlayModel.h:48
지도 도구가 쓰는 스냅 설정입니다.
정의 SnapTypes.h:48