⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mapview.h

📁 GemoMedia 应用 演示了其使用方法
💻 H
字号:
#if !defined(AFX_MAPVIEW_H__83A7A972_EB50_4C33_A2BB_95AD0F20AEDF__INCLUDED_)
#define AFX_MAPVIEW_H__83A7A972_EB50_4C33_A2BB_95AD0F20AEDF__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.


// Dispatch interfaces referenced by this interface
class CGMLegend;
class CDGMCoordSystemsMgr;
class CGMDisplayedObjects;

/////////////////////////////////////////////////////////////////////////////
// CMapview wrapper class

class CMapview : public CWnd
{
protected:
	DECLARE_DYNCREATE(CMapview)
public:
	CLSID const& GetClsid()
	{
		static CLSID const clsid
			= { 0x47e3fd0d, 0x88a2, 0x11cf, { 0xa1, 0x7b, 0x8, 0x0, 0x36, 0x6, 0xe8, 0x2 } };
		return clsid;
	}
	virtual BOOL Create(LPCTSTR lpszClassName,
		LPCTSTR lpszWindowName, DWORD dwStyle,
		const RECT& rect,
		CWnd* pParentWnd, UINT nID,
		CCreateContext* pContext = NULL)
	{ return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID); }

    BOOL Create(LPCTSTR lpszWindowName, DWORD dwStyle,
		const RECT& rect, CWnd* pParentWnd, UINT nID,
		CFile* pPersist = NULL, BOOL bStorage = FALSE,
		BSTR bstrLicKey = NULL)
	{ return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID,
		pPersist, bStorage, bstrLicKey); }

// Attributes
public:
	double GetZoomFactor();
	void SetZoomFactor(double);
	double GetDisplayScale();
	void SetDisplayScale(double);
	CGMLegend GetLegend();
	void SetLegend(LPDISPATCH);
	LPDISPATCH GetParent();
	void SetParent(LPDISPATCH);
	CDGMCoordSystemsMgr GetCoordSystemsMgr();
	void SetCoordSystemsMgr(LPDISPATCH);
	LPDISPATCH GetDispatch();
	void SetDispatch(LPDISPATCH);
	CGMDisplayedObjects GetHighlightedObjects();
	void SetHighlightedObjects(LPDISPATCH);
	CGMDisplayedObjects GetMapViewSelectedObjects();
	void SetMapViewSelectedObjects(LPDISPATCH);
	long GetHighlightColor();
	void SetHighlightColor(long);
	long GetSelectColor();
	void SetSelectColor(long);
	long GetBackgroundColor();
	void SetBackgroundColor(long);
	BOOL GetConsumedEvent();
	void SetConsumedEvent(BOOL);
	long GetSelectBehavior();
	void SetSelectBehavior(long);
	double GetSelectBehaviorZoomFactor();
	void SetSelectBehaviorZoomFactor(double);
	long GetSelectBehaviorConditions();
	void SetSelectBehaviorConditions(long);
	double GetDefaultZ();
	void SetDefaultZ(double);
	long GetMousePointer();
	void SetMousePointer(long);
	long GetLocateTolerance();
	void SetLocateTolerance(long);
	CString GetCustomCursorFilename();
	void SetCustomCursorFilename(LPCTSTR);
	BOOL GetPreserveMapScaleWhenResizing();
	void SetPreserveMapScaleWhenResizing(BOOL);
	double GetRotation();
	void SetRotation(double);
	CString GetRenderObjectName();
	void SetRenderObjectName(LPCTSTR);

// Operations
public:
	long Fit();
	long ZoomArea(double x1, double y1, double z1, double x2, double y2, double z2);
	long Zoom(BOOL bZoomOut, BOOL bZoomOnCntrPoint, double zoomPointX, double zoomPointY, double zoomPointZ, const VARIANT& bMoveToCenter);
	long Pan(double deltaX, double deltaY, double deltaZ);
	long Center(double x, double y, double z);
	long Rotate(double angle);
	long GetRange(double* x1, double* y1, double* z1, double* x2, double* y2, double* z2);
	long WindowToWorld(long windowX, long windowY, double* worldX, double* worldY, double* worldZ);
	long WorldToWindow(double worldX, double worldY, double worldZ, long* windowX, long* windowY);
	long PreviousView();
	long Refresh(const VARIANT& bRedrawAll);
	long BeginDynamic();
	long EndDynamic();
	long FitSelectedObjects(const VARIANT& ZoomFactor);
	long CenterSelectedObjects();
	long BroadcastWorldPoint(long nMsg, long nMetaKeyFlag, double worldX, double worldY, double worldZ, const VARIANT& bMoveCursor);
	long ExecutePrint(const VARIANT& preferenceSet, const VARIANT& scaleBar, const VARIANT& northArrow, const VARIANT& outFile, const VARIANT& interruptDialog);
	long FitSelectedLegendEntries();
	void AboutBox();
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_MAPVIEW_H__83A7A972_EB50_4C33_A2BB_95AD0F20AEDF__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -