본문으로 건너뛰기
로딩중...
검색중...
일치하는것 없음
MapToolContract.h
1#pragma once
2#include "maptools/MapToolTypes.h"
3#include "gdk_dll/maptools/glsMapToolTypes.h"
4namespace GdkQt {
10inline bool ToNativeToolMode(MapToolMode input,GDK::glsMapToolMode* output) {
11 if(!output)return false;
12 switch(input) {
13#define QT_GDK_TOOL_CASE(name) case MapToolMode::name:*output=GDK::glsMapToolMode::name;return true;
14 QT_GDK_TOOL_CASE(Pan) QT_GDK_TOOL_CASE(Info) QT_GDK_TOOL_CASE(MeasureDistance)
15 QT_GDK_TOOL_CASE(MeasureArea) QT_GDK_TOOL_CASE(SelectPoint) QT_GDK_TOOL_CASE(SelectRect)
16 QT_GDK_TOOL_CASE(SelectCircle) QT_GDK_TOOL_CASE(SelectPolygon) QT_GDK_TOOL_CASE(CreatePoint)
17 QT_GDK_TOOL_CASE(CreateText) QT_GDK_TOOL_CASE(CreateLine) QT_GDK_TOOL_CASE(CreatePolygon)
18 QT_GDK_TOOL_CASE(CreateRect) QT_GDK_TOOL_CASE(CreateEllipse) QT_GDK_TOOL_CASE(ObjectMove)
19 QT_GDK_TOOL_CASE(VertexEdit) QT_GDK_TOOL_CASE(MeasureBearing)
20#undef QT_GDK_TOOL_CASE
21 default:return false;
22 }
23}
24
29inline bool FromNativeToolMode(GDK::glsMapToolMode input,MapToolMode* output) {
30 if(!output)return false;
31 switch(input) {
32#define QT_GDK_TOOL_CASE(name) case GDK::glsMapToolMode::name:*output=MapToolMode::name;return true;
33 QT_GDK_TOOL_CASE(Pan) QT_GDK_TOOL_CASE(Info) QT_GDK_TOOL_CASE(MeasureDistance)
34 QT_GDK_TOOL_CASE(MeasureArea) QT_GDK_TOOL_CASE(SelectPoint) QT_GDK_TOOL_CASE(SelectRect)
35 QT_GDK_TOOL_CASE(SelectCircle) QT_GDK_TOOL_CASE(SelectPolygon) QT_GDK_TOOL_CASE(CreatePoint)
36 QT_GDK_TOOL_CASE(CreateText) QT_GDK_TOOL_CASE(CreateLine) QT_GDK_TOOL_CASE(CreatePolygon)
37 QT_GDK_TOOL_CASE(CreateRect) QT_GDK_TOOL_CASE(CreateEllipse) QT_GDK_TOOL_CASE(ObjectMove)
38 QT_GDK_TOOL_CASE(VertexEdit) QT_GDK_TOOL_CASE(MeasureBearing)
39#undef QT_GDK_TOOL_CASE
40 default:return false;
41 }
42}
43}
bool FromNativeToolMode(GDK::glsMapToolMode input, MapToolMode *output)
gdk_dll 지도 도구 모드를 같은 이름의 Qt 도구 모드로 바꿉니다.
정의 MapToolContract.h:29
bool ToNativeToolMode(MapToolMode input, GDK::glsMapToolMode *output)
Qt 지도 도구 모드를 같은 이름의 gdk_dll 도구 모드로 바꿉니다.
정의 MapToolContract.h:10
@ VertexEdit
정점 편집 표시입니다. vertexPaths, vertexHandles, insertPoint를 씁니다.
정의 MapOverlayModel.h:18
glsGdkQt의 공개 형식과 함수가 있는 네임스페이스입니다.
정의 AppSettings.h:15