📄 z_bufferview.h
字号:
// Z_BUFFERView.h : interface of the CZ_BUFFERView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_Z_BUFFERVIEW_H__DBA3863A_F6CA_4F75_BA0B_C758C622102D__INCLUDED_)
#define AFX_Z_BUFFERVIEW_H__DBA3863A_F6CA_4F75_BA0B_C758C622102D__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include <math.h>
#include "maxtrix.h"
class CZ_BUFFERView : public CView
{
protected: // create from serialization only
CZ_BUFFERView();
DECLARE_DYNCREATE(CZ_BUFFERView)
// Attributes
public:
CZ_BUFFERDoc* GetDocument();
double z_distance[400][400];
COLORREF color[400][400];
double angle;
int n;
int num[1000];
double* point;
bool kao;
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CZ_BUFFERView)
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:
double Z_function(double xcoor[],double ycoor[],double zcoor[],int x,int y);
int inside(double xcoor[],double ycoor[],int x,int y);
virtual ~CZ_BUFFERView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CZ_BUFFERView)
afx_msg void OnOnx();
afx_msg void OnOny();
afx_msg void OnOnz();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in Z_BUFFERView.cpp
inline CZ_BUFFERDoc* CZ_BUFFERView::GetDocument()
{ return (CZ_BUFFERDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_Z_BUFFERVIEW_H__DBA3863A_F6CA_4F75_BA0B_C758C622102D__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -