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

📄 drawshapedoc.h

📁 用于地理信息系统(GIS)行业程序。 完整的鼠标交互式地图点、线、面的绘制
💻 H
字号:
// DrawShapeDoc.h : interface of the CDrawShapeDoc class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_DRAWSHAPEDOC_H__C46C1452_064F_4E32_A8EB_79CCDD16BEBC__INCLUDED_)
#define AFX_DRAWSHAPEDOC_H__C46C1452_064F_4E32_A8EB_79CCDD16BEBC__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "DrawShapeView.h"
#include "Draw.h"
#include "Line.h"
#include "Pline.h"
#include "PointShape.h"
#include "afxtempl.h"
#include "GraphPara.h"

class CDrawShapeDoc : public CDocument
{
protected: // create from serialization only
	CDrawShapeDoc();
	DECLARE_DYNCREATE(CDrawShapeDoc)

// Attributes
public:

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CDrawShapeDoc)
	public:
	virtual BOOL OnNewDocument();
	virtual void Serialize(CArchive& ar);
	virtual BOOL OnOpenDocument(LPCTSTR lpszPathName);
	//}}AFX_VIRTUAL

// Implementation
public:

	void ReadShapefile(const char* pFileName);
//	CDraw* GetAllGraph();
	CDraw* GetGraph(short Lb,int index);
	int GetGraphUpperBound(short Lb);

	CLine* AddLine(short colorPen,short colorBrush,short lineWide,
			 short lineType,short layer,int idOnly,BOOL bDelete,
			 float x1,float y1,float x2,float y2);

	CPointShape* AddPoint(short colorPen,short colorBrush,short lineWide,
		short lineType,short layer,int idOnly,BOOL bDelete,
 		float Xcoord,float Ycoord);
	

	virtual ~CDrawShapeDoc();

	CPline* AddPline(short colorPen,short colorBrush,short lineWide,short lineType,short layer,int idOnly,BOOL bDelete,int pointNum,PointStruct* pointArray,BOOL bFill);

#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:
//  	CGraphPara  objGraphPara;

// Generated message map functions
protected:
	//{{AFX_MSG(CDrawShapeDoc)
		// NOTE - the ClassWizard will add and remove member functions here.
		//    DO NOT EDIT what you see in these blocks of generated code !
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()

private:
	CTypedPtrArray<CObArray,CLine*>m_LineList;	
	CTypedPtrArray<CObArray,CPline*>m_PlineList;
	CTypedPtrArray<CObArray,CPointShape*>m_PointList;
};

/////////////////////////////////////////////////////////////////////////////

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

#endif // !defined(AFX_DRAWSHAPEDOC_H__C46C1452_064F_4E32_A8EB_79CCDD16BEBC__INCLUDED_)

⌨️ 快捷键说明

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