📄 robocupview.h
字号:
// RobocupView.h : interface of the CRobocupView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_ROBOCUPVIEW_H__656177AE_DBED_4B4B_B949_C4B30DEF98E5__INCLUDED_)
#define AFX_ROBOCUPVIEW_H__656177AE_DBED_4B4B_B949_C4B30DEF98E5__INCLUDED_
#include "VideoDlg.h" // Added by ClassView
#include "ConfigDlg.h"
#include "DebugDlg.h"
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CRobocupView : public CView
{
protected: // create from serialization only
CRobocupView();
DECLARE_DYNCREATE(CRobocupView)
// Attributest
public:
CRobocupDoc* GetDocument();
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CRobocupView)
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:
int m_bIsDebug;
CConfigDlg* m_pConfigDlg;
CVideoDlg* m_pVideoDlg;
CDebugDlg* m_pDebugDlg;
BOOL m_bIsVirtualDisplay;
BOOL m_bIsPlay;
BOOL m_bIsStop;
BOOL m_bIsConfig;
BOOL m_bIsVideo;
CRect m_MainRect;
CDC* m_pMemDC;
CBitmap* m_pBitmap;
Vector m_test;
void DrawPoint(CDC* pDC, Vector point);
void DrawRobot(CDC* pDC, Player robot);
void DrawBall(CDC* pDC, Vector point);
void DrawField(CDC* pDC, CRect FieldRect);
void DrawScene(CDC* pDC);
virtual ~CRobocupView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CRobocupView)
afx_msg void OnVideo();
afx_msg void OnConfig();
afx_msg void OnDisplay();
afx_msg void OnUpdateDisplay(CCmdUI* pCmdUI);
afx_msg void OnTimer(UINT nIDEvent);
afx_msg void OnStop();
afx_msg void OnPlay();
afx_msg void OnUpdateConfig(CCmdUI* pCmdUI);
afx_msg void OnUpdatePlay(CCmdUI* pCmdUI);
afx_msg void OnUpdateStop(CCmdUI* pCmdUI);
afx_msg void OnUpdateVideo(CCmdUI* pCmdUI);
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg void OnUpdateDebug(CCmdUI* pCmdUI);
afx_msg void OnDebug();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in RobocupView.cpp
inline CRobocupDoc* CRobocupView::GetDocument()
{ return (CRobocupDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_ROBOCUPVIEW_H__656177AE_DBED_4B4B_B949_C4B30DEF98E5__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -