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

📄 fxsview.h

📁 关于分形L系统的应用
💻 H
字号:
// fxsView.h : interface of the CFxsView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_FXSVIEW_H__05650AE3_728D_4176_85A6_F61364B23EAD__INCLUDED_)
#define AFX_FXSVIEW_H__05650AE3_728D_4176_85A6_F61364B23EAD__INCLUDED_

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

#include "Tree.h"


class CFxsView : public  CScrollView
{
protected: // create from serialization only
	CFxsView();
	DECLARE_DYNCREATE(CFxsView)

// Attributes
public:
	CFxsDoc* GetDocument();

// Operations
public:

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

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CFxsView)
	afx_msg void OnPaint();
	afx_msg void OnSet();
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
	afx_msg BOOL OnMouseWheel(UINT nFlags, short zDelta, CPoint pt);
	afx_msg BOOL OnEraseBkgnd(CDC* pDC);
	afx_msg void OnCancelMode();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()


private:	

	Tree tree;
	/*int m_suanfa;//算法选择
	double m_fenjiao;//分支偏移角度
	
	int m_count;//迭代次数
	double m_bili;//分支比例
	double m_jiedian;//节点比例
	CString m_LStr;//LS字符串
	CString m_rule;//LS规则
	


	CString m_rule;//上一次规则
	double m_lastl;//上一次分支长度

	int m_c;//上一次迭代次数
//	double jiedian;//上一次节点比例
	double m_suofang;//上一次缩放比例
	*/

};



#ifndef _DEBUG  // debug version in fxsView.cpp
inline CFxsDoc* CFxsView::GetDocument()
   { return (CFxsDoc*)m_pDocument; }
#endif

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

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

#endif // !defined(AFX_FXSVIEW_H__05650AE3_728D_4176_85A6_F61364B23EAD__INCLUDED_)

⌨️ 快捷键说明

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