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

📄 iplabview.h

📁 最小二乘法(least squares analysis)是一种 数学 优化 技术
💻 H
字号:
// IPLabView.h : interface of the CIPLabView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_IPLABVIEW_H__098194A9_F6A4_4737_A0C0_9D96E8BD69D7__INCLUDED_)
#define AFX_IPLABVIEW_H__098194A9_F6A4_4737_A0C0_9D96E8BD69D7__INCLUDED_

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

#include <afxtempl.h>
#include "ViewActionEdittool.h"
#include "IPLabDoc.h"

#include "ViewActionImageTool.h"

enum ToolOption
{
	NOSEL,
	IMAGEEDIT,
	IMAGEFITTING,
};

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

// Attributes
public:
	CIPLabDoc* GetDocument();
	//坐标转换
	void ClientToDib(POINT& point);	
	void DibToClient(POINT& point);
	void DibToClient(CRect& rect);
	void PointInDib(POINT& point);
	float GetZoom(){return GetDocument()->GetZoom();};

// Operations
//public:

private:
	ToolOption m_ToolOption;

	CViewActionEditTool m_cViewActionEditTool;
	CViewActionImageTool m_cViewActionImageTool;
	BOOL m_bEditToolEnable;
	CTypedPtrList < CObList, CViewActionBase* > m_listViewActionList;
	
// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CIPLabView)
	public:
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	protected:
	virtual void OnInitialUpdate(); // called first time after construct
	virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
	virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual void OnActivateView(BOOL bActivate, CView* pActivateView, CView* pDeactiveView);
	//}}AFX_VIRTUAL

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

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CIPLabView)
	afx_msg BOOL OnEraseBkgnd(CDC* pDC);
	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 OnRButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnEdittoolSelectrect();
	afx_msg void OnEdittoolSelectany();
	afx_msg void OnEdittoolPaste();
	afx_msg void OnUpdateEdittoolPaste(CCmdUI* pCmdUI);
	afx_msg void OnEdittoolCut();
	afx_msg void OnUpdateEdittoolCut(CCmdUI* pCmdUI);
	afx_msg void OnEdittoolCopy();
	afx_msg void OnUpdateEdittoolCopy(CCmdUI* pCmdUI);
	afx_msg void OnEdittoolEnable();
	afx_msg void OnUpdateEdittoolEnable(CCmdUI* pCmdUI);
	afx_msg void OnIpInv();
	afx_msg void OnIpInvInregion();
	afx_msg void OnIpInvInregionF();
	afx_msg void OnIpHittest();
	afx_msg BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message);
	afx_msg void OnIpInvInregionO();
	afx_msg void OnLeastsquaresfitting();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in IPLabView.cpp
inline CIPLabDoc* CIPLabView::GetDocument()
   { return (CIPLabDoc*)m_pDocument; }
#endif

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

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

#endif // !defined(AFX_IPLABVIEW_H__098194A9_F6A4_4737_A0C0_9D96E8BD69D7__INCLUDED_)

⌨️ 快捷键说明

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