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

📄 matcomplotshowview.h

📁 《精通matlab与c++混合编程》的光盘内容
💻 H
字号:
// matcomplotshowView.h : interface of the CMatcomplotshowView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_MATCOMPLOTSHOWVIEW_H__61083116_F16E_4166_A7E0_7135FDF4E448__INCLUDED_)
#define AFX_MATCOMPLOTSHOWVIEW_H__61083116_F16E_4166_A7E0_7135FDF4E448__INCLUDED_

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

#include "matlib.h"
class CMatcomplotshowView : public CView
{
protected: // create from serialization only
	CMatcomplotshowView();
	DECLARE_DYNCREATE(CMatcomplotshowView)

// Attributes
public:
	CMatcomplotshowDoc* GetDocument();

// Operations
public:
	Mm m_h,m_hplot;/*第一个MATCOM图形窗口的Figure句柄和Axes句柄*/
	Mm m_h1,m_hplot1;/*第二个MATCOM图形窗口的Figure句柄和Axes句柄*/
	bool isTwoPlot;/*当前View中是否有两个MATCOM图形绘制窗口*/
	bool isInit;/*MATCOM C++矩阵库是否初始化*/
	Mm m_2ddata;/*二维图形y轴数据*/
	Mm m_2ddatax;/*二维图形x轴数据*/

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CMatcomplotshowView)
	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:
	void ClearData(Mm m_h);
	void ResizePlot();
	bool IsMatcomHandleValid(Mm m_h);
	virtual ~CMatcomplotshowView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CMatcomplotshowView)
	afx_msg void OnSize(UINT nType, int cx, int cy);
	afx_msg void On2dbar();
	afx_msg void On3dbar();
	afx_msg void On2darea();
	afx_msg void On2dcompass();
	afx_msg void On3dcontour();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in matcomplotshowView.cpp
inline CMatcomplotshowDoc* CMatcomplotshowView::GetDocument()
   { return (CMatcomplotshowDoc*)m_pDocument; }
#endif

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

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

#endif // !defined(AFX_MATCOMPLOTSHOWVIEW_H__61083116_F16E_4166_A7E0_7135FDF4E448__INCLUDED_)

⌨️ 快捷键说明

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