📄 kmeanview.h
字号:
// KmeanView.h : interface of the CKmeanView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_KMEANVIEW_H__CB0C1DC6_F8DB_4B52_B5B1_7C0DAD9BD110__INCLUDED_)
#define AFX_KMEANVIEW_H__CB0C1DC6_F8DB_4B52_B5B1_7C0DAD9BD110__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CKmeanView : public CView
{
protected: // create from serialization only
CKmeanView();
DECLARE_DYNCREATE(CKmeanView)
// Attributes
public:
CKmeanDoc* GetDocument();
// Operations
public:
enum {IDLE, KMEAN, STOPPED};
int m_nState;
private:
int m_nTimeID;
int m_nIndex;
double m_dbRate;
Vecpf m_vecLastCenters;
PainterFacade *m_pPainter;
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CKmeanView)
public:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
virtual void OnInitialUpdate();
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CKmeanView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CKmeanView)
afx_msg void OnKMeans();
afx_msg void OnUpdateKMeans(CCmdUI* pCmdUI);
afx_msg void OnReset();
afx_msg void OnUpdateReset(CCmdUI* pCmdUI);
afx_msg void OnStop();
afx_msg void OnUpdateStop(CCmdUI* pCmdUI);
afx_msg void OnTimer(UINT nIDEvent);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in KmeanView.cpp
inline CKmeanDoc* CKmeanView::GetDocument()
{ return (CKmeanDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_KMEANVIEW_H__CB0C1DC6_F8DB_4B52_B5B1_7C0DAD9BD110__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -