📄 p_rview.h
字号:
// P_RView.h : interface of the CP_RView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_P_RVIEW_H__55A34E8F_8FB3_443B_A6EA_1F444A790055__INCLUDED_)
#define AFX_P_RVIEW_H__55A34E8F_8FB3_443B_A6EA_1F444A790055__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
//#include"DLgLen.h"
#include"ray.h"
#include"P_RDoc.h"
#include"Terrain.h"
//class CTreeView;
class CP_RView : public CView
{
protected: // create from serialization only
CP_RView();
DECLARE_DYNCREATE(CP_RView)
// Attributes
public:
CP_RDoc* GetDocument();
void DrawAxis(CDC* pDC);
void DrawBall(int x,int y,CDC* pDC);
void Center(CPoint *point,int totle,int *xp,int *yp);
void RayBegin();
public:
// CPoint *m_Point;//存储点的指针
bool m_bLdown;//左键是否按下
// int m_TotleP;//点的总个数
// CTreeView *m_treeview;
//CDLgLen *Dlg;//第一次聚类是的初始距离
public:
CPoint m_OldPoint;
CPoint m_NewPoint;//
CPoint m_PointOrign;//得出画地形时的原始点
CPoint m_PointOld;
bool OnPoint;
int m_TotleObj;
CRgn m_Rgn; //创建热点区域
CPoint *m_RgnPoint;
// Operations
public:
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CP_RView)
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:
virtual ~CP_RView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
//CTypedPtrArray<CObArray,CLine*>m_LineArray;
// Generated message map functions
protected:
//{{AFX_MSG(CP_RView)
afx_msg void OnButtonDrawpoint();
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
afx_msg void OnMouseMove(UINT nFlags, CPoint point);
afx_msg void OnButtonErase();
afx_msg BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message);
afx_msg void OnContextMenu(CWnd* pWnd, CPoint point);
afx_msg void OnFileOpen();
afx_msg void OnFileSave();
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in P_RView.cpp
inline CP_RDoc* CP_RView::GetDocument()
{ return (CP_RDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_P_RVIEW_H__55A34E8F_8FB3_443B_A6EA_1F444A790055__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -