Click here to Skip to main content
15,897,518 members
Articles / Desktop Programming / MFC

Tesselation of Mono Connected Non Convex Polygon

Rate me:
Please Sign up or sign in to vote.
3.86/5 (17 votes)
6 Feb 2002CPOL 212.9K   1.7K   24  
Tesselation of mono connected non convex polygon
// View.h : interface of the CPolyTryView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_VIEW_H__8F69AD48_8F50_45C4_BE9B_BF3B9C19E017__INCLUDED_)
#define AFX_VIEW_H__8F69AD48_8F50_45C4_BE9B_BF3B9C19E017__INCLUDED_

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


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

// Attributes
public:
	CPolyTryDoc* GetDocument();

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CPolyTryView)
	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 ~CPolyTryView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CPolyTryView)
	afx_msg void OnUpdateEditPolygonalize(CCmdUI* pCmdUI);
	afx_msg void OnEditPolygonalize();
	afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
   //
protected:
   int      m_nPoints      ;
   CPoint   m_points[100]  ;
   bool     m_bFlushFaces  ;
};

#ifndef _DEBUG  // debug version in View.cpp
inline CPolyTryDoc* CPolyTryView::GetDocument()
   { return (CPolyTryDoc*)m_pDocument; }
#endif

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

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

#endif // !defined(AFX_VIEW_H__8F69AD48_8F50_45C4_BE9B_BF3B9C19E017__INCLUDED_)

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions