📄 newcloudview.h
字号:
// NewCloudView.h : interface of the CNewCloudView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_NEWCLOUDVIEW_H__01E59CF2_A2D6_4A5B_83E7_D6B4D33AACBF__INCLUDED_)
#define AFX_NEWCLOUDVIEW_H__01E59CF2_A2D6_4A5B_83E7_D6B4D33AACBF__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "Afxtempl.h"
#include <vector>
using namespace std;
typedef struct
{
float x;
float y;
float r;
}TPoint;
typedef struct
{
float x;
float y;
float r;
float a;
float b;
}TYPoint;
typedef struct
{
float x;
float y;
}TSin;
//typedef struct
//{
// float x;
// float y;
//}TCos;
class CNewCloudView : public CView
{
protected: // create from serialization only
CNewCloudView();
DECLARE_DYNCREATE(CNewCloudView)
// Attributes
public:
CNewCloudDoc* GetDocument();
// Operations
public:
vector <TPoint> point;
vector <TYPoint> typoint;
vector<TSin>Spoint;
// vector<TCos>Cpoint;
TPoint pt;
TYPoint ty;
TSin St;
// Cpoint Ct;
// bool Draw;
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CNewCloudView)
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);
// virtual void OnUpdate(CView* pSender, LPARAM lHint, CObject* pHint);
//}}AFX_VIRTUAL
// Implementation
public:
void SinCloudGenerator(float Ex,float En,float He);
void TuoyuanCloud(float En,float He,float x,float y,float a,float b);
void NewCloudGenerator(float En,float He,float X, float Y,float R);
virtual ~CNewCloudView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CNewCloudView)
afx_msg void OnCircle();
afx_msg void OnTuoyuan();
afx_msg void OnSin();
afx_msg void OnSin2();
afx_msg void OnSin3();
afx_msg void OnCos1();
afx_msg void OnCos2();
afx_msg void OnCos3();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in NewCloudView.cpp
inline CNewCloudDoc* CNewCloudView::GetDocument()
{ return (CNewCloudDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_NEWCLOUDVIEW_H__01E59CF2_A2D6_4A5B_83E7_D6B4D33AACBF__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -