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

📄 graphicsalgorithmview.h

📁 平面图形变换的源码
💻 H
字号:
// GraphicsAlgorithmView.h : interface of the CGraphicsAlgorithmView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_GRAPHICSALGORITHMVIEW_H__58CBEE2D_854F_11D8_B394_00E04C391319__INCLUDED_)
#define AFX_GRAPHICSALGORITHMVIEW_H__58CBEE2D_854F_11D8_B394_00E04C391319__INCLUDED_

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


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

// Attributes
public:
	CGraphicsAlgorithmDoc* GetDocument();

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CGraphicsAlgorithmView)
	public:
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	virtual void OnInitialUpdate();
	protected:
	virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
	virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
	//}}AFX_VIRTUAL

// Implementation
public:
	CPoint ScaMid[1000];
	CPoint RotMid[1000];
	
	int PNumSec;
	int PNumFir;
	CPoint PointFir[1000];
	CPoint PointSec[1000];
	int PNum2;
	CPoint ContP2[1000];
	double Hy;
	double Hx;
	void TransCuoQie(double Hx,double Hy);
	void TransYMirror(CPoint point);
	void TransXMirror(CPoint point);

	void TransMirror(CPoint point);
	double angle;
	void TransRotation(double angle);
	double ratio;
	void TransScale(double ratio);
	void cls();
	COLORREF FillColor;
	int PNum;
	CPoint ContP[1000];
	COLORREF Curcolor;
	void FloodFill4(CPoint SeedP, COLORREF FillColor, COLORREF BdColor);
	int FunSel;
	CPen OrgPen;
	CPen CurPen;
	CClientDC *Gra;
	bool MouDown;
	CPoint PreP;
	CPoint BegP;
	virtual ~CGraphicsAlgorithmView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	void TransShift(CPoint T);
	//{{AFX_MSG(CGraphicsAlgorithmView)
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
	afx_msg void OnMouseMove(UINT nFlags, CPoint point);
	afx_msg void OnidFloodFilll4();
	afx_msg void OnidCurColor();
	afx_msg void OnidClear();
	afx_msg void OnidPolygon();
	afx_msg void OnClose();
	afx_msg void OnidFillColor();
	afx_msg void OnidLineWidth();
	afx_msg void Onidabout();
	afx_msg void OnidTransShift();
	afx_msg void OnidTransScale();
	afx_msg void OnidTransRotation();
	afx_msg void OnidTransDonghua1();
	afx_msg void OnidTransXMirror();
	afx_msg void OnidTransYMirror();
	afx_msg void OnidTransPMirror();
	afx_msg void OnidTansCuoqie();
	afx_msg void OnidSecPoly();
	afx_msg void OnidFirPicToSecPic();
	afx_msg void OnidTransDongHua3();
	afx_msg void OnidCrossBar();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in GraphicsAlgorithmView.cpp
inline CGraphicsAlgorithmDoc* CGraphicsAlgorithmView::GetDocument()
   { return (CGraphicsAlgorithmDoc*)m_pDocument; }
#endif

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

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

#endif // !defined(AFX_GRAPHICSALGORITHMVIEW_H__58CBEE2D_854F_11D8_B394_00E04C391319__INCLUDED_)

⌨️ 快捷键说明

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