본문으로 건너뛰기
로딩중...
검색중...
일치하는것 없음
glsFeatureClipboard.h
1#pragma once
2
3#include "gdk_dll/glsExport.h"
4#include "gdk_dll/glsTypes.h"
5
6#include <cstddef>
7#include <cstdint>
8
9namespace GDK {
10
11class glsMapView;
13
14// Ported from apps/qt_gdk_dll's FeatureCopyPasteController.cpp and
15// FeatureClipboardMapping.cpp (removed in stage 6). One deliberate
16// difference (stage-5 behavior change B4): a double -> Int32/Int64
17// conversion whose value is NaN, infinite, or out of the target range
18// yields Null (Qt: undefined behavior).
24{
25public:
31 glsFeatureClipboard& operator=(const glsFeatureClipboard&) = delete;
32
40 glsStatus Copy(glsMapView* view) noexcept;
41
44 int GetCount() const noexcept;
47 bool IsEmpty() const noexcept;
55 glsStatus GetSourceLayerId(char* buf, size_t bufSize, size_t* requiredSize) const noexcept;
57 void Clear() noexcept;
58
59 // Checks run in Qt's order; earlier inserts are not rolled back (same as
60 // Qt).
74 glsStatus Paste(glsEditController* controller, glsMapView* view, const char* targetLayerId,
75 int* outInserted, int* outFailedIndex) noexcept;
76
77private:
78 struct Impl;
79 Impl* impl_;
80};
81
82} // namespace GDK
지도 편집 모드, 검증을 거치는 피처 변경, 실행 취소 이력과 저장을 관리합니다.
정의 glsEditController.h:222
glsFeatureClipboard() noexcept
피처가 없는 프로세스 내부 클립보드를 생성합니다.
glsStatus Copy(glsMapView *view) noexcept
지도에서 표시되고 선택 가능한 피처 레이어의 선택 피처를 복사합니다.
glsStatus GetSourceLayerId(char *buf, size_t bufSize, size_t *requiredSize) const noexcept
복사본의 첫 원본 레이어 ID를 읽습니다.
int GetCount() const noexcept
클립보드에 복사한 피처 수를 구합니다.
glsStatus Paste(glsEditController *controller, glsMapView *view, const char *targetLayerId, int *outInserted, int *outFailedIndex) noexcept
편집 중인 대상 레이어에 클립보드 순서로 피처를 추가합니다.
void Clear() noexcept
클립보드가 소유한 피처 복사본을 모두 지웁니다.
bool IsEmpty() const noexcept
클립보드에 붙여 넣을 피처가 있는지 판정합니다.
지도 화면·레이어·렌더링·피처 식별·스냅을 관리하는 뷰입니다.
정의 glsMapView.h:87
SDK의 공유 라이브러리 심볼에 적용할 플랫폼별 선언 특성을 정의합니다.
공개 gdk_dll API가 공유하는 값 형식, 결과 코드, 호출 규약입니다.
#define GDK_DLL_API
Windows에서는 SDK 심볼을 내보내거나 가져오고, 그 외 플랫폼에서는 SDK 빌드의 심볼을 공개합니다.
정의 glsExport.h:20
glsGdk SDK의 네이티브 C++ API 이름 공간입니다.
정의 glsAttributeTable.h:5
DLL 경계의 공개 함수가 반환하는 상태입니다.
정의 glsTypes.h:83