gendelaunayview.h

来自「一个二维Delaunay三角网格剖分算法」· C头文件 代码 · 共 91 行

H
91
字号
// GenDelaunayView.h : interface of the CGenDelaunayView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_GENDELAUNAYVIEW_H__8236D1C1_F89A_4A86_8C48_1C898ED713BB__INCLUDED_)
#define AFX_GENDELAUNAYVIEW_H__8236D1C1_F89A_4A86_8C48_1C898ED713BB__INCLUDED_



#include "Triangle.h"	// Added by ClassView
typedef struct
{
	int a;
	int b;
	int c;
} array;



#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000


class CGenDelaunayView : public CView
{
protected: // create from serialization only
	CGenDelaunayView();
	DECLARE_DYNCREATE(CGenDelaunayView)

// Attributes
public:
	CGenDelaunayDoc* GetDocument();

// Operations
public:
	CGenDelaunayDoc* m_pDoc;
	CRect m_oldRect;
	int DelTriList(double x,double y,int p);
	array Wher(CPointPos *pos);
	void DrawScene(void);
	void DrawPoints();
	void DrawPoint(int i);
	
	void DrawTris();
	void DrawTri(CTriangle *tri);
	
// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CGenDelaunayView)
	public:
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	protected:
	virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
	virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
	//}}AFX_VIRTUAL

// Implementation
public:
	virtual ~CGenDelaunayView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CGenDelaunayView)
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnSize(UINT nType, int cx, int cy);
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in GenDelaunayView.cpp
inline CGenDelaunayDoc* CGenDelaunayView::GetDocument()
   { return (CGenDelaunayDoc*)m_pDocument; }
#endif

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

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

#endif // !defined(AFX_GENDELAUNAYVIEW_H__8236D1C1_F89A_4A86_8C48_1C898ED713BB__INCLUDED_)

⌨️ 快捷键说明

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