?? supermap.h
字號:
#if !defined(AFX_SUPERMAP_H__777B0BFE_229B_4CE9_BC37_4DE3C527FD59__INCLUDED_)
#define AFX_SUPERMAP_H__777B0BFE_229B_4CE9_BC37_4DE3C527FD59__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// Machine generated IDispatch wrapper class(es) created by Microsoft Visual C++
// NOTE: Do not modify the contents of this file. If this class is regenerated by
// Microsoft Visual C++, your modifications will be overwritten.
//SuperMap Event IDs
#define SUPERMAP_DISPID_GEOMETRY_SELECTED 0x01
#define SUPERMAP_DISPID_AFTER_MAP_DRAW 0x02
#define SUPERMAP_DISPID_BEFORE_MAP_DRAW 0x03
#define SUPERMAP_DISPID_TRACKING 0x04
#define SUPERMAP_DISPID_TRACKED 0x05
#define SUPERMAP_DISPID_ACTION_CHANGED 0x06
#define SUPERMAP_DISPID_BEFORE_LAYER_DRAW 0x07
#define SUPERMAP_DISPID_DRAWING_CANCELED 0x08
#define SUPERMAP_DISPID_AFTER_LAYER_DRAW 0x09
#define SUPERMAP_DISPID_BEFORE_TRACKING_LAYER_DRAW 0x0A
#define SUPERMAP_DISPID_AFTER_TRACKING_LAYER_DRAW 0x0B
#define SUPERMAP_DISPID_BEFORE_GEOMETRY_DELETED 0x0C
#define SUPERMAP_DISPID_AFTER_GEOMETRY_MODIFIED 0x0D
#define SUPERMAP_DISPID_AFTER_GEOMETRY_ADDED 0x0E
#define SUPERMAP_DISPID_BEFORE_GEOMETRY_MODIFIED 0x0F
#define SUPERMAP_DISPID_AFTER_POINT_INPUT 0x10
#define SUPERMAP_DISPID_ON_CUSTOM_GEOMETRY_CREATE 0x11
#define SUPERMAP_DISPID_MOUSEWHEEL 0x12
#define SUPERMAP_DISPID_BEGIN_EDIT_HANDLE 0x13
#define SUPERMAP_DISPID_MOVING_EDIT_HANDLE 0x14
#define SUPERMAP_DISPID_END_EDIT_HANDLE 0x15
#define SUPERMAP_DISPID_BEFORE_GEOMETRY_DRAW 0x16
#define SUPERMAP_DISPID_AFTER_GEOMETRY_DRAW 0x17
#define SUPERMAP_DISPID_EDIT_HANDLE_CANCELED 0x18
// dispatch id definitions for ole stock events are
// defined in <olectl.h>
// they are included here for reference
#define SUPERMAP_DISPID_CLICK (-600)
#define SUPERMAP_DISPID_DBLCLICK (-601)
#define SUPERMAP_DISPID_KEYDOWN (-602)
#define SUPERMAP_DISPID_KEYPRESS (-603)
#define SUPERMAP_DISPID_KEYUP (-604)
#define SUPERMAP_DISPID_MOUSEDOWN (-605)
#define SUPERMAP_DISPID_MOUSEMOVE (-606)
#define SUPERMAP_DISPID_MOUSEUP (-607)
#define SUPERMAP_DISPID_ERROREVENT (-608)
typedef
enum tagCharset
{
chANSI = 0, //ANSI_CHARSET
chDefault = 1, //DEFAULT_CHARSET
chSymbol = 2, //SYMBOL_CHARSET
chShiftJIS = 128, //SHIFTJIS_CHARSET
chGB2312 = 134, //GB2312_CHARSET
chChineseBIG5 = 136, //CHINESEBIG5_CHARSET
chOEM = 255, //OEM_CHARSET
chHebrew = 177, //HEBREW_CHARSET
chArabic = 178, //ARABIC_CHARSET
chGreek = 161, //GREEK_CHARSET
chTurkish = 162, //TURKISH_CHARSET
chVietnamese = 163, //VIETNAMESE_CHARSET
chThai = 222, //THAI_CHARSET
chEastEurope = 238, //EASTEUROPE_CHARSET
chRussian = 204, //RUSSIAN_CHARSET
chMAC = 77, //MAC_CHARSET
chBaltic = 186, //BALTIC_CHARSET
}seCharset;
typedef
enum tagCompactOption
{
sccDefault = 0, //都不變
sccEncrypt = 1, //加密
sccDecrypt = 2, //解密
sccVersion20 = 4,//2.0版本
}seCompactOption;
typedef
enum tagLanguage //Datasource語種
{
sclLangGeneral = 0, //English, German, French, Portuguese, Italian, and Modern Spanish,英,德,法,葡萄牙,意大利,現代西班牙語
sclLangArabic = 1, //Arabic,阿拉伯語
sclLangChineseSimplified = 2, //Simplified Chinese 簡體中文
sclLangChineseTraditional = 3, //Traditional Chinese 繁體中文
sclLangCyrillic = 4, //Russian 俄語
sclLangCzech = 5, //Czech 捷克語
sclLangDutch = 6, //Dutch 荷蘭語
sclLangGreek = 7, //Greek 希臘語
sclLangHebrew = 8, //Hebrew 西伯萊語
sclLangHungarian = 9, // Hungarian 匈牙利語
sclLangIcelandic = 10,//Icelandic 冰島
sclLangJapanese = 11,//Japanese 日本語
sclLangKorean = 12,// Korean 韓國
sclLangNordic = 13,//Nordic languages (Microsoft Jet database engine version 1.0 only) 日爾曼語
sclLangNorwDan = 14,//Norwegian and Danish 挪威和丹麥
sclLangPolish = 15,// Polish 波蘭
sclLangSlovenian = 16,//Slovenian 斯洛文尼亞
sclLangSpanish = 17,//Traditional Spanish 傳統西班牙
sclLangSwedFin = 18,//Swedish and Finnish 瑞典和芬蘭
sclLangThai = 19,//Thai 泰國
sclLangTurkish = 20,//Turkish 土耳其
}seLanguage;
typedef
enum tagActionEnum
{
scaNull =0,//什么也不干
scaPan =1,//地圖平移
scaZoomIn =2,//放大
scaZoomOut =3,//縮小
scaZoomFree =4,//顯示屬性
scaSelect =5,//點選
scaRectSelect =6,//拉框選擇
scaCircleSelect =7,//圓選擇
scaRegionSelect =8,//多邊形選擇
scaLineSelect =9,//線跨選擇
scaProperties =10,//顯示屬性
scaCollectControlPoint =13,//顯示屬性
scaEditDelete =19,//屬性編輯
scaEditProperties =20,//屬性編輯
scaEditCreatePoint =21,//編輯--之--創建點對象
scaEditCreateLinesect =22,//編輯--之--創建線段
scaEditCreateEllipticArc =23,//編輯--之--創建弧線
scaEditCreatePolyline =24,//編輯--之--創建折線
scaEditCreateCurve =25,//編輯--之--創建貝頁斯曲線
scaEditCreateRectangle =26,//編輯--之--創建矩形
scaEditCreateRoundRectangle =27,//編輯--之--創建圓角矩形
scaEditCreateParallelogram =28,//編輯--之--創建平行四邊形
scaEditCreateCircle =29,//編輯--之--創建圓
scaEditCreateEllipse =30,//編輯--之--創建橢圓
scaEditCreateObliqueEllipse =31,//編輯--之--創建斜橢圓
scaEditCreatePolygon =32,//編輯--之--創建多邊形
scaEditCreateText =34,//編輯--之--創建文本
scaEditCreateCurvedText =37,//編輯--之--創建沿線注記
scaEditVertexEdit =40,//編輯--之--創建文本
scaEditVertexAdd =41,//編輯--之--創建文本
//{{3.0新增
scaEditCreateMultiline =38,//編輯--之--創建多段線
scaEditCreatePath =39,//編輯--之--創建path
scaEditCreatePolyLineEx =42,//編輯--之--由圓弧、曲線、直線組成的多邊形
scaEditCreatePolygonEx =43,//編輯--之--由圓弧、曲線、直線組成的多邊形(閉合的)
scaEditCreateArc3P =44,//編輯--之--由三點創建弧
scaEditCreateCircle3P =45,//編輯--之--由三點創建圓
scaEditCreatePie =46,//編輯--之--創建扇形
scaEditCreateCircle2P =47,//編輯--之--由兩點創建圓
scaEditCreateParallel =48,//編輯--之--創建平行線
//}}3.0新增
//{{4.0新增
scaEditCreateCustom =49,//編輯--之--創建擴展對象
//}}4.0新增
scaGLRotateX =50,//繞X軸旋轉
scaGLRotateY =51,//繞Y軸旋轉
scaGLRotateZ =52,//繞Z軸旋轉
//{{ 5.0
scaEditVectorlizeLine =55,//編輯--之--自動跟蹤線
scaEditVectorlizeLinebackward =56,//編輯--之--自動跟蹤線回退
scaEditVectorlizeRegion =57,//編輯--之--自動跟蹤面
scaEditCreateLineFreely =58,//編輯--之--鉛筆自由畫線
//}} 5.0
// //71-91預留給Tracker
scaTrackPoint =71,//Tracker--之--點
scaTrackLinesect =72,//Tracker--之--線段
scaTrackArc =73,//Tracker--之--弧
scaTrackPolyline =74,//Tracker--之--折線
scaTrackCurve =75,//Tracker--之--創建貝頁斯曲線
scaTrackRectangle =76,//Tracker--之--矩形
scaTrackRoundRectangle =77,//Tracker--之--創建圓角矩形
scaTrackParallelogram =78,//Tracker--之--創建平行四邊形
scaTrackCircle =79,//Tracker--之--圓
scaTrackEllipse =80,//Tracker--之--橢圓
scaTrackObliqueEllipse =81,//Tracker--之--創建斜橢圓
scaTrackPolygon =82,//Tracker--之--多邊形
//{{3.0新增
scaTrackMultiline =88,//編輯--之--創建多段線
scaTrackPath =89,//Tracker--之--創建path
scaTrackPolyLineEx =92,//Tracker--之--由圓弧、曲線、直線組成的多邊形
scaTrackPolygonEx =93,//Tracker--之--由圓弧、曲線、直線組成的多邊形(閉合的)
scaTrackArc3P =94,//Tracker--之--由三點創建弧
scaTrackCircle3P =95,//Tracker--之--由三點創建圓
scaTrackPie =96,//Tracker--之--創建扇形
scaTrackCircle2P =97,//Tracker--之--由三點創建圓
scaTrackParallel =98,//Tracker--之--平行線
//}}3.0新增
//{{4.0新增
scaTrakerCustom =99,//Tracker--之--擴展對象
//}}4.0新增
scaMiliSymbol =100,//軍標標注
scaPan2 =101,//擴展的漫游方式,不用位圖貼,直接畫,適用于小圖,效果好
scaZoomFree2 =102,//擴展的ZoomFree,不用位圖貼,直接畫,適用于小圖,效果好
//只能單獨處理了
scaTrackVectorlizeRegion =107,//Tracker--之--自動跟蹤面
scaTrackLineFreely =108,//Tracker--之--鉛筆自由畫線
scaUserDefine =1000,//用戶自定義
}seAction;
//子動作,只有SuperMap.Action in ( scaEditCreatePolyLineEx, scaEditCreatePolygonEx,
//scaTrackPolyLineEx, scaTrackPolygonEx) 時,需要設置subAction,表示多段線當前部分的形狀
typedef
enum tagseSubAction
{
scsPolyLine =2, // 畫線
ScsArc =3, // 畫圓弧
scsCurve =4, // 畫曲線
scsFinish =5, // 完成一個多段線的繪制
} seSubAction;
// {2F13CBF1-EBEB-11d3-9092-0080C8EE65E9}
typedef
enum tagSpatialQueryMode
{
scsExtentOverlap =0, //返回其邊界矩形與搜索對象的邊界矩形有重疊的所有對象.
scsCommonPoint =1, //返回與搜索對象有公共點的所有對象
scsLineCross =2, //返回與搜索對象中的的邊線有相交的所有對象.
scsCommonLine =3, //返回與搜索對象有公共邊的所有對象.
scsCommonPointOrLineCross =4, //返回與搜索對象有公共點或者與搜索對象中的的邊線有相交的所有對象.
scsEdgeTouchOrAreaIntersect=5, //返回全部或部分包含搜索對象、或者全部或者部分被搜索對象包含的所有對象,邊線有接觸的對象也符合條件
scsAreaIntersect =6, //如果搜索對象是多邊形,返回全部或部分被搜索對象包含的對象;如果,搜索對象不是多邊形,就返回全部或部分包含搜索對象的對象(and the method returns features that wholly or partially contain the search feature.)
scsAreaIntersectNoEdgeTouch=7, //與scsAreaIntersect相同,但是相鄰/有邊線相接觸的對象不符合條件
scsContainedBy =8, //返回完全包含搜索對象的對象。如果是多邊形,返回的對象必須全部包含搜索對象;如果是線,返回的對象必須重疊于搜索對象,并且搜索對象不得有任何一段超出返回的對象;如果是點,搜索對象必須重疊于返回的點對象中的一個頂點(If the feature is a line feature, the search feature must lie along the feature's path. If the feature is a point feature, the search feature must be on one of its vertexes.)
scsContaining =9, //返回完全被搜索對象包含的對象
scsContainedByNoEdgeTouch =10,//返回完全包含搜索對象的對象,并且沒有邊線或者點接觸,因此,被查詢的對象必須是多邊形對象.
scsContainingNoEdgeTouch =11,//返回完全被搜索對象包含的對象,并且沒有邊線或者點接觸
scsPointInPolygon =12,//返回包含搜索對象中的第一個點的多邊形對象
scsCentroidInPolygon =13,// 返回質心在其內部的多邊形對象
scsIdentical =14,//返回與搜索對象完全相同的對象,包括對象類型和坐標數據都相同
scsTangent = 15,
scsOverlap = 16,
scsDisjoint = 17,
scsTouch = 18,
scsContainOrOverlap = 19,
scsTouchNoCross = 20,
scsCommonLineOrOverlap = 21,
} seSpatialQueryMode;
typedef
enum tagRegionIntersectMode//多邊形相交模式
{
sciSub = 0,
sciAnd = 1,
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -